Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Repeat an ASP:Image button

Reply
Thread Tools

Repeat an ASP:Image button

 
 
VK
Guest
Posts: n/a
 
      04-25-2005
Hello,

I need to repeat an asp:imagebutton whch has an onclick
event associated it. Is there a way to do it?
 
Reply With Quote
 
 
 
 
Lucas Tam
Guest
Posts: n/a
 
      04-25-2005
"VK" <> wrote in news:03c101c549aa
$20c50d20$:

> I need to repeat an asp:imagebutton whch has an onclick
> event associated it. Is there a way to do it?


Yes... bind the event dynamically to the repeated buttons with AddHandler.

--
Lucas Tam ()
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      04-25-2005
Thanks for your reply. But I dont know how often the image
has to be repeated. It is based on the height of the
screen. I dont know how to calculate that. Furthermore, I
would like to have only one button if it is possible. If
not please let me know how to solve that probkem.

THanks again


>-----Original Message-----
>"VK" <> wrote in

news:03c101c549aa
>$20c50d20$:
>
>> I need to repeat an asp:imagebutton whch has an

onclick
>> event associated it. Is there a way to do it?

>
>Yes... bind the event dynamically to the repeated buttons

with AddHandler.
>
>--
>Lucas Tam ()
>Please delete "REMOVE" from the e-mail address when

replying.
>http://members.ebay.com/aboutme/coolspot18/
>.
>

 
Reply With Quote
 
Lucas Tam
Guest
Posts: n/a
 
      04-25-2005
"VK" <> wrote in news:1f9401c549ad
$f89f5a90$:

> Thanks for your reply. But I dont know how often the image
> has to be repeated. It is based on the height of the
> screen. I dont know how to calculate that.


You can use Javascript or a component like BrowserHawk to get the screen
resolution.


> Furthermore, I
> would like to have only one button if it is possible. If
> not please let me know how to solve that probkem.


You can bind the same event handler to multiple buttons dynamically. Or you
can make multiple buttons call the same event handler.

Binding the event is the easy part. Figuring the screen resolution of the
user's screen is probably what you should be focusing on.
--
Lucas Tam ()
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
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
Re: Important Information About MCP Welcome Kits..repeat posting Microsoft Certification 3 08-17-2012 02:21 PM
Can the ItemHeader repeat for each "section break" in a Repeater? Mike Lerch ASP .Net 2 03-04-2004 04:18 PM
Repeater Control: How to repeat in rows of x? SamIAm ASP .Net 5 01-07-2004 06:00 PM
How do I repeat pages..... Jane sharpe ASP .Net 6 12-18-2003 12:52 PM
Repeat DataGrid? frank ASP .Net 0 07-11-2003 12:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57