Click here to Skip to main content
15,887,975 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 6:06
Mark J. Miller28-Apr-08 6:06 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 7:19
SomeGuyThatIsMe28-Apr-08 7:19 
GeneralRe: IIS 6.0 3rd party app question Pin
Mark J. Miller28-Apr-08 7:29
Mark J. Miller28-Apr-08 7:29 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe28-Apr-08 7:46
SomeGuyThatIsMe28-Apr-08 7:46 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 3:45
SomeGuyThatIsMe29-Apr-08 3:45 
GeneralRe: IIS 6.0 3rd party app question Pin
SomeGuyThatIsMe29-Apr-08 6:32
SomeGuyThatIsMe29-Apr-08 6:32 
Generaladd linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 2:47
justintimberlake28-Apr-08 2:47 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
Ashish Sehajpal28-Apr-08 6:30
Ashish Sehajpal28-Apr-08 6: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 15:51
justintimberlake28-Apr-08 15:51 
GeneralRe: add linkbutton oncommand and comandargument from codebehing Pin
justintimberlake28-Apr-08 16:09
justintimberlake28-Apr-08 16:09 
Generalcms contents Pin
krishnaveer28-Apr-08 2:28
krishnaveer28-Apr-08 2:28 
GeneralRe: cms contents Pin
_AK_28-Apr-08 2:32
_AK_28-Apr-08 2:32 
GeneralRe: cms contents Pin
krishnaveer28-Apr-08 2:44
krishnaveer28-Apr-08 2:44 
GeneralRe: cms contents Pin
_AK_28-Apr-08 3:52
_AK_28-Apr-08 3:52 
GeneralRe: cms contents Pin
krishnaveer28-Apr-08 19:12
krishnaveer28-Apr-08 19:12 
GeneralRe: cms contents Pin
_AK_28-Apr-08 19:25
_AK_28-Apr-08 19:25 
GeneralValidators and other controls Pin
greekius28-Apr-08 2:27
greekius28-Apr-08 2:27 
GeneralRe: Validators and other controls Pin
_AK_28-Apr-08 2:33
_AK_28-Apr-08 2:33 
GeneralRe: Validators and other controls Pin
greekius28-Apr-08 3:48
greekius28-Apr-08 3:48 
GeneralRe: Validators and other controls Pin
_AK_28-Apr-08 3:52
_AK_28-Apr-08 3:52 
Questionhow to delete row from gridview Pin
Ankit At Codeproject28-Apr-08 1:56
Ankit At Codeproject28-Apr-08 1:56 
GeneralRe: how to delete row from gridview Pin
Vasudevan Deepak Kumar28-Apr-08 2:08
Vasudevan Deepak Kumar28-Apr-08 2:08 
QuestionRe: how to delete row from gridview Pin
Ankit At Codeproject28-Apr-08 2:21
Ankit At Codeproject28-Apr-08 2:21 
GeneralMessage box using java script Pin
jeffrey kalampukattussery28-Apr-08 1:55
jeffrey kalampukattussery28-Apr-08 1:55 
GeneralRe: Message box using java script Pin
Vasudevan Deepak Kumar28-Apr-08 2:09
Vasudevan Deepak Kumar28-Apr-08 2: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.