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

Disable all autogenerated Javascript

Hi all,

I'd like everything to be done server-side and don't like to see any
Javascript on my page source. Would it be possible also to prevent the
validator controls render a blank space   when no error message is
displayed?

I'm using WebControls, should I just switch to HTMLControls and maybe
throw all the user submit value in cache and retrieve the values from
there?

Thanks,
Lorenzo

Nov 19 '05 #1
2 1406
Set the EnableClientScript property to false on each validator.

When the validators have not been validated or are valid, they are entirely
hidden. You cannot have them substitute a  . When the error message is
hidden, either the control is not taking up any space on the page or is
using the same space as the error message. This is controlled by the Display
property (Static vs Dynamic).

FYI: I built a replacement to Microsoft's validator controls, "Professional
Validation And More" (http://www.peterblum.com/vam/home.aspx). Each of my 25
validators has a property called NoErrorFormatter where you can define
" " as what appears when the error message is hidden. This is just one
of a huge list of enhancements to validation in Professional Validation And
More.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

<lb********@gmail.com> wrote in message
news:11********************@g49g2000cwa.googlegrou ps.com...
Hi all,

I'd like everything to be done server-side and don't like to see any
Javascript on my page source. Would it be possible also to prevent the
validator controls render a blank space &nbsp; when no error message is
displayed?

I'm using WebControls, should I just switch to HTMLControls and maybe
throw all the user submit value in cache and retrieve the values from
there?

Thanks,
Lorenzo

Nov 19 '05 #2
Peter Blum wrote:
Set the EnableClientScript property to false on each validator.

When the validators have not been validated or are valid, they are entirely
hidden. You cannot have them substitute a &nbsp;. When the error message is
hidden, either the control is not taking up any space on the page or is
using the same space as the error message. This is controlled by the Display
property (Static vs Dynamic).
Hi Peter,

thanks very much for the explanation, I was actually trying to
understand all of the subleties hidden in these control properties such
as Display
FYI: I built a replacement to Microsoft's validator controls, "Professional
Validation And More" (http://www.peterblum.com/vam/home.aspx). Each of my 25
validators has a property called NoErrorFormatter where you can define
"&nbsp;" as what appears when the error message is hidden. This is just one
of a huge list of enhancements to validation in Professional Validation And
More.


I think someday I'll end up too with some controls which expose just
the simple API I need without all this unneccessary stuff added but
which nontheless you need messing around with.

Thanks,
Lorenzo

Nov 19 '05 #3

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

Similar topics

6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
1
by: Michael Søndergaard | last post by:
I like the feature, to have the IDE report missing XML doc tags for my project, but I have some typed dataset, which generates thousands of missing XML hint. Obviously I does'n like to document...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
8
by: Binny | last post by:
I have a DG with autogenerated columns. can i make a columns readonly like the data key column. when edititemindex is valid. Thanks
0
by: Luis Esteban Valencia | last post by:
Once a user clicks "add new row", a new row is created in my Datagrid. The datasource is huge so they have to scroll to the bottom of the page to edit the data in the new row. I have come across...
0
by: talal | last post by:
How to check whether javascript is enable or disable in client browser. Remeber i can check wheter browser client support javascript with BrowserCapability class. But what if the client has disable...
1
by: Bob | last post by:
Does anyone know how to disable javascript in the new Netscape 8 -- for off line testing (like can be done readily with the current MSIE, Firefox or Opera browsers) ? When I try tools -> options...
3
by: John K | last post by:
I am trying to eliminate the capability of displaying the details of a web service by disabling WSDL generation in the web.config file. I have made the following changes to the web.config: ...
8
by: alamodgal | last post by:
hiiiiiiiiiii everybody, pls solve my problem if u can? Actualy what happens in my site when i press enter key it will show some secured...
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?
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.