ASP.NET¿Í»§¶Ë×¢²á½Å±¾»ã×Ü
µÚÒ»:
Response.Write(<script></script>);
µÚ¶þ:
ÍÐÒ»¸öLiteral¿Ø¼þ
Literal(¿Ø¼þÃû).Text="<script></script>";
µÚÈý:
Page.RegisterClientScriptBlock(key,script); //´Î·½·¨ÒÔ¹ýÆÚ,²»½¨ÒéʹÓÃ
ʾÀý
Page.RegisterClientScriptBlock("myScript", "<script></script>");
µÚËÄ:
Page.ClientScript.RegisterClientScriptBlock(type,key,script);
Page.ClientScript.RegisterClientScriptBlock(type,key,script,addScriptTags);
ʾÀý
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"myScript","<script></script>",true);
µÚÎå:
Page.RegisterStartupScript(type,script);
ʾÀý
Page.RegisterStartupScript(this.GetType(),"<script></script>";
Ïà¹ØÎĵµ£º
ÔÎÄ£ºÁõÎä|ÈçºÎÔÚASP.NETÒ³ÃæÖÐǶÈëWINFORM¿Ø¼þ¶þ
ÉÏһƪ½éÉÜÁËÔÚASP.NETÒ³ÃæÖÐǶÈëWINFORM¿Ø¼þµÄ»ù±¾·½·¨£¬±¾Æª»á¾Ù¸öÉÔ΢¸´ÔÓµÄÀý×ÓÀ´ËµÃ÷ÈçºÎÔÚÒ³ÃæÖе÷ÓÃWINFORM¿Ø¼þµÄÊôÐԺͷ½·¨¡£
Ò» н¨ÏîÄ¿ Liuw.Net.WindowsControlLibrary£¬²¢Ìí¼ÓWINDOWSÓû§¿Ø¼þ MyControl1
¶þ ¸ø¿Ø¼þ MyControl1 Ìí¼ÓÊôÐԺͷ½·¨£º
C#-Co ......
³õ¼¶µÄ³ÌÐòÔ±»ò¾Ñé²»×ãµÄ³ÌÐòÔ±ÍùÍùÖ»Òâʶµ½×Ô¼ºµÄ³ÌÐòÊÇд¸ø¼ÆËã»úµÄ£¬¶ø²»»áÔÚÒâ³ÌÐòÆäʵҲÊÇд¸øÈ˵ģ¬»òÔÚÒâµÃ²»¹»¡¢²»È«Ãæ¡£
д¸ø»úÆ÷µÄ³ÌÐò£¬ÍùÍù×·ÇóµÄÊÇÔËÐÐÕýÈ·¡¢Ö´ÐÐЧÂÊÄÜÂú×ãÒªÇó¡£µ«³ÌÐòÔ±µÄÈÎÎñ½ö½ö¾ÍÊÇ°ÑÒµÎñÂ߼ת³É»úÆ÷ÄܱàÒëµÄ¼ÆËã»úÓïÑÔÂð?
Æäʵ£¬³ÌÐòÊ×ÏÈ(×¢Ò⣬ÊÇÊ×ÏÈ)ÊÇд¸øÈ˵ġ£µÚÒ»£¬³ÌÐòÊÇд¸ ......
ÓÉÓÚÏîÄ¿ÖжദÐèÒª¶ÔÅäÖÃÎļþ½øÐвÙ×÷£¬ÈçÅäÖÃÐÅÏ¢µÄ¶ÁÈ¡¡¢¸ü¸ÄºÍдÈ룬ÐèÒªÒ»¸öͨÓõÄÀàÀ´¶ÔÆä½øÐвÙ×÷ºÍ´¦Àí¡£Õâ´ÎµÄÈÎÎñ¾ÍÊÇÅäÖýڵÄһЩÓ÷¨¡£
Õâ´ÎÉý¼¶ºóµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚVS2005µÄ£¬·ÖÎöÁËVS2005 ÐÂÔöµÄһЩ¹¦ÄÜ£¬Ëü×Ô´øÁËÒ»Ì×ÅäÖÃÎļþÖнáµãµÈµÄÅäÖá£Ä¿Ç°µÄÏîÄ¿ÓõÄÅä ......
Respose.Write("<script language='javascript'>window.open('"+ url +"');</script>");
£¨´ò¿ª¼ò½à´°¿Ú£©£º
Respose.Write("<script language='javascript'>window.open('" &nbs ......