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

¡¾asp.net¡¿´úÂëÖмâÀ¨ºÅºÍ°Ù·ÖºÅµÄº¬Òå

1¡¢<%=%> ÀïÃæ·ÅµÄ±äÁ¿Ãû£¬È磺
<div>
<h1>Hello World</h1>
<p>Welcome to Beginning ASP.NET 3.5 on <%=
DateTime.Now.ToString() %></p>
</div>
Êä³ö½á¹ûΪ£º
Hello World
Welcome to Beginning ASP.NET 3.5 on 2009-11-10 15:53:08
2¡¢ <%#%> ÕâÀïÊÇÊý¾ÝµÄ°ó¶¨
È磺<%# DataBinder.Eval(Container.DataItem, "ClassName") %>
ÍêÕû´úÂ룺                          <asp:DataList ID="ClassList" runat="server">
                                        <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "ClassName") %>
                                        </ItemTemplate>
                                        </asp:DataList></td>
3¡¢<%@ %> ±íʾ£ºÒýÓÃ
ÈçÔںܶà.aspxÒ³ÃæÖУ¬¶¼¿ÉÒÔ¿´µ½ÈçϵĴúÂ룺
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
4¡¢<%%>ÖмäÒ»°ã·Åº¯Êý»òÕß·½·¨£¬µäÐ͵Äasp³ÌÐòд·¨¡£
ÀýÈ磺<tr bgcolor="#ffffff">
       <td height="20">
        <div align="center">Àà±ð£º</div>
       </td>
       <td height="9">&nbsp;
   &nbs


Ïà¹ØÎĵµ£º

asp.net¼ì²âÍøÒ³ÌØÐÔ

´úÂëÈçÏ£º
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s = "Browser Capabilities\n"
"Type = " + browser.Type ;
"Name = " + browser.Browser ;
"Version = " + browser.Version ;
"Major Version = " + browser.Ma ......

¡¾×ª¡¿asp.net ¿Í»§¶Ë»Øµ÷֪ͨ


ÔÚ ASP.NET ÍøÒ³µÄĬÈÏÄ£ÐÍÖУ¬Óû§»áÓëÒ³½»»¥£¬µ¥»÷°´Å¥»òÖ´Ðе¼Ö»ط¢µÄһЩÆäËû²Ù×÷¡£´Ëʱ½«ÖØд´½¨Ò³¼°Æä¿Ø¼þ£¬²¢ÔÚ·þÎñÆ÷ÉÏÔËÐÐÒ³´úÂ룬ÇÒа汾µÄÒ³±»³ÊÏÖµ½ä¯ÀÀÆ÷¡£µ«ÊÇ£¬ÔÚÓÐЩÇé¿öÏ£¬ÐèÒª´Ó¿Í»§¶ËÔËÐзþÎñÆ÷´úÂ룬¶ø²»Ö´Ðлط¢¡£Èç¹ûÒ³ÖеĿͻ§¶Ë½Å±¾Î¬»¤Ò»Ð©×´Ì¬ÐÅÏ¢£¨ÀýÈ磬¾Ö²¿±äÁ¿Öµ£©£¬ÄÇô·¢ËÍÒ³ºÍ»ñÈ¡Ò ......

ÔÚasp.net webserviceÖÐÈçºÎʹÓÃsession

ÔÚʹÓÃasp.net±àдwebserviceʱ£¬Ä¬ÈÏÇé¿öÏÂÊDz»Ö§³ÖsessionµÄ£¬µ«ÎÒÃÇ¿ÉÒÔ°ÑWebMethodµÄEnableSessionÑ¡ÏîÉèΪtrueÀ´ÏÔʽµÄ´ò¿ªËü£¬Çë¿´ÒÔÏÂÀý×Ó£º
1 н¨ÍøÕ¾WebSite 
2 н¨web·þÎñWebService.asmx£¬Ëü¾ßÓÐÒÔÏÂÁ½¸ö·½·¨£º
[WebMethod(EnableSession = true)]
public string Login(string name)
{
   ......

asp.net treeview ²Ëµ¥Ê÷ Á´½Ó Õ¹¿ª ÕÛµþ

»­Ã棺
<asp:HiddenField ID="hfdXuHao" runat="server" />
<asp:TreeView ID="tvMenu" runat="server" CssClass="tvStyle" EnableClientScript="false"
                        & ......

ASP.NETÑéÖ¤¿Ø¼þÏê½â

¹ã¶«ÄϺ£Êй«°²¾Ö¼ÆËã»ú°²È«¼à²ì¹ÉÓ÷¿­
    ASP.NETÊÇ΢ÈíÍƳöµÄÏÂÒ»´úWEB¿ª·¢¹¤¾ß£¬ÆäÇ¿´óµÄ¹¦ÄÜÁ¢¼´ÎüÒýÁËÒ»´óÅúWEB¿ª·¢ÕßͶÈëËüµÄÃÒÏ¡£ÏÖÔÚ£¬ÎÒÃÇÀ´¿´¿´ASP.NETµÄÑéÖ¤¿Ø¼þ£¬¸ÐÊÜASP.NETµÄÇ¿´ó¹¦ÄÜͬʱ·½±ãÎÒÃÇÏÖÔÚµÄWEB¿ª·¢¡£
WEB¿ª·¢ÕßÌرðÊÇASP¿ª·¢Õߣ¬Ò»Ö±¶ÔÊý¾ÝÑéÖ¤±È½ÏÄջ𣬵±ÄãºÃ²»ÈÝÒ×д³öÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ