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

ASP.NET¿ª·¢£ºÔÚÓû§¿Ø¼þÖÐÌí¼Óʼþ

 ÔÚ¡¶ASP.NET¿ª·¢£ºÔÚÓû§¿Ø¼þÖÐÌí¼ÓÊôÐÔ¡·ÕâһƪÎÄÕÂÖÐÎÒÃǶ¨ÒåÁËÒ»¸öÓû§µÇ¼µÄÓû§¿Ø¼þUserLogin.ascx Îļþ£¬ÀïÃæ°üº¬ÁËÒ»¸öLinkButton·þÎñÆ÷°´Å¥¿Ø¼þ£¬µ±Óû§µ¥»÷¸Ã°´Å¥Ê±·þÎñÆ÷¶Ë»á×Ô¶¯Éú³ÉÒ»¸ö»Ø·¢À´¼¤·¢Page.Loadʼþ¡£³ýÁË·þÎñÆ÷×Ô¶¯²úÉú»Ø·¢À´¼¤·¢Page.LoadʼþÍ⣬ÎÒÃÇ¿ÉÒÔ¸øLinkButtonÌí¼ÓÒ»¸öËü×Ô¼ºµÄʼþ£¬Ìí¼ÓʼþÆäʵҲºÜ¼òµ¥£¬Í¨¹ýÔÚ<script></script>¿éÖÐÉùÃ÷ʼþ£¬È»ºó°Ñ¸ÃʼþÌí¼Óµ½Óû§¿Ø¼þÖС£
ÎÒÃÇÏÖÔÚͨ¹ýÒÔϵÄÀý×ÓÀ´ËµÃ÷ÈçºÎÔÚUserLogin.ascxÓû§¿Ø¼þÖÐÌí¼Óʼþ¡£UserLogin.ascx
<html>
<title>Óû§µÇ¼</title><body><table>
<tr>
<td>Óû§Ãû£º</td> <td><asp:TextBox ID=”txt1” runat=”server”></td> </tr><tr>
<td>ÃÜ Â룺</td>
<td><asp:TextBox ID=”txt2” TextMode=”password” runat=”server”></td></tr>
<hr>
<tr>
<td></td>
<td><asp:LinkButton Text=”µÇ½” OnClick=”MyOnClick” runat=”server”></td>
</tr></table>
</body>
</html>
<mce:script language=”C#” runat=”server”><!--
public string UserName{
get{return txt1.Text;}
set{txt1.Text=value;}
}
public string PassWord{
get{return txt2.Text;} set{txt2.Text=value;}
}
public event Eventhandler Login; //Ìí¼Óʼþ¾ä±ú
void MyOnClick(Object Sender,EventArgs e){
if(Login != null)
Login(this,new EventArgs()); //¼¤»îLoginʼþ
}
// --></mce:script>
 
 
ÔÚASPXÒ³ÃæÖÐʹÓÃ×Ô¶¨Òåʼþ
<%@Register TagPrefix=”wen” TagName=”UserEvent” src=” UserLogin.ascx”%>
<html>
<body>
<form runat=server>
<wen:UserEvent ID=”MyLogin” OnLogin=”OnLoginPress” runat=”server”> </form>
<asp:Label ID=”Lab1” runat=”server”/><br> <asp:Label ID=”Lab2&rd


Ïà¹ØÎĵµ£º

ASP.NET


      Êý¾ÝÔ´¿Ø¼þÌṩ¶àÖÖÊý¾Ý·þÎñ£¬ÕâÑù½«¸ß¼¶¹¦ÄÜÌí¼Óµ½Ó¦ÓóÌÐò»á±äµÃ¸ü¼ÓÈÝÒס£Õâ°üÀ¨¸ù¾ÝÖ¸¶¨µÄËÑË÷Ìõ¼þɸѡÊý¾Ý¡£É¸Ñ¡¶ÔÓÚʹÓûº´æÊý¾ÝÓÈÆä·½±ã£¬ÒòΪÄúÎÞÐèÖØÐÂÔËÐвéѯ»òµ÷ÓöÁÈ¡Êý¾ÝµÄ·½·¨¾Í¿ÉÒÔÌṩËÑË÷¹¦ÄÜ¡£
      ÈôҪɸѡÊý¾Ý£¬±ØÐë°´ÏÂÁз½Ê½ÅäÖÃÊý¾Ý ......

ASP.NET MVC1.0_ÖÐÎÄ·¢ÐÐÎĵµ

ASP.NET MVCµÄ1.0·¢ÐÐ˵Ã÷
 
×îÐÂÏûÏ¢
ASP.NET MVCµÄ1.0ÊÇASP.NET MVC¿ò¼ÜµÄµÚÒ»¸öÕýʽ°æ±¾µÄÖ§³Ö¡£ÓëÍù³£Ò»Ñù£¬ËæʱÌṩÓйØASP.NET MVCµÄÂÛ̳·´À¡¡£
×¢Ò⣺ÔÚÔËÐеÄASP.NET MVC 1.0°²×°³ÌÐò£¬Ð¶ÔØÈκÎÔçÆÚÔ¤ASP.NET MVCµÄ·¢Ðа汾¡£´ËÍ⣬¹Ø±ÕVisual Studio 2008µÄËùÓÐʵÀý¡£
Îĵµ
ASP.NET MVCÖеÄÎļþ¿ÉÔÚMSD ......

asp.netÉÏ´«ÎļþС½á

 
£¼input id = " loFile " type = " file " runat = " server " £¾
£¼form method = " post " enctype =" multipart/form-data " runat = " server "£¾
£¼/form £¾
1.»ñµÃÉÏ´«ÎļþµÄÃû³Æ£º£¨¹Ø¼üÊÇPostedFileÀàµÄÓ¦Óã©
ʹÓÃPathÀàÖеÄGetFileName·½·¨£¬¾ßÌåÈçÏ£º
lstrFileName = loFile.PostedFile.FileName ......

ASP.NET URLË«Ïò¸ÄдµÄʵÏÖ

ASP.NET URLË«Ïò¸ÄдµÄʵÏÖ
¡¡¡¡ÎÒÃÇÔÚ½øÐÐWeb³ÌÐò¿ª·¢Ê±£¬ÎªÁ˽øÐÐËÑË÷ÒýÇæÓÅ»¯£¨SEO£©£¬ÍùÍùÐèÒª¶ÔwebµÄ·ÃÎʵØÖ·½øÐÐÓÅ»¯£¬È罫http://localhost/Default.aspx?tab=performanceÐÞ¸ÄΪhttp://localhost/Default_performance.aspx£¬ºóÒ»¸öµØÖ·Äܹ»¸üºÃµØ±»ËÑË÷ÒýÇæËÑË÷µ½£¬´Ó¶ø´ïµ½ÁËËÑË÷ÒýÇæÓÅ»¯µÄÄ¿µÄ¡£Î¢ÈíÓÐÒ»¸ö¿ªÔ´À ......

asp.netÔËÐÐʱ¶¯Ì¬ÐÞ¸ÄÖ÷Ìâ

Õâ¸öÓкܶàÖÖ·½·¨ÎÒÔÚÕâÀïд¼¸¸ö°É
·½Ê½Ò»£º
ÔÚÒ³ÃæµÄPreInitʼþÖÐÖ±½ÓÉèÖ᣸÷½·¨¿ÉʵÏÖ²»Í¬Ò³Ãæ¼ÓÔز»Í¬Ö÷Ì⣬Èç¹ûҪʵÏÖÍøÕ¾ÕûÌå»»·ô£¬Ö»ÐèÒª´´½¨Ò»¸ö´ÓSystem.Web.UI.PageÀàÅÉÉúµÄ×ÓÀ࣬ÔÚ¸ÃÀàµÄPreInitʼþÖмÓÔØÌض¨Ö÷Ì⣬×îºóËùÓÐÒ³Ãæ¼Ì³Ð×Ô´ËÀ༴¿É¡£
protected override void OnPreInit(Event ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ