cesark
Programmer
- Dec 20, 2003
- 621
Somebody can help me in how can I include a .js file in my aspx page so that to trigger a javascript validation? And also the best event that I able to use, for instance: OnClick, OnSubmit,..
I have read an article from msdn that says if you want to include a .js file in an ASP.NET page you have to do it thus:
VB.NET
But this doesn' t run.
Now I use:
Thank you
I have read an article from msdn that says if you want to include a .js file in an ASP.NET page you have to do it thus:
VB.NET
Code:
Page.RegisterClientScriptBlock("MyScript", _
"<script language=javascript src='MyJavaScriptFile.js'>")
But this doesn' t run.
Now I use:
Code:
<form id="form1" OnSubmit=" return jsFunctionName()" runat="server"> </form>
Thank you