Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
193
rated 0 times [  199] [ 6]  / answers: 1 / hits: 172782  / 15 Years ago, tue, november 3, 2009, 12:00:00

I want to do some client side validation using javascript in ASP.NET page.



I tried using



<script src=../../../JS/Registration.js language=javascript type=text/javascript />



but its not working.
Please help.


More From » asp.net

 Answers
70

Probably the file is not in the path specified. '../../../' will move 3 step up to the directory in which the page is located and look for the js file in a folder named JS.



Also the language attribute is Deprecated.



See Scripts:




18.2.1 The SCRIPT element



language = cdata [CI]



Deprecated. This attribute specifies
the scripting language of the contents
of this element. Its value is an
identifier for the language, but since
these identifiers are not standard,
this attribute has been deprecated in
favor of type.




Edit



Try changing



<script src=../../../JS/Registration.js language=javascript type=text/javascript /> 


to



<script src=../../../JS/Registration.js language=javascript type=text/javascript></script>

[#98397] Thursday, October 29, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dominics

Total Points: 424
Total Questions: 99
Total Answers: 107

Location: South Korea
Member since Fri, Sep 11, 2020
4 Years ago
dominics questions
Wed, Apr 6, 22, 00:00, 2 Years ago
Thu, Jan 13, 22, 00:00, 2 Years ago
Fri, Sep 18, 20, 00:00, 4 Years ago
;