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

Diffrent behaviour

Hi all,

I put 3 validators in my page and set the "ClientScript" to true. All of
them works fine when I run the .NET application on my computer. But when I
publish the page on the internet, the validators cause postback events
instead.

this is the code:
----------------------------------------------------
<p><ASP:RequiredFieldValidator id="requiredFieldValidator1" runat="server"
errormessage="Enter your fullname." controltovalidate="fullname"
display="Dynamic" font-names="Verdana"
font-size="10pt"></ASP:RequiredFieldValidator>
</p><p><ASP:RequiredFieldValidator id="requiredFieldValidator2"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RequiredFieldValidator" display="Dynamic"
controltovalidate="email">Enter your email
address.</ASP:RequiredFieldValidator>
</p><p><ASP:RegularExpressionValidator id="regularExpressionValidator1"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RegularExpressionValidator"
validationexpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
display="Dynamic" controltovalidate="email">Please correct your email
address.</ASP:RegularExpressionValidator>
</p>
----------------------------------------------------

Any idea?

Thank you,
Mehrdad
May 8 '06 #1
2 1065
Hi,

Well, that code was pretty much unreadable :)

IIRC this is cause you are missing the /aspnet_client dir there is where
the file for the client validators is
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"M. Noroozi Eghbali" <ga****@irandoc.ac.ir> wrote in message
news:ua**************@TK2MSFTNGP02.phx.gbl...
Hi all,

I put 3 validators in my page and set the "ClientScript" to true. All of
them works fine when I run the .NET application on my computer. But when I
publish the page on the internet, the validators cause postback events
instead.

this is the code:
----------------------------------------------------
<p><ASP:RequiredFieldValidator id="requiredFieldValidator1" runat="server"
errormessage="Enter your fullname." controltovalidate="fullname"
display="Dynamic" font-names="Verdana"
font-size="10pt"></ASP:RequiredFieldValidator>
</p><p><ASP:RequiredFieldValidator id="requiredFieldValidator2"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RequiredFieldValidator" display="Dynamic"
controltovalidate="email">Enter your email
address.</ASP:RequiredFieldValidator>
</p><p><ASP:RegularExpressionValidator id="regularExpressionValidator1"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RegularExpressionValidator"
validationexpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
display="Dynamic" controltovalidate="email">Please correct your email
address.</ASP:RegularExpressionValidator>
</p>
----------------------------------------------------

Any idea?

Thank you,
Mehrdad

May 8 '06 #2
Thank you very much. it was the exact point.

Mehrdad
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:Oi**************@TK2MSFTNGP04.phx.gbl...
Hi,

Well, that code was pretty much unreadable :)

IIRC this is cause you are missing the /aspnet_client dir there is where
the file for the client validators is
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"M. Noroozi Eghbali" <ga****@irandoc.ac.ir> wrote in message
news:ua**************@TK2MSFTNGP02.phx.gbl...
Hi all,

I put 3 validators in my page and set the "ClientScript" to true. All of
them works fine when I run the .NET application on my computer. But when
I publish the page on the internet, the validators cause postback events
instead.

this is the code:
----------------------------------------------------
<p><ASP:RequiredFieldValidator id="requiredFieldValidator1"
runat="server" errormessage="Enter your fullname."
controltovalidate="fullname" display="Dynamic" font-names="Verdana"
font-size="10pt"></ASP:RequiredFieldValidator>
</p><p><ASP:RequiredFieldValidator id="requiredFieldValidator2"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RequiredFieldValidator" display="Dynamic"
controltovalidate="email">Enter your email
address.</ASP:RequiredFieldValidator>
</p><p><ASP:RegularExpressionValidator id="regularExpressionValidator1"
runat="server" font-names="Verdana" font-size="10pt"
errormessage="RegularExpressionValidator"
validationexpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
display="Dynamic" controltovalidate="email">Please correct your email
address.</ASP:RegularExpressionValidator>
</p>
----------------------------------------------------

Any idea?

Thank you,
Mehrdad


May 8 '06 #3

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

Similar topics

11
by: Brian Henry | last post by:
Hi everyone, What I am doing in my application is I have a base app, then a bunch of plug-in dll files. Well this gets confuseing to diferentiate between the real plug-ins and the actual link...
2
by: roN | last post by:
Hi, I'm redoing a page, check on www.paykiosks.net/new it looks nice so far I think, but check http://www.paykiosks.net/new/hoteliers.html too, the table on the right side is supposed to react...
3
by: anders | last post by:
Hi! On my work we have a lot off diffrent server to make software for diffrent os from Windows, OS/X to Linux Solaris Everyting is scripted with shell, but Windows has batchfiles witch is...
3
by: Rudemusik | last post by:
Hello all! Working in vb.net, with VS 2003. I have 2 projects in a solution. Pretty much a client server setup. Project A controls when a message box open up on Project B. Click a button on A,...
1
by: krikaran adel | last post by:
Hi, First of all I found your tips very usfull, of course these tips becuas of all years working in access. really greet site. my Quation: is this away to change fonts in reports so the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.