Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NETÓëJavaScript½»»¥

1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--  
");  
Response.Write("alert('»¶Ó­Äú ');"
 );  
Response.Write("location.href='login.aspx';"
) ;  
Response.Write("  
// --></mce:script>") ; 
  
Response.Write("<mce:script
language=javascript><!--
");
Response.Write("alert('»¶Ó­Äú ');" );
Response.Write("location.href='login.aspx';") ;
Response.Write("
// --></mce:script>") ;
ÔÚÕâÀïÇé¿öÏÂ,Äã¿ÉÒÔµ÷ÓÃÒ³ÃæÖеÄJS½Å±¾µÄº¯Êý¶¼¿ÉÒÔ.
2¡¢js½Å±¾ÈçºÎ·ÃÎÊ·þÎñÆ÷¿Ø¼þµÄÖµ
        ½çÃæÉÏÓÐÒ»¸öTextBox¿Ø
¼þ£¬IDΪName£¬jsÀï¿ÉÒÔ²ÉÓÃÈçϽű¾È¡NameµÄÖµ
view
plain
copy
to clipboard
print
?
var myvalue=document.all(
'Name'
).value;  
var
myvalue=document.all('Name').value;

3¡¢·þÎñÆ÷¿Ø¼þÈçºÎÈ¡jsÖбäÁ¿µÄÖµ
      
·½·¨ÊÇÔÚ½çÃæÉÏ·ÅÒ»¸öÒþ²ØµÄ¿Ø¼þHtmlInputHidden£¬È»ºóÉèÖÃΪÒÔ·þÎñÆ÷¿Ø¼þÔËÐУ¬ÕâÑùÔÚjs½Å±¾ÖкÍASP.NET´úÂëÀﶼ¿ÉÒÔ·ÃÎʵ½¸Ã¿Ø
¼þµÄÖµ
        jsÖиø·þÎñÆ÷¿Ø¼þ¸³Öµ£º
view
plain
copy
to clipboard
print
?
var bt£½document.all(
'Name'
).value;  
bt.value='Ãû³Æ'
;  
var
bt£½document.all('Name').value;
bt.value='Ãû³Æ';

ASP.NETÖÐʹÓÃName.ValueÀ´·ÃÎÊ¡£
4.ǰ̨ºÍºǫ֮́¼äº¯ÊýµÄµ÷ÓÃ
view
plain
copy
to clipboard
print
?
<head runat=
"server"
>  
    <title>Untitled Page</title>  
    <mce:script type="text/javascript"
><!--  
    function callServer(arg){  
        var oTb = document


Ïà¹ØÎĵµ£º

Ìá¸ßASP.NetÓ¦ÓóÌÐòÐÔÄܵÄÊ®´ó·½·¨

Ò»¡¢·µ»Ø¶à¸öÊý¾Ý¼¯    
       
¼ì²éÄãµÄ·ÃÎÊÊý¾Ý¿âµÄ´úÂ룬¿´ÊÇ·ñ´æÔÚ×ÅÒª·µ»Ø¶à´ÎµÄÇëÇó¡£Ã¿´ÎÍù·µ½µµÍÁËÄãµÄÓ¦ÓóÌÐòµÄÿÃëÄܹ»ÏìÓ¦ÇëÇóµÄ´ÎÊý¡£Í¨¹ýÔÚµ¥¸öÊý¾Ý¿âÇëÇóÖзµ»Ø¶à¸ö½á¹û
¼¯£¬¿ÉÒÔ¼õÉÙÓëÊý¾Ý¿âͨÐŵÄʱ¼ä£¬Ê¹ÄãµÄϵͳ¾ßÓÐÀ©Õ¹ÐÔ£¬Ò²¿ÉÒÔ¼õÉÙÊý¾Ý¿â·þÎñÆ÷ÏìÓ¦ÇëÇóµÄ¹¤×÷ ......

ÂÛASP.NETÉè¼ÆÖеÄÐÔÄÜÓÅ»¯ÎÊÌâ

¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯  
   
  Ò»¡¢                           SqlDataReadºÍDatasetµÄÑ¡Ôñ  
   
  SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......

ASP.netµ¯³öÏûÏ¢¶Ô»°¿òµÄ·½·¨

ÎÒÃÇÔÚASP.NET³ÌÐòµÄ¿ª·¢¹ý³ÌÖУ¬³£³£ÐèÒªÏòÓû§¸ø³öÌáʾÐÅÏ¢£¬±ÈÈçÊÇ·ñ“²Ù×÷³É¹¦”£¬“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷¡£
   
    (1) µã»÷Ò³ÃæÉϵİ´Å¥£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷£¬ÎÒÃDzÉÓÃÔÚ°´Å¥ÖÐÌí¼ÓÊôÐÔÀ´Íê³É£º
......

javaScript¼òµ¥µÄ±í¸ñ±ß¿òÉÁ˸Ч¹û¡£

òËÆCSDNÀïµÄ¶¼ÊÇרҵÈËÊ¿£¬¸ßÊÖ¿ÉÒÔÂÓ¹ýÁË£¬ºÇºÇ¡£
Ò»ÏÂÊÇÔ´Â룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ