asp.net ÖÐhtml Ò³Ãæ µÇ¼ - .NET¼¼Êõ / ASP.NET
ÎÒÔÚÏîÄ¿ÖÐ ÓиöHTML ¾²Ì¬Ò³Ã棬ÐèҪʵÏֵǼµÄ¹¦ÄÜ£¬Çë½ÌÓ¦¸ÃÔõôʵÏÖÕâÑùµÄ´úÂëÄØ£¿
ÄǾÍÒì²½ÇëÇó¿©
Ìá½»µÇ½form
HTML code:
<form action="ÑéÖ¤µØÖ·" method="post">
̞: <input name=user type=text maxlength=20 size=22 value="" ><br>
ÃÜ Âë: <input name=pass type=password maxlength=20 size=22 value="" ><br>
<input type=submit value="µÇ½" > <input type=reset value="È¡Ïû" >
</form>
htmlÖÐÇëÒ»¸ö±íµ¥,ÊäÈëÓû§ÃÜÂë ÕÊ»§,Ìá½»¸ø aspxÒ³,²»¾ÍµÇ¼ÁË?
Èç¹û²»ÏëÕâÑù,¾ÍÔÚHTMLÒ³ÖзÅajax.
ÄÇÎÒÔÚASPXÒ³ÃæÖÐÓÃRequest.QueryString»ñÈ¡Õ˺ÅÃÜÂëÐÅÏ¢£¿
ÄÇÈç¹ûµÇ¼֮ºó ÎÒÔõô·µ»ØÄØ£¿°ÑµÇ¼½çÃæ»»³É»¶Ó½çÃæÄØ £¿
aspx·µ»ØÂïµ½htmlÒ³?
ÓÃRequest.UrlReferrerÈ¡µÃhtmlµÄURL (ÕâÀï¿É²»±ØÒª,ÒòΪÄãÒÑÖªµÀhtmlÒ³µÄURL,¿ÉÔÚaspx´úÂëÖÐÖ±½ÓÓ²±àÂë³öÀ´)
ÔÚaspxÖеǼ³É¹¦,¿ÉÒÔresponse.redirect(ÔhtmlÒ³)
ͬÀí,ÄãÏëµ½»¶Ó½çÃæ,ÄǾÍresponse.redirect(»¶ÓÒ³Ãæ)
µ±È»,ÄãÒ²¿ÉÒÔÊä³öjavascript´úÂë,À´·µ»ØÔÀ´µÄhtml
response.write "<script language='javascript'>"
response.write "history.go(-1);&
Ïà¹ØÎÊ´ð£º
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌⶼ¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
<span id="Label1">Èç¹ûÄÜ¿´µ½Õâ¸ö±êÇ© ˵Ã÷ÎÒÃÇÒѾÄÜ´ÓHTML Ò³ÃæÉÏ»ñÈ¡ÁËÕâ¸öÔªËؿؼþ´«µÝµ½SilverlightÓ¦ÓóÌÐòÖÐ </span>
<br />
<input type="sub ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔʾһЩÌض¨±íÏÖÐÎʽÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇʲôÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡
¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡
Ö±½ÓÖ´ÐоÍÐÐÁË
exec ......