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

asp.net·ÀÖ¹Öظ´Ìá½»Êý¾Ý

protected void Page_Load(object sender, EventArgs e)
...{
this.btnOK.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(btnOK, "Click") + ";this.disabled=true; this.value='Ìá½»ÖÐ...';");
}
//°´Å¥´¦Àí·½·¨
protected void btnOK_Click(object sender, EventArgs e)
...{
System.Threading.Thread.Sleep(2000);
ClientScript.RegisterStartupScript(GetType(), "btnCommit", "alert('Ìá½»³É¹¦!!!');", true);
}


Ïà¹ØÎĵµ£º

ASP.NET Ò³Ãæ¼äÊý¾Ý´«µÝ¼¼ÇÉ

0¡¢ÒýÑÔ
¡¡¡¡Web Ò³ÃæÊÇÎÞ״̬µÄ£¬ ·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔͬһҳÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌøתʱ²»»á±»±£Áô¡£ÔÚÓÃAsp.NET Éè¼Æ¿ª·¢Ò»¸öWebϵͳʱ£¬ Óöµ½Ò»¸öÖØÒªµÄÎÊÌâÊÇÈçºÎ±£Ö¤Êý¾ÝÔÚÒ³Ãæ¼ä½øÐÐÕýÈ·¡¢°²È«ºÍ¸ßЧµØ´«ËÍ£¬Asp.net ÌṩÁË״̬¹ÜÀíµÈ¶àÖÖ¼¼ÊõÀ´½â¾ö±£´æºÍ´«µÝÊý¾Ý ......

asp.netÒ³ÃæÖÐ »Ø³µ´¥·¢Ìύʼþ£¨×ª£©

1.
Éî²ã´ÎÀ´ËµÕâ²»ÊÇ ASP.NET µÄÎÊÌ⣬ ¶øÊÇ html form µÄ submit °´Å¥¾ÍÊÇÈçºÎÉè¼ÆµÄ¡£
µ±ÄãµÄ¹â±ê½¹µã½øÈëij¸ö±íµ¥ÔªËصÄʱºò£¬»á¼¤»î¸Ã±íµ¥ÖеÚÒ»¸ö£¨Á÷²¼¾Ö˳´Ó×óµ½ÓÒ£¬´ÓÉÏÖÁÏ£© type=submit µÄ°´Å¥£¨¼ÙÈçÓУ©£¬µÈ´ýÏìÓ¦»Ø³µÊ¼þ£¬²¢Ìá½»¸Ãform
Äã¿ÉÒÔ²âÊÔһϴúÂ룺
<form action="">
<input typ ......

Asp.Net·ÖÒ³´úÂë

·ÖÒ³ÊÇ×î³£ÓõŦÄÜÖ®Ò»£¬Õâ¶Î·ÖÒ³´úÂëÊʺϳõѧÕß¡£
ÒÔÐÂÎÅ·ÖҳΪÀý£¬´úÂë¹²°üº¬Èý¸ö²¿·Ö£ºÒ»ÊÇ·ÖÒ³Ò³ÂëÏÔʾ£¬¶þÊÇÏÔʾµ±Ç°Ò³µÄÐÂÎÅ£¬ÈýÊǺǫ́´úÂë¡£
Ò»¡¢Ò³ÂëÏÔʾ
¡¡¡¡1.ÔÚºǫ́¶¨ÒåÒ»¸ö±äÁ¿£ºprotected string PageInfo = "";
¡¡¡¡2.Ö´ÐзÖÒ³£¬¸³ÖµºóÔÚǰ̨Êä³ö£º<%=PageInfo%>
¶þ¡¢ÏÔʾµ±Ç°Ò³µÄÐÂÎÅ
¡¡¡¡Ê¹Óà ......

[ת]asp.net get setÓ÷¨

     ÔÚÔçÆÚѧϰc#µÄ¹ý³ÌÖУ¬¾­³£Óöµ½ÕâÑùµÄÓï¾ä£º
public string StudentName
{
get{return stuName;}
set{stuName=value;}
}
  
      µ±Ê±Ò²²»ÊǺÜÃ÷°×ΪʲôҪÕâÑù£¿Ñ§ÉîÁËc#ºó£ ......

ASP.NET URL Ó³Éä

ÔÚWeb.configÎļþµÄ <system.web></system.web>ÕâÁ½¸ö½ÚµãÖмä²åÈëÐèÒªÓ³ÉäµÄURL
 <urlMappings enabled="true">
      <add url="~/Óû§Òª·ÃÎʵÄÒ³Ãæ.aspx" mappedUrl="~/ÒªÖض¨Ïòµ½µÄÒ³Ãæ.aspx"/>
 </urlMappings> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ