__doPostBack not working for me

jsr2hsie

New Member
Is there an error in the way i use the __doPostBack?\[code\]function displaymessage() { var scl = "aaaaaa"; var pageId = '<%= Page.ClientID %>'; __doPostBack(pageId, 'OtherInformation'); alert(scl);}<input type="button" value="http://stackoverflow.com/questions/5770607/Click me!" id="Button2" onclick="displaymessage()" />\[/code\]When i press the button it should call the RaisePostBackEvent in the code file, but it doesn't. If i comment the doPostBack it reaches the alert but when it is uncommented it does not. So it must be an error in the usage of the doPostBack.I followed this post: Call ASP.NET Function From Javascript?
 
Top