|
-
Jun 19th, 2003, 01:10 AM
#1
Thread Starter
New Member
Problem of Validators in Netscape
Hi,
I am developing a big portal in ASP.NET. In which i have applied many validators in single page. This validators are working correctly in IE. But when i use the same page in Netscape these validators become server side validator. And for my portal it's a big problem. I have searched many places for the solution. But couldn't find any solution. So, if any body knows pls help me out.
Thanx
-
Jun 19th, 2003, 07:53 AM
#2
New Member
Does it make a difference if your target schema is set to IE3 and Netscape 3 in the project properties CommonProperties.DesignerDefaults?
-
Jun 20th, 2003, 02:05 AM
#3
Thread Starter
New Member
Not working
Thanx for reply.
But I allready tried "targetschema" property before this. But it's not working. Tell me any other things if u know.
Thanx
-
Jun 20th, 2003, 10:25 AM
#4
Frenzied Member
How are you testing with the netscape browser? Are you uploading the project to your webhost then testing it?
I had such a problem. The thing is my validators would fire if I was testing on my local machince but would'nt fire when I uploaded the project to my webhost. After doing some reading in Essential ASP.NET, I found what I was looking for. It turns out that for the validator controls, ASP.NET generates a WebUiValidation.js javascript file and places it in c:/inetpub/wwwroot/aspnet/1.1.422/. Now you have to upload that file to your webhost. Then all you do is set a reference to that file on the page with the validation controls like this.
Code:
<script language ='javascript'
src='webuivalidation.js'
</script>
Also, you should also use Page.IsValid with the validator controls.
-
Jun 23rd, 2003, 12:54 AM
#5
Thread Starter
New Member
This is by default included
Thanx for reply.
But whenever you put any validator control on ASPX page it automatically 'webuivalidation.js' will be included on the page irrespective of any browser. Without this file even it will not work in IE. My problem is the validators are successfully working on IE but in netscape validators fires after postback.
Thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|