473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Bug? - RegularExpressionValidator on a MultiLine TextBox

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
2 2464
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy Eshtry | last post by:
I have a radio button list, a textbox representing SIN or EIN based on my radio button list selection so I put 2 regularexpressionvalidator to evaluate the value of textbox. EIN must be (for...
7
by: Joel Finkel | last post by:
Folks, I have a form that has several TextBoxes, some of which have the TextMode set to MultiLine. Each is pre-loaded with data from a database. The user is allowed to modify each entry. The...
1
by: Ken Grimmett | last post by:
I have added a REV to an input type of file. I want to make sure that the only file type that is allowed is a .gif, .jpg, or .jpeg. I develop my site on my laptop which is running Win XP Pro and...
3
by: DC | last post by:
I have this snippet: <tr> <td align="left">E-mail</td> <td> <asp:TextBox id="txtEmail" runat="server" MaxLength="100"></asp:TextBox>&nbsp; <asp:RegularExpressionValidator id="revEmail"...
1
by: rockdale | last post by:
Hi, all Is there a way to dynamically attach a regularexpressionvalidator to a textbox base on dropdownlist selected item? Let's say I have a dropdownlist list all contact type - phone, cell,...
4
by: =?Utf-8?B?Y3VyaW91cw==?= | last post by:
I am using a RegularExpressionValidator to validate a TextBox. I use "^?+(\.*)?$" to check for a real number. The control works fine as long as the user enters something in the TextBox; it does not...
9
by: Nathan Sokalski | last post by:
I have several TextBoxes with TextMode="MultiLine" in which I want to limit the number of characters that can be entered using a RegularExpressionValidator. I have come up with the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.