ÔÚasp.netÀïÃæ½Å±¾³ö´í - .NET¼¼Êõ / ASP.NET
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
div1.innerHTML="<font color='red'>ÇëÊäÈëÃÜÂ룡</font>";
return false;
}else{
return true;
}
ÔËÐÐÌáʾvalueΪ¿Õ»òÕß²»ÊǶÔÏó¡¢ÇëÎÊÊÇʲôÔÒò¡¢°ïÎÒ½â¾öһϡ¢Ð»Ð»¡£
var pwd=document.all.form.txtOpwd;
PS:document.all[]ÊÇÎĵµÖÐËùÓбêÇ©×é³ÉµÄÒ»¸öÊý×é±äÁ¿
ÕâÑù£ºdocument.all["ÔªËØÃû"].ÊôÐÔÃû
document.all.txtOpwd--->document.all["xxx"].xxxx;
лл¡¢µ«ÊÇ»¹ÊDz»Ðа¡¡¢¸øÎÒÌáʾ˵document.all.txtOpwd.valueΪ¿Õ¡¢»òÕß²»ÊǶÔÏó¡£
document.all.txtOpwd------->document.all["txtOpwd"].text;
ÎÒÊÇдµÄÄÇÑù°¡¡¢µ«ÊÇÌáʾ´íÎóµÄʱºò¾ÍÊÇdocument.all.txtOpwd.valueΪ¿Õ»òÕß²»ÊǶÔÏó¡£ËùÒÔ²»¶®µ½µ×ÊÇÄÄÀï³ö´íÁË¡¢
°Ñhtml´úÂëÒ²Ìù³öÀ´
var pwd=document.getElementById("txtOpwd");
»¹Ã»½â¾ö Â¥Ö÷ ÕæÅå·þÄã
ÓÃÕâ¸övar pwd=document.getElementById("txtOpwd"); Ò²ÐÐ
½¨ÒéÓÃdocument.getElementById("txtOpwd");
²é¿´Ò»ÏÂHTMLÀïÓж¨Òåid="txtOpwd"ÁËÂð£¿
ͬÒâÂ¥Éϵģ¬Â¥Ö÷Äã¹À¼ÆûÓÐÔÚÒ³ÃæÖж¨Ò壬¿ªÊ¼ÉùÃ÷±äÁ¿pwdʱ£¬ÄãÓ¦¸ÃÓÃdocument.getElementByID("ÕâÀïдÃÜÂë¿òµÄid")
²»ÒªÎó
Ïà¹ØÎÊ´ð£º
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
×î½üÔÚ×ö¸öÍøÉÏÉ̳ǣ¬¹ºÎﳵģ¿é£¬Ã»ÓÐ×ö¹ý£¬Âé·³¸÷λ°ïæ˵Ï´óÖÂ˵ÏÂ˼·£¬ÄÜ·¢Ò»·ÝÔ´Âë¸üºÃ¡£Ð¡µÜÏÈл¹ý¸÷λÁË£»
QQ£º413763818£»
eamil:swebook@126.com
ÍøÉÏÒ»´ó¶Ñ£¡
www.51aspx.com
ȥϠ......
·þÎñÆ÷ÏÖÔÚÊÇ¡£net 2.0µÄ
ÎÒÏÖÔÚµÄÏîÄ¿¾ÍÊÇasp.net mvc + linqµÄ£¬ÏÖÔÚ·þÎñÆ÷µÄ»·¾³ÅäÖÃÓò»ÁË¡£
²»ÖªµÀÓÐÇ°±²Åöµ½¹ýÕâÑùµÄÎÊÌâû¡£
ÄѵÀ·þÎñÆ÷±ØÐëҪװ.net3.5 ºÍ asp.net mvc
ÇëÇ°±²Ö¸µã
²»×°ÄãÈÏΪÄãÒªÔõô ......
±¾ÈËÒ»Ö±´ÓÊÂjavaµÄ¿ª·¢£¬ spring , strutsµÈµÈ£¬ ÏÖÔÚÂíÉÏÒª½ÓÒ»¸öasp.netµÄÏîÄ¿£¬ ²»ÖªµÀasp.netÖÐÓÐûÓкÍjavaÖеÄstrutsÀàËƵĶ«Î÷£¬ ¿ÉÒÔÔÚËûµÄ»ù´¡ÉÏ£¬Ö±½Ó¿ª·¢£¬ ЧÂʸߣ¬ ¶øÇÒºÃά»¤ ¡£¡£ лл£¬Ï£Íû´ó¼Ò£¬¶ ......