View Single Post
  #6 (permalink)  
Old April 14th, 2005, 06:46 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

yes,

because asp:button is rendered to submit button and there was no onclick attribute

<input type="submit" name="Button" value="Button" id="Button" />

so after that I added an onclick attribute to my asp:button

Button.Attributes.Add("onclick","__doPostBack('But ton','')");

so it would be rendered

<input type="submit" name="Button" value="Button" id="Button" onclick="__doPostBack('Button','')" style="height:0px;width:0px;"/>

I worked with button click event instead of text changed event.

_____________
Mehdi.
software student.
Reply With Quote