Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: difference between POSTand GETmethods Pin
Kasson14-Jun-07 20:10
Kasson14-Jun-07 20:10 
AnswerRe: difference between POSTand GETmethods Pin
Sylvester george14-Jun-07 20:18
Sylvester george14-Jun-07 20:18 
QuestionCaptcha image verification Pin
jai 12314-Jun-07 19:20
jai 12314-Jun-07 19:20 
AnswerRe: Captcha image verification Pin
Kasson14-Jun-07 19:36
Kasson14-Jun-07 19:36 
QuestionProblem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 19:12
Venkatesh Mookkan14-Jun-07 19:12 
QuestionRe: Problem in firing the Linkbutton Click Event Pin
RepliCrux14-Jun-07 19:43
RepliCrux14-Jun-07 19:43 
AnswerRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 20:32
Venkatesh Mookkan14-Jun-07 20:32 
AnswerRe: Problem in firing the Linkbutton Click Event Pin
Chetan Ranpariya14-Jun-07 20:45
Chetan Ranpariya14-Jun-07 20:45 
Hi,

You should create an handlere to handle event of linkbutton and assign that handler to the click event of dynamically generated linkbuttons at runtime.
Have a look at following.

The following is the handler to handle command event of your link button.
Command event will fire when u click on the linkbutton.
We consider command event because in this event you can differentiate which linkbutton is clicked and depend on commandname and commandargument you can execute accordingly.
protected void lnk_Command ( object sender, CommandEventArgs e )
{
string strCommand = e.CommandName;
string strArgument = e.CommandArgument;
}

In the following code I m creating a linkbutton dynamically, assigning ID, CommandName, CommandArgument and EventHandler to it.

LinkButton Lnk = new LinkButton();
Lnk.ID = "ID";
Lnk.CommandName = "urcommandName";
Lnk.CommandArgument = "urCommandargument";
Lnk.Command +=new CommandEventHandler(lnk_Command);

This way you can create as many linkbuttons and assign unique commandargument and commandname to each of them.

I hope this will help you.

Thanks and Regards,
Chetan Ranpariya

GeneralRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 21:31
Venkatesh Mookkan14-Jun-07 21:31 
GeneralRe: Problem in firing the Linkbutton Click Event Pin
Chetan Ranpariya14-Jun-07 21:52
Chetan Ranpariya14-Jun-07 21:52 
GeneralRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 22:02
Venkatesh Mookkan14-Jun-07 22:02 
QuestionProblem in Deploying Web Apllication using ASP.net 2.0 Pin
krishsenthilraj14-Jun-07 18:56
krishsenthilraj14-Jun-07 18:56 
QuestionRestricting access to pages inside a folder Pin
Biju Sam14-Jun-07 18:07
Biju Sam14-Jun-07 18:07 
AnswerRe: Restricting access to pages inside a folder Pin
RepliCrux14-Jun-07 19:37
RepliCrux14-Jun-07 19:37 
GeneralRe: Restricting access to pages inside a folder Pin
Not Active15-Jun-07 2:00
mentorNot Active15-Jun-07 2:00 
AnswerRe: Restricting access to pages inside a folder Pin
Not Active15-Jun-07 1:59
mentorNot Active15-Jun-07 1:59 
Questionabout datatable Pin
lockepeak14-Jun-07 16:30
lockepeak14-Jun-07 16:30 
AnswerRe: about datatable Pin
Christian Graus14-Jun-07 17:57
protectorChristian Graus14-Jun-07 17:57 
AnswerRe: about datatable Pin
_AK_14-Jun-07 22:02
_AK_14-Jun-07 22:02 
Questionasp.net using crystal report Pin
moomoooomoo14-Jun-07 14:54
moomoooomoo14-Jun-07 14:54 
AnswerRe: asp.net using crystal report Pin
Sathesh Sakthivel14-Jun-07 15:06
Sathesh Sakthivel14-Jun-07 15:06 
QuestionPage has expired issue. [modified] Pin
terife14-Jun-07 13:37
terife14-Jun-07 13:37 
QuestionObject reference not set to an instance of an objec [modified] Pin
ASPnoob14-Jun-07 13:20
ASPnoob14-Jun-07 13:20 
AnswerRe: Object reference not set to an instance of an objec Pin
Christian Graus14-Jun-07 13:56
protectorChristian Graus14-Jun-07 13:56 
GeneralRe: Object reference not set to an instance of an objec Pin
ASPnoob14-Jun-07 14:09
ASPnoob14-Jun-07 14: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.