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

ASP.NET¿çÒ³ÃæµÄ¿Ø¼þµ÷ÓÃ

ASP.NET3.5¿ÉÒԺܼò´ðµÄʵÏÖÒ»¸öºÜÓÐÓõŦÄÜ£¬¼È¿çÒ³Ãæ´«ËÍ£¬
´«Í³µÄÌá½»´°ÌåÖ»»á½«´°ÌåÌá½»¸øËü×Ô¼º¡£¶ø¿çÒ³ÃæµÄÌá½»£¬
»á½«page1µÄÄÚÈÝ´«Ë͸öpage2£¬²¢ÔÚpage2ÖÐʹÓÃpage1ÖеĿؼþ¡£
¢Ù ¿çÒ³Ãæ´«µÝµÄ¼òµ¥ÊµÏÖ
    Ò³ÃæÒ»£¨Default.aspx£©ÖеĿؼþ
        <asp:TextBox ID="txtPageDefault" runat="server"></asp:TextBox>
        <asp:Button ID="btnToPostBackPage" runat="server" Text="¿ç´°ÌåÌá½»"
            PostBackUrl="~/PostBackPage.aspx" style="height: 21px" /> 
     Ò³ÃæÒ»µÄºǫ́´úÂëÊDz»ÐèÒªµÄ£¬Ö»ÒªPostBackUrl="~/PostBackPage.aspx"ÕâÑù×¢Ã÷ÒªÌá½»µÄÄ¿±êÒ³Ãæ¾Í¿ÉÒÔÁË
    Ò³Ãæ¶þ£¨PostBackPage.aspx£©Ç°Ì¨¿Ø¼þ
        <asp:TextBox ID="txtPagePostBack" runat="server"></asp:TextBox>
     Ò³Ãæ¶þºǫ́´úÂë
        TextBox box = (TextBox)PreviousPage.FindControl("txtPageDefault");
        txtPagePostBack.Text = "ǰ´°ÌåÄÚÈÝ£º" + box.Text;
     ÓÉ´Ë¿ÉÒÔ¿´µ½£¬Êµ¼ÊÉÏÖ»Òª¶ÔÌá½»°´Å¥µÄPostBackUrlÊôÐÔ½øÐÐÉèÖ㬾ͿÉÒÔÔÚÄ¿±êÒ³ÃæºÜÈÝÒ׵ķÃÎʵ½±»Ìá½»µÄÇ°Ò»Ò³ÃæµÄ¿Õ¼äÄÚÈÝ
¢Ú Ö±½Óͨ¹ýÊôÐÔÀ´·ÃÎÊÇ°Ò³ÃæµÄ¿Ø¼þ
    ±àÒëÆ÷»á½«Ò³ÃæÖеĿؼþ±àÒëÎªÒ³ÃæÀàÖ®Íâ²»¿É·ÃÎʵÄÀàÐÍ£¬ËùÒÔΪÁËʹÓÃPreviousPageÀàÖ±½Ó·ÃÎÊÇ°Ò³ÃæµÄÄÚÈÝÎÒÃÇÐèÒªÓÃÉèÖÃÊôÐԵķ½Ê½£¬½«ÎÒÃÇÐèÒª·ÃÎʵĿؼþ¹«¿ª
¾ÍÉÏÒ»¸öÀà×ÓÀ´¿´£¬Ê×ÏÈÎÒÃÇÐèÒªÏòDefaultÒ³ÃæµÄºǫ́Ìï¼ä´úÂ룬
±íÃ÷ÊôÐÔDefaultText À´·µ»Øµ±Ç°Ò³ÃæµÄTextBox¿Ø¼þ
public partial class _Default : System.Web.UI.Page
{
    public TextBox DefaultText
    {
        //¶¨ÒåΪֻ¶Á
        get { return txtPageDefault; }
    }
    protected void Page_Load(object sender, EventArgs e)
   


Ïà¹ØÎĵµ£º

ASP.NET²É¼¯ÏµÍ³ÍòÄÜÕýÔò±í´ïʽ

ÓÉÓÚ¾­³£ÒªÐ´Ò»Ð©²É¼¯µÄ³ÌÐò£¬ÏÂÃæµÄÈý¸öº¯ÊýÊDzɼ¯Öеĺܳ£Óõĺ¯Êý¡£¹ÃÇҽвɼ¯ÏµÍ³ÍòÄÜÕýÔò±í´ïʽ°É¡£
µÚÒ»¸ö£º//»ñÈ¡Ò³ÃæµÄhtmlÔ´Âë
 public  string GetHtmlSource(string Url, string charset)
        {
    & ......

ASP.NETÖн«Êý¾ÝÊä³öµ½Excel

ÔÚ¿ª·¢ISOÎļþ¹ÜÀíϵͳµÄʱºò£¬Ôø¾­Óöµ½¹ýÒª½«ASPXÖ±½ÓÊä³öµ½EXCELµÄÐèÇó£¬ÏÖ½«¾­ÑéËùµÃÓë´ó¼Ò·ÖÏí¡£ Æäʵ£¬ÀûÓÃASP.NETÊä³öÖ¸¶¨ÄÚÈݵÄWORD¡¢EXCEL¡¢TXT¡¢HTMµÈÀàÐ͵ÄÎĵµºÜÈÝÒ׵ġ£Ö÷Òª·ÖΪÈý²½À´Íê³É¡£
¡¡¡¡Ò»¡¢¶¨ÒåÎĵµÀàÐÍ¡¢×Ö·û±àÂë
Response.Clear(); 
Response.Buffer= true; 
Response ......

asp.net¼¼ÇÉ¡£¡£¡£

1.Asp.NetÖм¸ÖÖÏàËÆµÄ±ê¼Ç·ûºÅ: <%=...%> <%#... %> <% %> <%@ %> ½âÊͼ°Ó÷¨
   ´ð:  <%#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
          Èç: <%# Container.DataItem("tit") %>
 &n ......

asp.net DropDownList ÏîÄ¿¶¯Ì¬Ìí¼Ó


Dotjum 這邊Òª½é紹Ò²ÊÇÒ»個ºÜ經µäµÄ ASP.NET ÀÏ問題£¬¾ÍÊÇÔõ麼ÒªÔÚÏÂÀ­選項ÖУ¬Ò»開ʼ DataBind() 資ÁÏ繫結時£¬
¾ÍÏȳö現預設選項 請選擇£¬Æä實×ö這個· ......

Asp.NetÖÐgridviewÖÐǶÈëµÄcheckboxʹÓÃ

<asp:checkbox id = "checkbox1" runat = "server" AutoPostBack = "true" OnCheckedChanged = "CheckAllBox_Checked" text = "ȫѡ">
<asp:CheckBox  ID = "CheckBox1" AutoPostBack = "true" OnCheckedChanged = "CheckBox1_Checked" runat = "server"/>
 protected void CheckBox1_Checked(obj ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ