473,406 Members | 2,956 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,406 software developers and data experts.

ASP.NET Validation Problem

Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0) and
deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in ASP.NET
2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages all
through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there is
a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and nothing
has been fruitful so far.

1. The solution below does not have a clear logical explanation. However,
several programmers have claimed in blogs that this solution definitely
works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab and
select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the client-side
validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep
Jul 27 '07 #1
5 5791
Kuldeep,

I suspect that you are somehow missing the aspnet_client folder from within
the website that is not working. Normally this folder containing all the
javascripts needed for the built in aspnet controls is installed on the
server under c:\inetpub\wwwroot

Depending on your website setup these scripts are probably not being found
depending on path setup, etc.

The easy solution, if this is the case, is to copy the aspnet_client folder
from your working environment directly into the website folder on the server
that isn't working.

Regards,

--
S. Justin Gengo, MCP
justin@aboutfortunate[-NoSpam-].com

Free code library at:
www.aboutfortunate.com


"Kuldeep" <ku****************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0)
and deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in
ASP.NET 2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages
all through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there
is a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and
nothing has been fruitful so far.

1. The solution below does not have a clear logical explanation.
However, several programmers have claimed in blogs that this solution
definitely works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab
and select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the client-side
validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep

Jul 27 '07 #2
We have tried this too.. No luck as yet!
Any other leads on this??

Kuldeep

"S. Justin Gengo" <justin@aboutfortunate[-NoSpam-].comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Kuldeep,

I suspect that you are somehow missing the aspnet_client folder from
within the website that is not working. Normally this folder containing
all the javascripts needed for the built in aspnet controls is installed
on the server under c:\inetpub\wwwroot

Depending on your website setup these scripts are probably not being found
depending on path setup, etc.

The easy solution, if this is the case, is to copy the aspnet_client
folder from your working environment directly into the website folder on
the server that isn't working.

Regards,

--
S. Justin Gengo, MCP
justin@aboutfortunate[-NoSpam-].com

Free code library at:
www.aboutfortunate.com


"Kuldeep" <ku****************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0)
and deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in
ASP.NET 2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages
all through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there
is a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and
nothing has been fruitful so far.

1. The solution below does not have a clear logical explanation.
However, several programmers have claimed in blogs that this solution
definitely works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab
and select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the
client-side validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep


Jul 27 '07 #3
if you are using asp.net 2.0, there are no validation client files. they
are a resource in the asp.net dll via webresource.axd (which is not a
real page, but processed by the handler).

view source of the page and to get the url, and manually fetch. check if
security is preventing access.

-- bruce (sqlwork.com)

Kuldeep wrote:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0) and
deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in ASP.NET
2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages all
through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there is
a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and nothing
has been fruitful so far.

1. The solution below does not have a clear logical explanation. However,
several programmers have claimed in blogs that this solution definitely
works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab and
select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the client-side
validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep

Jul 27 '07 #4
Hi Bruce,

Sorry for my ignorance. Could you please let me know how exactly would I
know
that the security is preventing access when we look at the "Source of the
Page"?

Kuldeep

"bruce barker" <no****@nospam.comwrote in message
news:eB**************@TK2MSFTNGP06.phx.gbl...
if you are using asp.net 2.0, there are no validation client files. they
are a resource in the asp.net dll via webresource.axd (which is not a real
page, but processed by the handler).

view source of the page and to get the url, and manually fetch. check if
security is preventing access.

-- bruce (sqlwork.com)

Kuldeep wrote:
>Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0)
and deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in
ASP.NET 2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages
all through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there
is a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and
nothing has been fruitful so far.

1. The solution below does not have a clear logical explanation.
However, several programmers have claimed in blogs that this solution
definitely works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab
and select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the
client-side validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep
Jul 30 '07 #5
Thank You Bruce.
Your lead actually helped us to solve the problem.

Kuldeep
"bruce barker" <no****@nospam.comwrote in message
news:eB**************@TK2MSFTNGP06.phx.gbl...
if you are using asp.net 2.0, there are no validation client files. they
are a resource in the asp.net dll via webresource.axd (which is not a real
page, but processed by the handler).

view source of the page and to get the url, and manually fetch. check if
security is preventing access.

-- bruce (sqlwork.com)

Kuldeep wrote:
>Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0)
and deployed it on the Client's Server.
[The Client's Server had ASP.NET 1.1 all these days. This is the first
application which will be deployed in their server which is built in
ASP.NET 2.0]
Apparently, we have used a lot of ASP Validation Controls in our pages
all through out our application.

On the Test Server at our end, these Validation Controls are firing
precisely without even giving any problems at all.
But on the other hand, when we deploy the application on the Client's
Server, we have observed that the Validation Controls are not functioning
appropriately.

For Example,
1. Lets have a Required-Field-Validator for a TextBox
2. On the "Submit" button-click, the Validators are not firing and there
is a post-back even if the inputs are invalid.

Please let us know if there is anything that we are missing out on.

P.S: We have already followed all these instructions given below and
nothing has been fruitful so far.

1. The solution below does not have a clear logical explanation.
However, several programmers have claimed in blogs that this solution
definitely works.

(a) Open IIS Manager

(b) Select the virtual folder of OT_VSPE application.

(c) Right click and delete the virtual folder.

(d) Now create the virtual folder for OT_VSPE application again. After
creating the virtual folder, make sure to click the ASP.Net Version tab
and select the version as 2.0.

(e) Client side validation should now start working.

2. The second solution is given below:-

(a) Open a command prompt on the development server and change to the
directory where aspnet_regiis.exe exists
(b) Type: aspnet_regiis.exe - ea (this will remove all the client-side
validation that IIS has registered for all ASP versions installed)
(c) Now type : aspnet_regiis.exe -c (this will re-install the
client-side validation)

Any leads on this would be highly appreciated.

Thanks in advance,
Kuldeep
Aug 2 '07 #6

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

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
41
by: Gérard Talbot | last post by:
Cross-posted to: comp.infosystems.www.authoring.html and alt.html Followup-to: comp.infosystems.www.authoring.html 1- One day, I stumbled across a website that offers to validate webpages. What...
3
by: Kent Ogletree | last post by:
I am porting a Java XML Validation class over to C# and I am having a problem finding exactly what I need to acomplish the task. First I need to test for well formedness. I know this is usually...
4
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
3
by: john morales | last post by:
Hi guys, I have a problem and i know there must be a solution for this as it is such a basic common practice in asp.net development. Scenario: i have many webforms in a site, most with two...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
9
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected......
2
by: dustbort | last post by:
I recently had a problem where my required field validator stopped working. But, the page still posted back and tried to insert a record into the database without performing server-side validation....
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?
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:
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
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.