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

ASP.NET¶¯Ì¬¼ÓÔØÓû§¿Ø¼þµÄÒ³ÃæÉú³É¹ý³Ì

  MainPageÎļþ£ºWebForm1.aspx
    <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="TestMasterPage.WebForm1" enableViewState="False"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>WebForm1</title>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder></form>
    </body>
    </HTML>
    WebForm1.aspx.cs
    using System;
    using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls;
    namespace TestMasterPage
    {
    /// <summary>
    /// WebForm1 µÄժҪ˵Ã÷¡£
    /// </summary>
    public class WebForm1 : System.Web.UI.Page
    {
    protected System.Web.UI.WebControls.PlaceHolder PlaceHolder1; private void Page_Load(object sender, System.EventArgs e)
    {
    //ÔÚ´Ë´¦·ÅÖÃÓû§´úÂëÒÔ³õʼ»¯Ò³Ãæ
    string controlName = "search.ascx";
    UserControl control = (UserControl)LoadControl("~/skins/default/controls/"+ controlName);
    control.ID = "ID_" + controlName; PlaceHolder1.Controls.Add(control); Response.Write("only trace..");
    }
    Web´°ÌåÉè¼ÆÆ÷Éú³ÉµÄ´úÂëWeb´°ÌåÉè¼ÆÆ÷Éú³ÉµÄ´úÂë
    override protected void OnInit(EventArgs e)


Ïà¹ØÎĵµ£º

Ïê½âVS2010ÖÐASP.NET @PageÖ¸ÁîÊôÐÔ

@PageÖ¸ÁîλÓÚÿ¸öASP.NETÒ³ÃæµÄ¶¥²¿£¬¸æËßASP.NETÕâ¸ö¾ßÌåÒ³ÃæʹÓÃʲôÊôÐÔ£¬ÒÔ¼°¸ÃÒ³Ãæ¼Ì³ÐµÄÓû§¿Ø¼þ¡£ASP.NETÒ³Ãæ
@PageÖ¸ÁîÊôÐÔÓУºAspCompat¡¢Async¡¢AsyncTimeout¡¢AutoEventWireup¡¢Buffer¡¢
ClassName¡¢ClientIDMode¡¢CodeBehind¡¢
CodeFile¡¢CodeFileBaseClass¡¢CodePage¡¢CompilationMode ¡¢ContentType¡¢ ......

ÓÃASP.NET×ö¼òÒ×¼ÆËãÆ÷ºÍ¾Å¾Å³Ë·¨±í

¼òÒ×¼ÆËãÆ÷
 
 
1.ÔÚÒ³ÃæÉÏ·ÅÈëTextBox¿Ø¼þºÍdropdownlist¿Ø¼þÒÔ¼°Button¿Ø¼þ,ÐγÉÏÂͼµÄÍâ¹Û.
 
 
 
 
 
 
 
2.ÔÚ×öºÃÒ³ÃæºóË«»÷Button¿Ø¼þ(¼´"="),дÈëÈçÏ´úÂë:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System ......

AJAX¼¯³ÉÓÚASP.NET

APS.NETÒ¹»°µÄÀý×Ó¼ÓÔغ󱨴íÈçÏ£º
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35´íÎó
Ô­ÒòÊÇδÄܼÓÔØÎļþ»ò³ÌÐò¼¯ system.web.extensions
½â¾ö°ì·¨:
1,Èç¹ûÄãµÄ³ÌÐòÔËÐÐÔÚÄãÄÜ¿ØÖƵķþÎñÆ÷ÉÏ£¬ÄÇô°²×°asp.net ajax¾ÍÐÐÁË£¬ÕâÊÇSystem.Web.ExtensionsµÈdll×öΪGAC² ......

ASP.NET²Ù×÷web.config

      ASP.NET¿ÉÒÔÀûÓÃWebConfigurationManagerºÍÖ±½ÓÀûÓÃXML·½Ê½²Ù×÷web.config,WebConfigurationManager±È½Ï¼òµ¥£¬µ«ÊÇÇå³ý×¢ÊÍ´úÂë¡£Á½Õß²Ù×÷·½Ê½¶¼ÐèÒªÓÐдȨÏÞ¡£
      ·½·¨Ò»£¬ÀûÓÃWebConfigurationManager£¬ÐèÒªÒýÓÃSystem.Web.Configuration.WebConfigurationM ......

asp.net ½Ó¿ÚµÄ×÷ÓÃ


¼Ì³Ð"»ùÀà"¸ú¼Ì³Ð"½Ó¿Ú"¶¼ÄÜʵÏÖijЩÏàͬµÄ¹¦ÄÜ£¬µ«ÓÐЩ½Ó¿ÚÄܹ»Íê³ÉµÄ¹¦ÄÜÊÇÖ»ÓûùÀàÎÞ·¨ÊµÏÖµÄ
1.½Ó¿ÚÓÃÓÚÃèÊöÒ»×éÀàµÄ¹«¹²·½·¨/¹«¹²ÊôÐÔ. Ëü²»ÊµÏÖÈκεķ½·¨»òÊôÐÔ£¬Ö»ÊǸæË߼̳ÐËüµÄÀà
¡¶ÖÁÉÙ¡·ÒªÊµÏÖÄÄЩ¹¦ÄÜ,¼Ì³ÐËüµÄÀà¿ÉÒÔÔö¼Ó×Ô¼ºµÄ·½·¨. 
2.ʹÓýӿڿÉÒÔʹ¼Ì³ÐËüµÄÀà: ÃüÃûͳһ/¹æ·¶,Ò×ÓÚά»¤.±ÈÈç: Á½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ