Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 15, 2013 05:38 AM by Danny117
Jun 01, 2005 08:32 PM|LINK
System.Web.UI.WebControls.Button.UseSubmitBehavior property is
false, control developers can use the
System.Web.UI.Page.GetPostBackEventReference method to return the client postback event for the
System.Web.UI.WebControls.Button. The string returned by the
System.Web.UI.Page.GetPostBackEventReference method contains the text of the client-side function call and can be inserted into a client-side
Dec 12, 2005 08:02 PM|LINK
I would also like to hear clarification on this issue from microsoft.
Jul 16, 2007 04:57 PM|LINK
I will also like to know what is the reason behind it.
Aug 28, 2007 07:20 AM|LINK
Aug 31, 2007 12:44 PM|LINK
I am having problem with imagebutton as it doesn't have UseSubmitBehavior propert which i could set to false.
Now when ever I enter on the form my image button got submitted
Feb 12, 2009 06:55 PM|LINK
The rendered control now reads
and the postback is commented out.
Of course, Microsoft will figure this out and find a way to prevent it later on ...
Feb 12, 2009 08:00 PM|LINK
Feb 17, 2009 08:18 AM|LINK
You Tried IT.
Feb 20, 2009 06:11 AM|LINK
Feb 27, 2009 06:03 AM|LINK
One of the Comments that I see in,
UseSubmitBehiour="true" i.e., <input type = "submit"> ,
Here I am using the Default Behavior of Browser to post
the Form to server
Because I am not wants to use a __doPostBack function with this
Button for security reason because a Malicious User
can call the __doPostBack function to call the
Server Side Button Event,
<%@ Page EnableEventValidation="true" .....
<asp:TextBox ID="TextBox1" runat="server"
<asp:Button Enabled="false" ID="Button1"
Here the server side Event is executing from text changed
of a Textbox, calling Server Side Button which is disabled,
1) Why ASP.NET execute an Event coming which uses
__EVENTTARGET and the Button is not using this Behaviour?
2) Further for a Button which is disabled from Server Side,
Is EventValidate Method calling this event as Valid PostBack?
However for an Button Visible="False"
EventValidate Method calling this event as Invalid PostBack