471,319 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Image Click working before Page Load

How can I make a Image Click working before Page Load event?

The Problem I'm getting is that I'm loading an ImageButton dynamically
from a Web User Control. How can I make the Web User Control
ImageButton return a value to the main Page ?

Thanks and sorry for already posting this...

Dec 17 '05 #1
3 4316
Varangian wrote:
How can I make a Image Click working before Page Load event?

The Problem I'm getting is that I'm loading an ImageButton dynamically
from a Web User Control. How can I make the Web User Control
ImageButton return a value to the main Page ?

Thanks and sorry for already posting this...


The web is a handshake driven system: request comes from the client,
the server responds, and the transaction ends there. So to make the
server side act on a client's action, a request from the client has to
be produced and send first. I have the feeling you want to send
something to the client without a request, is that correct?

FB

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Dec 18 '05 #2
Thanks for you reply :)

Do you know how to return a value from a Web User Control. Say I have
an ImageButton on a Web User Control and when clicked I want to return
back to the Main Page a value (Its ID). I can go around it with this.

Thanks :)

Dec 18 '05 #3
Varangian wrote:
Thanks for you reply :)

Do you know how to return a value from a Web User Control. Say I have
an ImageButton on a Web User Control and when clicked I want to return
back to the Main Page a value (Its ID). I can go around it with this.


Create an event in the user control, and raise it in the button event
handler in the control. In the page code, you bind to the event of the
user control. Viola :)

FB

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Dec 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mehdi | last post: by
2 posts views Thread by Stevio | last post: by
9 posts views Thread by Mark Denardo | last post: by
2 posts views Thread by smokeyd | last post: by
4 posts views Thread by MikeB | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.