ÔÚ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")
²»ÒªÎó
Ïà¹ØÎÊ´ð£º
ÎÒÕÒÁËÒ»¸öα¾²Ì¬´úÂ룬ÈçÏ£º
index.asp
<!--#include file="config.asp"-->
<ol>
<%
Set rs=server.CreateObject("adodb.recordset") & ......
asp ÎÒ²»Õ¦¸ö¶«£¬ÎÒÊÇ×öasp.netµÄµ«ÊÇÇ°Õß¿´¶®Ó¦¸ÃûÓÐÎÊÌ⣬ÎÒÔÙά»¤Ç°ÃæµÄÒ»¸öÍøÕ¾£¬µ«ÊÇ£¬½ñÌìÎÒÒ²²»ÖªµÀÊÇÔõô¶¯ÁË·þÎñÆ÷ºÍÊý¾Ý¿â£¬µ¼ÖÂÎÒaspÒ³ÃæûÓÐʹÓÃÊÓͼֱ½Ó´Ó±íÖлñµÃµÄÊý¾ÝÕý³£ÏÔʾ£¬¶øÄÇЩʹÓÃÁËÊÓͼÀ´ ......
ÓÐÒ»¸öÀà
class adc
{
dim a,b,c
}
ÈçºÎÔÚÁíÍâÒ»¸öÀàÖÐÈ¡µÃÀà³ÉÔ±¼°³ÉÔ±¸öÊý
class getmenber
{
dim menbers()
function getmenbers(resclass)
'resΪһδ֪Àà
'getmenber ......
ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º
ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼:
Àý£º
......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......