Click here to Skip to main content
15,797,193 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 7:06
Mark J. Miller28-Apr-08 7:06 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 8:19
SomeGuyThatIsMe28-Apr-08 8:19 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 8:29
Mark J. Miller28-Apr-08 8:29 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 8:46
SomeGuyThatIsMe28-Apr-08 8:46 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 4:45
SomeGuyThatIsMe29-Apr-08 4:45 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 7:32
SomeGuyThatIsMe29-Apr-08 7:32 
Generaladd linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 3:47
justintimberlake28-Apr-08 3:47 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
Ashish Sehajpal28-Apr-08 7:30
Ashish Sehajpal28-Apr-08 7:30 
why to make this process that much complex....?
you better do as following:-

1.
try to get the command argument field with common name from both tables...
(using alias in select query).
e.g.
select catid, catname, cast(catid as varchar(10)) + ':CAT' as commandID from tblcategory
where searchtext=@searchtext
select itemid, itemname, cast(itemid as varchar(10)) + ':ITEM' as commandID from tblitems
where searchtext=@searchtext


2.
assign the function name & command argument at design time.
e.g
<asp:LinkButton ID="linbutton"
runat="server" commandname='cn'
commandargument='commandID' ></asp:LinkButton>

3.
in the code-behind, check for commandargument,
split it and check for CAT or ITEM and then do the needfull.

cheers !

Ashish Sehajpal

GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 16:51
justintimberlake28-Apr-08 16:51 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 17:09
justintimberlake28-Apr-08 17:09 
Generalcms contents Pin
krishnaveer28-Apr-08 3:28
krishnaveer28-Apr-08 3:28 
GeneralRe: cms contents Pin
_AK_28-Apr-08 3:32
_AK_28-Apr-08 3:32 
GeneralRe: cms contents Pin
krishnaveer28-Apr-08 3:44
krishnaveer28-Apr-08 3:44 
GeneralRe: cms contents Pin
_AK_28-Apr-08 4:52
_AK_28-Apr-08 4:52 
GeneralRe: cms contents Pin
krishnaveer28-Apr-08 20:12
krishnaveer28-Apr-08 20:12 
GeneralRe: cms contents Pin
_AK_28-Apr-08 20:25
_AK_28-Apr-08 20:25 
GeneralValidators and other controls Pin
greekius28-Apr-08 3:27
greekius28-Apr-08 3:27 
GeneralRe: Validators and other controls Pin
_AK_28-Apr-08 3:33
_AK_28-Apr-08 3:33 
GeneralRe: Validators and other controls Pin
greekius28-Apr-08 4:48
greekius28-Apr-08 4:48 
GeneralRe: Validators and other controls Pin
_AK_28-Apr-08 4:52
_AK_28-Apr-08 4:52 
Questionhow to delete row from gridview Pin
Ankit At Codeproject28-Apr-08 2:56
Ankit At Codeproject28-Apr-08 2:56 
GeneralRe: how to delete row from gridview Pin
Vasudevan Deepak Kumar28-Apr-08 3:08
Vasudevan Deepak Kumar28-Apr-08 3:08 
QuestionRe: how to delete row from gridview Pin
Ankit At Codeproject28-Apr-08 3:21
Ankit At Codeproject28-Apr-08 3:21 
GeneralMessage box using java script Pin
jeffrey kalampukattussery28-Apr-08 2:55
jeffrey kalampukattussery28-Apr-08 2:55 
GeneralRe: Message box using java script Pin
Vasudevan Deepak Kumar28-Apr-08 3:09
Vasudevan Deepak Kumar28-Apr-08 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.