Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Creating new Buttons + Eventhandler via for statement

Reply
Thread Tools

Creating new Buttons + Eventhandler via for statement

 
 
Asp-Trainee
Guest
Posts: n/a
 
      08-20-2004
Can somebody show me the right way??? PLEASE

I have following problem:

for (int i; i < x; i++)
{
ImageButton myImageButton = new ImageButton();
myImageButton.Click+=newSystem.Web.UI.ImageClickEv entHandler(this.myImageButton_Click);
}
But this do not work!!

Without a for statement, it is no problem, but in the for statement it
won´t work

thanks a lot in advance

and greetings from innsbruck
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: btnEdit.click += new EventHandler(...) not firing! Anthony Williams ASP .Net Web Controls 0 02-04-2005 12:13 PM
Adding a eventhandler to control Neven Klofutar ASP .Net 0 06-01-2004 01:39 PM
EventHandler problem =?Utf-8?B?SiBNY0Q=?= ASP .Net 0 02-22-2004 09:41 PM
Add an eventhandler on a button_click =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?= ASP .Net 1 02-17-2004 07:53 PM
Dynamic eventhandler Jacob ASP .Net 1 02-05-2004 01:45 PM



Advertisments