mvc¿ò¼ÜÏÂhtmlÒýÓÃjsµÄÒÉÎÊ - .NET¼¼Êõ / ASP.NET
ÇëÎÊÔÚhtmlÒ³ÃæÒýÓõÄjsÎļþÀïΪʲô²»ÄÜͨ¹ý<%=ViewData[""] %>µÄÐÎʽȡÊý¾Ý£¿
jsÎļþ²»Ö§³Ö·þÎñÆ÷½Å±¾£¬°Ñjsºó׺¸Ä³É.aspxºó׺¾Í¿ÉÒÔÁË
Â¥É϶¼Õý½âÁË£¡
ÏëÒª±»±àÒ룬ÄǾÍÖ±½ÓÔÚaspxÒ³ÃæÖ±½Óдjs´úÂ룬ÕâʱÄã¿ÉÒÔÓÃÕâÖÖ¸ñʽÁË
»òÕßÔÚaspxÒ³ÃæÖ±½ÓÉùÃ÷Ò»¸öjs±äÁ¿£¬È«¾ÖµÄ£¬È»ºóÔÚjsÎļþÀïÃæ¿ÉÒÔµ÷ÓÃÕâ¸ö±äÁ¿¡£
¿ÉÒÔÔÚºǫ́ÖÐдºÃÁË ÔÚJSÖÐÕâôµ÷ÓÃ<%=XX %>
¸Ðл¸÷룬µÃµ½´ð°¸ÁË¡£
À´ÍíÁËÒ»²½
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
ÔÚ·¢±íÆÀÂÛʱ ¹ýÂË ÈçºÎ£º<br/> <hr/> Ë«ÒýºÅ µ¥ÒýºÅ »¹ÓÐÆäËû µÈ Óкõķ½·¨¸æËßһϠлл
.replace(/<\w+[^>]*>/g,"").replace(/'/g,"''")
½«µ¥ÒýºÅ»»³É2¸ö ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......
asp.netÖе±²»Í¬µØ·½µÄÓû§´ò¿ªÍøÒ³Ê±ÔõôÔÚÎı¾¿òÖÐÏÔʾËûµÄËùÔÚµØ,¾ÍÏñÉêÇëQQʱ£¬Ñ¡ÔñËùÔÚµØÒ»Ñù.
¸ù¾ÝIPµØÖ·Åжϣ¬ÍøÉÏÓиù¾ÝIP·µ»ØµØÇøµÄWebserivce£¬µ÷ÓþͿÉÒÔÁË
ÒýÓÃ
¸ù¾ÝIPµØÖ·Åжϣ¬ÍøÉÏÓиù¾ÝIP·µ»Øµ ......
<table border= "0 " cellspacing= "0 " cellpadding= "0 ">
<BH_CHANNELS ID= "OWNER " CHILDTYPE= "aaa " ......