Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
dynamically created link button event is not firing
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
narasiman rao
9y
459
1
Reply
n Gridview run mode as follows
SelectedBatchdate
27 May 2015
30 May 2015
5 June 2015
Click Here (Link button)
i written the code in gridview_databound as follows
protected void gvPkgcbndate_DataBound(object sender, EventArgs e)
{
LinkButton lnk = new LinkButton();
lnk.ID = "lnk";
lnk.Text = "click here";
lnk.Click += new System.EventHandler(lnk_Click);
}
protected void lnk_Click(object sender, EventArgs e)
{
Response.Write("you are selected the link button");
}
When user click the click here link button, the message not shown "you are selectedt eh link button";
Link button selected event is not firing.
please help me. what is the mistake i made in my above code.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
insert and display mathematics equation or formula
how to make comment post tool for youtube video use API v3?