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

ʹÓÃASP.NETÖеÄÓû§¿Ø¼þ

Óû§¿Ø¼þÊÇASP.NETÖкÜÖØÒªµÄÒ»²¿·Ö£¬Ê¹ÓÃËü¿ÉÒÔÌá¸ß³ÌÐò´úÂëµÄÖØÓÃÐÔ£¬¼´Ò»¸öÓû§¿Ø¼þÔÚÍøÒ³¡¢Óû§¿Ø¼þ»ò¿Ø¼þµÄÄÚ²¿¶¼¿ÉÒÔÔÙ´ÎʹÓᣱ¾ÊµÀý½éÉÜÓû§µÇ¼µÄÓû§¿Ø¼þÒ²¿ÉÒÔÔÚÍøÕ¾µÄÈκεط½ÔÙ´ÎʹÓá£
¼¼ÊõÒªµã
±¾ÊµÀý½éÉÜÈçºÎÔÚASP.NETÖд´½¨Óû§¿Ø¼þ¡¢ÈçºÎʹÓÃÓû§¿Ø¼þ£¬ÒÔ¼°ÈçºÎÔÚÓû§¿Ø¼þÖж¨Ò幫¿ªÊôÐÔµÄʵÏÖ·½·¨¡£
¸úÎÒ×ö
1£®´´½¨ÐÂASP.NETÓ¦ÓóÌÐò
ÔÚVisual Studio .NET 2003¼¯³É¿ª·¢»·¾³Öд´½¨ÐµÄASP.NET WebÓ¦ÓóÌÐò£¬ÃüÃûΪExample_12_4¡£
2£®´´½¨Óû§µÇ¼Óû§¿Ø¼þMyUserControl.ascx
ÔÚÓ¦ÓóÌÐòExample_12_4ÖÐÌí¼Ó1¸öÓû§¿Ø¼þ£¬ËüµÄÃû³ÆΪMyUserControl.ascx£¬²¢ÔÚÓû§¿Ø¼þÉÏÌí¼Ó2¸öTextBox¿Ø¼þºÍ2¸öButton¿Ø¼þ£¬ËüÃǵÄÃû³Æ·Ö±ðΪtUserName¡¢tPassword¡¢UserLoginBtnºÍCancelBtn¡£
¿Ø¼þtUserNameºÍtPassword·Ö±ðÓÃÀ´ÊäÈëÓû§Ãû³ÆºÍÓû§ÃÜÂ룻¿Ø¼þUserLoginBtnºÍCancelBtnʵÏÖÓû§µÇ¼¹¦ÄܺÍÈ¡ÏûµÇ¼¹¦ÄÜ¡£Óû§µÇ¼Óû§¿Ø¼þMyUserControl.ascxµÄÉè¼Æ½çÃæÈçͼ12-9Ëùʾ¡£
ͼ12-9  Óû§¿Ø¼þMyUserControl.ascxµÄÉè¼Æ½çÃæ
Óû§¿Ø¼þMyUserControl.ascxµÄHTMLÉè¼Æ´úÂëÈçÏ£º
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="MyUserControl.ascx.cs" Inherits="
Example_12_4.MyUserControl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<td colspan="2">Óû§µÇ¼Óû§¿Ø¼þ£º</td>
<td width="150" align="right">Óû§Ãû³Æ£º</td>
<asp:TextBox id="tUserName" runat="server" width="200"></asp:TextBox>
<td width="150" align="right">Óû§ÃÜÂ룺</td>
<asp:TextBox id="tPassword" runat="server" width="200"
TextMode="Password"></asp:TextBox>
<asp:Button id="UserLoginBtn" runat="server" Text="È·  ¶¨"></asp:Button>
<asp:Button id="CancelBtn" runat="server" Text="È¡  Ïû"></asp:Button>
3£®ÉèÖÃÓû§µÇ¼Óû§¿Ø¼þMyUserControl.ascxµÄʼþºÍº¯Êý
ÔÚÓ¦ÓóÌÐòExample_12_4ÖÐÌí¼ÓÓû§¿Ø¼þµÄÊôÐÔUserNameºÍPassword£¬·Ö±ð±íʾÓû§¿Ø¼þÖпؼþUserNameºÍ¿Ø¼þPasswordµÄÊôÐÔTextµÄÖµ¡£ÊôÐÔUserNameºÍÊôÐÔPasswordµÄ³ÌÐò´úÂëÈçÏ£º
//Ìí¼ÓÊôÐÔUserName
public String UserName
{
get{return(tUserName.Text);}       &n


Ïà¹ØÎĵµ£º

¿ª·¢asp.net×Ô¶¨Òå¿Ø¼þ

 Ñ§Ï°×Ô¶¨Òå¿Ø¼þµÄ¿ª·¢²»½ö¿ÉÒÔʹÄ㿪·¢³ö¸üÁé»îµÄϵͳ¸üÖØÒªµÄÊÇËü¿ÉÒÔʹÄã¼ÓÉî¶ÔÒÑÓзþÎñÆ÷¿Ø¼þµÄÀí½â£¬µÃÒÔ¸üÁé»îµÄÓ¦Óá£
½ÏÖ®ÓÚasp£¬asp.netÌṩÁ˸üÇ¿´óµÄ¹¦ÄÜ£¬ÎұȽÏϲ»¶ËüµÄ´úÂë·ÖÀë¼¼ÊõºÍ¶ÔÖîÈçC#¡¢VB.NetµÈÇ¿ÀàÐÍÓïÑÔµÄʹÓã¬ÕâÊÇ´Ó¿ª·¢ÕߵĽǶÈÀ´¿´µÄ£¬´ÓÓû§µÄ½Ç¶ÈÀ´¿´£¬»á¾õµÃËüËٶȸü¿ì£¬ÔËÐиüÎȶ¨£¬ ......

asp.net ѧϰ×ÊÔ´

 asp.net ѧϰ×ÊÔ´
¹ØÓÚ´ËÖ÷Ìâ½öÓÐ 1 ¸öÌû×Ó - Ê÷ʽä¯ÀÀ
 astin...@gmail.com
 9ÔÂ26ÈÕ ÉÏÎç12ʱ41·Ö   ÏÔʾѡÏî
·¢¼þÈË£º astin...@gmail.com - ²éÕÒ´Ë×÷ÕßµÄÌû×Ó
ÈÕÆÚ£ºSun, 25 Sep 2005 09:41:54 -0700
µ±µØʱ¼ä£º2005Äê9ÔÂ26ÈÕ(ÐÇÆÚÒ») ÉÏÎç12ʱ41·Ö
Ö÷Ì⣺asp.net ѧϰ×ÊÔ´
´ð¸´×÷Õ ......

asp.net ÐÔÄÜ

 http://blog.csdn.net/chengking/archive/2005/10/27/518079.aspx
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
    ÔÚWebconfigÎļþÅäÖÃ:
    <sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
         sqlConnectionString ......

asp.net¿çҳͶµÝ

 1.TextBox txt=(TextBox)PreviousPage.FindControl("TextBox1");
2.ÔÚÒ³Ãæ×¢²áͶµÝÒ³µÄÊôÐÔ
 <%@ PreviousPageType VirtualPath="crouspostPage.aspx" %>
ÔÚcrouspostPage.aspxµÄ´úÂëÒþ²ØÀàÖÐÌí¼Ó
public TextBox TextBox1
{
 get(return _textbox);
}
ÔÚÒ³ÃæÖÐResponse.Write(PreviousPage. ......

asp.net´íÎó´¦Àí

 ³öÏÖ´íÎó·¢ËÍEmail
¿ÉÒÔÔÚGlobal.asaxµÄvoid Application_Error(Object sender,EventArgs e)
{
 //Óõ½ÁËSsytem.Net.Mail
 MailMessage mail=new MailMessage();
 mail.from=new MailAddress("automated@contoso.com");
 mail.Subject="SIte Error at" +DateTime.Now;
 mail.Body="E ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ