Image Click working before Page Load

V

Varangian

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...
 
F

Frans Bouma [C# MVP]

Varangian said:
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

--
 
V

Varangian

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 :)
 
F

Frans Bouma [C# MVP]

Varangian said:
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

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top