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

Çë½ÌajaxʵÏÖµ¯³ö´°ÌåµÄÓ÷¨ - Web ¿ª·¢ / Ajax

°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó

protected void Button1_Click(object sender, EventArgs e)
  {
  ScriptManager.RegisterStartupScript(this.UpdatePanel1, Page.GetType(), "", "openDialog('DictionaryTvAdd.aspx');", true);
  }

Çë¸ßÊÖÖ¸µã£¬×îºÃÓн«×Ó´°ÌåÊý¾Ý·µ»Ø¸ø¸¸´°ÌåµÄÀý×Ó¡£Ð»Ð»£¡

Õâ¸öÓÃjsÍêÈ«¿ÉÒÔʵÏÖ

Â¥ÉϵÄÀý×ӾͲ»´í



ÿÌì»ØÌû¼´¿É»ñµÃ10·Ö¿ÉÓ÷֣¡

ÒýÓÃ
Äã¿ÉÒÔµ÷ÊÔÏ¿´ÏÂȱÉÙʲô¶ÔÏó,ÊDz»ÊǰѱðÈË´úÂëcopy¹ýÀ´Íü¼Ç¸Ä±äÁ¿ÃûʲôµÄ

ÏÂÃæÊǸö¼òµ¥µÄÀý×Ó

¸¸´°

HTML code<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>ÎÞ±êÌâÒ³</title><scriptlanguage="javascript">function openwin()
{var url="b.html";//´ò¿ªÄ£Ê½´°¿Ú£¬×¢Òâģʽ´°¿ÚµÄÑùʽvar mydata=showModalDialog(url,null,"dialogWidth:300px;dialogHeight:120px;center:yes;help:No;status:Yes;resizable:Yes;edge:sunken");if(mydata)
alert("ÄúÊäÈëµÄֵΪ£º"+mydata.value);
}</script></head><body><inputid="Button1" type="button" value="´ò¿ª´°¿Ú" onclick="openwin()"/></body></html>


×Ó´°
b.html

HTML code<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>±êÌ


Ïà¹ØÎÊ´ð£º

ΪʲôҳÃæÒ»¼ÓÉÏAjax¾Í³ö´í

²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......

ajaxµÄAsyncPostBackTriggerûЧ¹û

            <div id="div6" runat="server" style= "height:auto;width:auto; text-align: left;">
          & ......

´ó¼Ò¿´¿´ÎҵĴúÂëÓÐʲôÎÊÌ⣨¹ØÓÚajaxµÄ£©

ÔÚ¼ÒÑо¿ajax£¬¿´Á˱ðÈ˵ÄÒ»¸öÍøÉϹºÎïÉ̳ÇÏîÄ¿µÄÔ´´úÂ룬×Ô¼ºÒ²À´·Â±ðÈ˵Ķ«Î÷Á·Ï°Á·Ï°£¬Ã»Ïë³öÎÊÌâÁË£¡Ò»ÏµÄÕâЩ´úÂëÊÇÎÒ·ÂÕÕ±ðÈËдµÄ¡£ÎÒÊÇÏëÈÃ×¢²áµÄÈËÌîдÓû§Ãû£¬¹â±êÀ뿪Óû§ÃûºóÃæµÄÌîд¿Õ°×´¦ºóÁ¢¿ÌÀûÓÃaj ......

AjaxÓëSessionµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

֮ǰÓöµ½Ò»¸öÎÊÌâ¡£
ÓÚÊÇ×öÁËÒÔÏÂʵÑ飺
Ò³Ãæ¼ÓÔغó£¬Ìá½»Ò»¸öAjaxÇëÇó(ÔݳÆΪajax1)£¬ÇëÇóµÄÏß³ÌÔÚ·þÎñÆ÷Éϱ»Ë¯Ãß10ÃëÖÓ¡£
µã»÷Ò³ÃæÉÏÒ»¸öbutton£¬´¥·¢ÁíÒ»¸öAjaxÇëÇó(ajax2)¡£
µ±Ã»ÓÐʹÓÃsession£¬ÔÚ·þÎñÆ÷δ´ ......

ajaxµÄÒì²½ÎÊÌâ

Çë½ÌÒ»¸öÎÊÌâ
ÔÚÖ÷Ò³Ãæ(Ö÷¿ò¼ÜÒ³)Main.aspxÓÐÒ»¸ö·½·¨
check_SysState =0;
function checkSysConfig()
    {
       
      fnCheckFolder();//¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ