View Single Post
  #3 (permalink)  
Old April 1st, 2005, 07:49 AM
mehdi62b mehdi62b is offline
Friend of Wrox
Points: 1,351, Level: 14
Points: 1,351, Level: 14 Points: 1,351, Level: 14 Points: 1,351, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Santhi,
Thanks for the reply,
what I wanted is somewhat strange,

I want to raise TextBox1_TextChanged event(server side event) when user clicks on Button
at client-side codes(I mean I want to launch a server side event from the client side codes)

this is the tag I use in my ASP.NET page
<button id="mahdi" type="button" language="javascript" onclick="document.Form1.TextBox1.onchange();">

when user clicks on the button document.Form1.TextBox1.onchange() will be executed
so __doPostBack('TextBox1','') would be executed so there would be a postback but
when this postback occures just Page_Load fires other server side events like TextBox1_TextChanged doesn't fire.

_____________
Mehdi.
software student.
Reply With Quote