Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Taking control over a button
Message
From
11/05/2006 02:57:23
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Taking control over a button
Miscellaneous
Thread ID:
01120906
Message ID:
01120906
Views:
59
Is there a way to have full control over an asp:button control on a Web form? It seems that even if I include an asp:button and change the UseSubmitBehavior property to false, when I will click on it, this will still generate a submit. When this property is false, the generator sends a form with a INPUT=BOTTOM. So, I really don't understand why this is still doing a submit.

This is the code of the button:
<asp:button ID="Cancel" runat="server" style="Width: 75px;" CssClass=Button UseSubmitBehavior=false></asp:button>
This is how it generates:
<input type="button" name="Cancel" value="Cancel" onclick="window.location='http://www.levelextreme.com';__doPostBack
 ('Cancel','')" id="Cancel" class="Button" style="Width: 75px;" />
So, basically, I need full control over that button. I don't want this post back stuff to be added. I want the user to click on it and go where I want it to go. I haven't been able to find a way to avoid this post back stuff to be added.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform