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