Image Click working before Page Load

  • Thread starter Thread starter Varangian
  • Start date Start date
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...
 
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

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

--
 
Back
Top