last day (18 days later) » 

2:08 PM
1
A: Stop page post back on button click

Alexandru-Ionut MihaiIf you use return false within your OnClientClick it will prevent PostBack. Please try this: <script type="text/javascript"> function Validate() { return false; } </script> <asp:Button ID="FlAttachParty" runat="server" Width="150px" Height="25px" Text="Add Attachment" OnClientCli...

 
nad
Adding onClientclick doesn't opens my dialog box..why ?
that too doesn't works. on click it justs disables my button..
 
@nad, I updated answer.
 
nad
Yes, I tried that but my OnClick function is not working,
still happening the same, not going to Onclick function
 
I updated answer.
 
nad
now this error Microsoft JScript runtime error: Object doesn't support this property or method at line event.stopPropagation();
 
2:08 PM
Please have a look now.
 
nad
now onclick stopped working.
 
Are you using if (!Page.IsPostBack){ //Your code } ?
 
nad
No I m using !isPostback
 
Can you send me full page code ?
 

  last day (18 days later) »