p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   JScripts on ASP.NET Master page? (http://p2p.wrox.com/showthread.php?t=55957)

woojtii March 28th, 2007 05:54 AM

JScripts on ASP.NET Master page?
 
Hello,


I have a problem to use JScript (I can't use JavaScript) on ASP.NET masterpage.

when I use this script on ordinary ASP.NET page, it works ok.

How can I use script like this on master page?

<Script for="window" event="onload" language="jscript">

if(window.form.txtSomeTextBox.value == "")
{
 window.form.txtSomeTextBox.focus();
}
</Script>

Thanks!


Wojtek



All times are GMT -4. The time now is 01:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.