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

asp.netÖÐʹÓÃjavascriptµÄ·½·¨¼°Çø±ð

1.ʹÓà ʹÓÃResponse.Write£¬ÕâÖÖ·½·¨»á°ÑJS´úÂëдÔÚÒ³ÃæµÄ×²¿(µÄÇ°Ãæ)£º
2. ʹÓ㺠page.ClientScript.RegisterStartupScript£¨£©£» ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄµ×²¿¡¢±íµ¥µÄ×îºó (Ç°Ãæ)£¬ÊÊÓÃÓÚÒªÔÚÒ³Ãæ¿Ø¼þ¼ÓÔØÍê³ÉºóÔËÐеÄJS´úÂë
3.ʹÓÃRegisterClientScriptBlock£¨£©£»ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄ¶¥²¿¡¢±íµ¥µÄ×îÇ° (
ºóÃæ)£¬ÊÊÓÃÓÚÒªÔڿؼþ¼ÓÔØÇ°Ö´ÐеÄJS´úÂ룬ÀàËÆÓÚÉÏÃæµÄResponse.Write·½Ê½ £º
ÁíÍâÎÒÃDz»±Ø°ÑËùÓеÄjavascript´úÂ붼дµ½ ÉÏÃæµÄÁ½¸ö·½·¨µÄ²ÎÊýÄÚ£¬¿ÉÒÔʹÓà javascript£ºmyfunction£¨£© ÕâÑùµÄ·½Ê½ ÒýÓÃÎÒÃÇÒѾ­Ð´ºÃµÄ javascriptº¯Êý£¬ÕâÑù´úÂë¾ÍºÜÇåÎúÁË¡£ ÀýÈ磺
protected void Button1_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "javascript:alerts()",true);
}
protected void Button2_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "a", "javascript:confirms()", true);
}



Ïà¹ØÎĵµ£º

One Javascript Demo


<div id="a1" style=" position:absolute; z-index:2;"></div>
      <table width="200" border="0" cellpadding="0" cellspacing="0">
    <tr>
     <td><img src="°×Ñò.jpg" alt="hi.baidu.com/liwya" onmousemove ......

12ÖÖJavascript½â¾ö³£¼ûä¯ÀÀÆ÷¼æÈÝÎÊÌâµÄ·½·¨


    ÎÒÃÇÌᳫ¾¡¿ÉÄÜʹÓÃCSS£¬¶øÇÒÎÒÃdz£³£ÄÜ×öµ½ÕâÒ»µã¡£ÏÖ´úä¯ÀÀÆ÷ÓкܺõÄCSSÖ§³Ö-ÕâÎÞÒÉ×ã¹»ºÃÈÃÄãʹÓÃCSSÀ´¿ØÖƲ¼¾ÖºÍ°æÃæÉè¼Æ¡£µ«ÊÇÓÐʱºò£¬Ä³Ð©ÍøÒ³ÔªËØÔÚ²»Í¬µÄä¯ÀÀÆ÷»á³öÏÖ²»Í¬¡£
    Èç¹ûÄã²»ÖªµÀÔ­Òò£¬²»Òª¹ýÓÚµ£ÐÄ£¬ÇëÑо¿CSS¹æÔò²¢²é¿´ÕâƪÎÄÕÂ:ʹÓÃCSSÀ´ÐÞÕýÒ»ÇÐ: 20 +³£¼û´ ......

javascript °Ñ×Ö·ûת»»Îªjson2


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional ......

asp.net·¾¶µÄ»ù±¾Ê¹ÓÃ

asp.net·¾¶µÄ»ù±¾Ê¹ÓÃ
À´Ô´£ºhttp://mqingqing123.cnblogs.com/archive/2006/04/14/375338.html
URL·¾¶ÆäʵºÜ¼òµ¥£¬²»¹ýÔÚASP.NET2.0ÀïÒ²Éè¼Æµ½£¬ËùÒÔÌìÌìÔÚÕâÀïÂÞàÂһϣ¬°Ñ·¾¶µÄʹÓüòµ¥¸ÅÀ¨Ò»Ï£º
 ÔÚʹÓÃCSSÑùʽʱ£¬Éè¼Æµ½¶Ô·¾¶µÄÒýÓã¬ÕâÀïÒÔ<a></a>ΪÀý£¬ËµÃ÷·¾¶µÄ³£¹æ´¦Àí¡£
Ò»°ã¶øÑÔ£¬Á´ ......

IIS URL Rewriting ºÍ ASP.NET routing£¨Ï£©

ÔÚIIS URL Rewriting ºÍ ASP.NET routing£¨ÉÏ£©ÖУ¬ÎÒÃÇÕë¶ÔIIS URL Rewriting ºÍ ASP.NET routingµÄÀíÄîºÍ¹¦ÄÜ·Ö±ð½øÐзÖÎö²¢½øÐжԱȣ¬ÔÚÇå³þÁËÕâЩ»ù±¾Ô­ÀíºÍÒì֮ͬºó£¬ÎÒÃǸÃÈçºÎÔÚÓ¦ÓÃÖÐÌôÑ¡ºÏÊʵÄURLÓÅ»¯·½°¸ÄØ£¿ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«¶Ô´Ë½øÐÐ̽ÌÖ·ÖÎö£¬²¢Àý¾Ù¼¸ÖÖÁ½ÕßЭͬӦÓõݸÀý¡£
±¾ÎÄ·­Òë×ÔIIS¹Ù·½ÍøÕ¾£¬Õë¶Ô¹úÄÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ