473,385 Members | 1,449 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,385 software developers and data experts.

*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site)....

*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole
site)....

How would I trap/detect that a textBox contains some illegal characters?

(I'm using asp.net v1.1 and vb.net)

Thanks.
Aug 12 '06 #1
2 2044
How about using RegularExpressionValidator?

""A_Michigan_User"" <Mi**************@ameritech.netwrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole
site)....

How would I trap/detect that a textBox contains some illegal characters?

(I'm using asp.net v1.1 and vb.net)

Thanks.
Aug 12 '06 #2
Wouldn't I have to set ValidateRequest="False" for the whole page ... then
write my own RegEx code?

I'm trying to do this *WITHOUT* using: ValidateRequest="False" at all.

Like this:
Don't use ValidateRequest="False" at all..
Allow MS to check and generate the error.
I trap the error and can work around it.

I'm beginning to think that I'm stuck either way I do it:
I have to use the very dangerous "allow all characters in all textBoxes
on my entire page".
or
Forbid the dangerous characters ...but then everyone sees the ugly error
msg.

Wouldn't ValidateRequest have been infinitely more useful like this:
ValidateRequest="Remove" (Strip-out all the dangerous characters...
and no error is generated)
ValidateRequest="Trap" (Just give me a yes/no if this textBox contains
illegal chars... and I'll do the reset)

What are "illegal characters" anyway? MS seems to have an exact definition.
(Otherwise how could it generate the error?)

"Siva M" <sh******@online.excite.comwrote in message
news:eX**************@TK2MSFTNGP06.phx.gbl...
How about using RegularExpressionValidator?

""A_Michigan_User"" <Mi**************@ameritech.netwrote in message
news:eS**************@TK2MSFTNGP05.phx.gbl...
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole
site)....

How would I trap/detect that a textBox contains some illegal characters?

(I'm using asp.net v1.1 and vb.net)

Thanks.


Aug 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Persep | last post by:
Hi, any suggestions in javascript for selecting the text of a whole web page at the touch of a button without using text inputs. TIA
1
by: dumblede | last post by:
Hello fellows, i would like to center a 800px wide 600px high content area without using frames. I have "come up" with the following solution so far. It works under IE 6.0, Firefox 1 (under...
31
by: wallster | last post by:
please keep the flaming to a minimum (a bucket of water is next to me) but I have a question someone here might be able to explain in basic terms for a dunce like me. I helped a friend put...
4
by: HP | last post by:
Hi, Let me say thanks in advance for reading my question, I would be grateful if you help in this case: I have a page in which members' comments are displayed. the other members can...
13
by: urs | last post by:
Hi, please look at the site http://www.prismatest.ch/catalog/EM.ASPX (user=prismashop, password=minicooper). When paginating through the list, the page rebuilds itself every time on firefox and...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
3
by: DanWeaver | last post by:
New to asp. using VS2005. I have an HTML page with various elements and moveable graphics- when I make an asp action (selecting some rows from a sql dbase) the whole page is refreshed and I lose...
0
by: chrisexv6 | last post by:
Here's an interesting issue: if I open a .SLN file thru Visual Studio, "Build Web Site" and run it, the AJAX stuff refreshes the whole page. However, if I go into VS and do File, Open Web Site,...
5
by: vasilis | last post by:
I have a list box in a site with which I capture a selected value with the onChange event using the capture_value() function (code listed below). This function passes 2 arguments, i.e., 'str' which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.