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
anjumathi kumar
NA
54
64.2k
How to add onclick function to the dynamic Button
Aug 3 2011 2:25 AM
Hi how to add onclick function to the dynamic button
I wrote like this
for loop
{
ImageButton btn = new ImageButton();
btn.ID = "btn" + i;
btn.ImageUrl = "images/edit.jpg";
//btn.OnClientClick += new EventHandler(get);
btn.Attributes.Add("onclick", "get()");
}
<pre lang="cs">public void get(object sender, EventArgs e)
{
this.mopopupeditrule.Show();
}</pre>
in this onclick function not works..how can i give...if i click button one modalpopup want to show..any idea?
Reply
Answers (
6
)
Issue in retting Reportviewer Parameters in ASP.Net 2010
How to call click in image