PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Access to onclick events of button controls within dynamically created table + adding linked image to table cell

 
 
Hrvoje Vrbanc
Guest
Posts: n/a
 
      11th Mar 2004
Hello all,

I have a table created programatically from within a Codebehind file. Now,
I would like to either of those two things:

a) put images into the table but the images should be linked. I managed to
add Image controls into table cells easily (cell.controls.add(ImageName))
but have no idea how to make them serve as links.

b) put ImageButtons instead of images. In this case, how to access the
onClick events of those buttons as they are dynamically created and put into
dynamically created table? I don't have idea what event to use. Also, I
cannot remove the style for those buttons (set in CSS file and linked to the
ASPX file). ImageButton1.Style.remove or Clear doesn't seem to work - button
is still formatted as specified for INPUT tag in the CSS....

Many thanks,
Hrvoje


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How do I access events from dynamically created controls on WinForms app? acool Microsoft Dot NET Framework Forms 3 20th Jul 2005 03:17 AM
Adding events to dynamically created controls JezB Microsoft ASP .NET 2 18th Jun 2004 03:54 PM
How do I access events from dynamically created controls on WinForms app? acool Microsoft VB .NET 2 11th Jun 2004 06:19 PM
retrieving values from controls dynamically created in a <asp:table> Bryan Donaldson Microsoft ASP .NET 0 24th Nov 2003 06:29 PM
Accessing OnClick event for dynamically created controls. Jim Mitchell Microsoft Dot NET 3 13th Aug 2003 03:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.