TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sachi vasishta
NA
252
0
How to fire button click event dynamically
Dec 23 2011 2:17 AM
Hi All,
I have a dynamic.aspx.cs file. Here I am generating the button control dynamically. This is the code I have
TableRow trBtn = new TableRow();
TableCell tcbtn = new TableCell();
Button button = new Button();
button.ID = "addNewFault";
button.Text = "Add New Value";
button.Click = "addNewFaultCategory"; // error here. can't initialize like this
tcbtn.Controls.Add(button);
trBtn.Cells.Add(tcbtn);
tb1Addbtn.Rows.Add(trBtn);
I want to know how to fire the click event on click of the button "AddNewValue".
Reply
Answers (
1
)
Sending data from first gridview to second gridview in same page
How to handle duplicate data in asp.net