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

Bug? - RegularExpressionValidator on a MultiLine TextBox

P: n/a
Hello everyone

I have a MultiLine TextBox, as follows

<asp:TextBo
Id="StreetAddress
Rows="4
Runat="Server
TextMode="MultiLine
Width="100%"/

To which I assign the following RegularExpressionValidator

<asp:RequiredFieldValidato
ControlToValidate="StreetAddress
Display="Dynamic
ErrorMessage="You must enter your street address
Id="StreetAddressReqVal
Text="*
Runat="Server"/

The problem is thar, when I enter a multiline text on that TextBox, when I finish editing (hitting TAB or clicking outside the TextBox), Internet Explorer hangs up..

And I'm sure that the problems is the TextMode="MultiLine" property, since when I remove it, everything works perfectly

Can anyone help me? Is this an ASP.NET bug? How can I override it

Thanx.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi, Enzo Marinelli,

Did you test the code on different computers? And which version of the
framework you are working with? Most probably it's your browser that has
some problems (or your windows even).

And it's not a RegularExpressionValidator in your example - it's a
RequiredFieldValidator.

Greetings
Martin
"Enzo Marinelli" <an*******@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
Hello everyone,

I have a MultiLine TextBox, as follows:

<asp:TextBox
Id="StreetAddress"
Rows="4"
Runat="Server"
TextMode="MultiLine"
Width="100%"/>

To which I assign the following RegularExpressionValidator:

<asp:RequiredFieldValidator
ControlToValidate="StreetAddress"
Display="Dynamic"
ErrorMessage="You must enter your street address"
Id="StreetAddressReqVal"
Text="*"
Runat="Server"/>

The problem is thar, when I enter a multiline text on that TextBox, when I finish editing (hitting TAB or clicking outside the TextBox), Internet
Explorer hangs up...
And I'm sure that the problems is the TextMode="MultiLine" property, since when I remove it, everything works perfectly.
Can anyone help me? Is this an ASP.NET bug? How can I override it?

Thanx.


Nov 18 '05 #2

P: n/a
And the regular expression is?

Greetings
Martin
"Enzo Marinelli" <an*******@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Martin, thanks for your reply...

You are right, I copy & pasted the wrond validator...

The RequiredFieldValidator does work, but the RegularExpressionValidator does crash Internet Explorer, at least on my machine...
I use the latest Framework 1.1.4322.573, Internet Explorer 6.0.2800.1106 and Windows 2000 SP4
Could you try this and see if it works?


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.