Hi everybody,

I am facing problem in javascript.
I got javascript code for desiging a input form.
That code is saved as test.html file.
My Doubt is:

1) How do i use in my mainpage.aspx?

PLz its very urgent.

Thank you all

One, this is JSP section of this forum and JSP stand for Java Server Pages
Two, JavaScript has nothing to do with Java, as JS is scripting language and Java is programming language(needs to be compile first and then can be executed)
Three, you should post it in ASP part of this forum

PS:Request for moving this post to ASP section been sent, so please DO NOT create another post there

You take out the relevant javascript portions and save it as a .js file, then include it like any other javascript file in your aspx source.

You take out the relevant javascript portions and save it as a .js file, then include it like any other javascript file in your aspx source.

how to include javascript file in a aspx source...
plz expalin it detailly

You include it exactly the same as you would in an html file. An aspx file is still markup, just like html, and normal markup tags are allowed in addition to special aspx tags.
So,
<script src="yourjsfile.js" type="text/javascript" />

This article has been dead for over six months. Start a new discussion instead.