By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,320 Members | 2,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,320 IT Pros & Developers. It's quick & easy.

A button doesn't work no more

P: n/a
bbp
Hello,

In an ASPX page I have a "Quit" button which make a simple redirect in
code-behind.
This button doesn't work no more since (I think) I moved from the framework
1.0 to 1.1
and it doesn't work only on IE! My ASPX page works in FireFox.
If the button doesn't work it's because of validators (and it worked with
the same code in v1.0).

The HTML code done in IE :
<form name="Form1" method="post" action="test.aspx" language="javascript"
onsubmit="if (!ValidatorOnSubmit()) return false;" id="Form1">
The HTML code done in FireFox :
<form name="Form1" method="post" action="test.aspx" id="Form1">

It's the "onsubmit" which block the page load. It doesn't appear on
FireFox's HTML code.
I haven't error and nothing is happening.

The "Quit" button's HTML code in both of browsers :
<input type="submit" name="Bouton:Quitter" value="Quitter"
id="Bouton_Quitter" font-color="Red"
style="color:Red;border-width:1px;border-style:Solid;font-size:8pt;font-weight:bold;height:27px;width:150px;" />

The "Quit" button's ASPX code :
<asp:button id="Quitter" CausesValidation="False" runat="server"
Width="150px" Font-Bold="True" BorderStyle="Solid" BorderWidth="1px"
Height="27px" Font-Size="8pt" text="Quitter" ForeColor="Red"
font-color="Red"></asp:button>

How can I do to not generate "onsubmit" event in my form tag?
Or anything else which could make my button work?

I put in the <system.web> tag in the web.config file :
<browserCaps>TagWriter=System.Web.UI.HtmlTextWrite r</browserCaps>
It doesn't work for that!

I'm blocked for some days...

Best regards,

bbp.

PS : I'm not fluent in english, so I'm sorry if you don't understand what I
wrote :)

Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Have u ran :- run aspregiis /i from the .NET framework folder
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #2

P: n/a
bbp
I'm sorry I don't speak english very well and I'm a beginner too...
Why run aspregiis /i ?
Nov 19 '05 #3

P: n/a
This might help: http://scottonwriting.net/sowBlog/posts/2943.aspx

Cheers,

Mun
--
Munsifali Rashid
http://www.munit.co.uk/blog/
"bbp" <bb*@discussions.microsoft.com> wrote in message
news:4C**********************************@microsof t.com...
I'm sorry I don't speak english very well and I'm a beginner too...
Why run aspregiis /i ?

Nov 19 '05 #4

P: n/a
bbp
I had a bad version of WebUIValidation.js.

Well done!
"Patrick Olurotimi Ige" wrote:
Have u ran :- run aspregiis /i from the .NET framework folder
Patrick

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.