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

ÔÚASP.NET ÖÐʵÏÖµ¥µãµÇ¼

 
ÔÚASP.NET ÖÐʵÏÖµ¥µãµÇ¼
³ö×Ô£º¡¾ÃÏÏÜ»áÖ®¾«²ÊÊÀ½ç¡¿ ·¢²¼ÈÕÆÚ£º2005Äê1ÔÂ27ÈÕ 8µã48·Ö0Ãë
ÓÉÓÚijЩԭÒò£¬ÔÚÎÒÃǵÄÓ¦ÓÃÖлáÓöµ½Ò»¸öÓû§Ö»ÄÜÔÚÒ»¸öµØ·½µÇ¼µÄÇé¿ö£¬Ò²¾ÍÊÇÎÒÃÇͨ³£Ëù˵µÄµ¥µãµÇ¼¡£ÔÚASP.NETÖÐʵÏÖµ¥µãµÇ¼ÆäʵºÜ¼òµ¥£¬ÏÂÃæ¾Í°ÑÖ÷ÒªµÄ·½·¨ºÍÈ«²¿´úÂë½øÐзÖÎö¡£
ʵÏÖ˼·
ÀûÓÃCacheµÄ¹¦ÄÜ£¬ÎÒÃÇ°ÑÓû§µÄµÇ¼ÐÅÏ¢±£´æÔÚCacheÖУ¬²¢ÉèÖùýÆÚʱ¼äΪSessionʧЧµÄʱ¼ä£¬Òò´Ë£¬Ò»µ©SessionʧЧ£¬ÎÒÃǵÄCacheÒ²¹ýÆÚ£»¶øCache¶ÔËùÓеÄÓû§¶¼¿ÉÒÔ·ÃÎÊ£¬Òò´Ë£¬ÓÃËü±£´æÓû§ÐÅÏ¢±ÈÊý¾Ý¿âÀ´µÃ·½±ã¡£
²é¿´Ê¾Àý
SingleLogin.aspx´úÂë
<%@ Page language="c#" Codebehind="SingleLogin.aspx.cs" AutoEventWireup="false"
 Inherits="eMeng.Exam.SingleLogin" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>µ¥µãµÇ¼²âÊÔ</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Author" content="ÃÏ×ÓEÕÂ
">
<meta http-equiv="WebSite" content="http://dotnet.aspx.cc/
">
<style>
H3 { FONT: 17px ËÎÌå }
INPUT { FONT: 12px ËÎÌå }
SPAN { FONT: 12px ËÎÌå }
P { FONT: 12px ËÎÌå }
H4 { FONT: 12px ËÎÌå }
</style>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
  <div align="center">
    <h3>µ¥µãµÇ¼²âÊÔ</h3>
    <p>Óû§Ãû³Æ£º<asp:TextBox id="UserName" runat="server"></asp:TextBox></p>
    <p>Óû§ÃÜÂ룺<asp:TextBox id="PassWord" runat="server" TextMode="Password"></asp:TextBox></p>
    <p><asp:Button id="Login" runat="server" Text=" µÇ  ¼ "></asp:Button></p>
    <p><asp


Ïà¹ØÎĵµ£º

asp.netÖÐÉÏ´«´óÎļþ

Ö±½ÓÔÚASP.netÖÐÉÏ´«´óÎļþµÄ·½·¨£®
·½·¨Ò»£ºÔÚweb.configÖÐÌí¼Ó<httpRuntime maxRequestLength="100000" executionTimeout="45"/>
·½·¨¶þ£ºÐ޸ģɣɣÓÅäÖÃÎļþwindows->system32->inetsrv->metaBase.XML
·½·¨Èý£º
1£®   httpHandler or HttpModule
a.ÔÚASP.net½ø³Ì´¦ÀírequestÇëÇó֮ǰ½Ø»ñ ......

ASP.NET ¼¼ÇÉƪ

 Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspx ......

ASP.NET

¶þ¡¢Ïò ASP.NET ÍøÒ³Ìí¼Ó HTML ·þÎñÆ÷¿Ø¼þ
      HTML ·þÎñÆ÷¿Ø¼þÊÇÄú¿ÉÒÔ¶ÔÆä½øÐÐÅäÖÃÒÔ±ã¿ÉÒÔʹÓ÷þÎñÆ÷´úÂë¶ÔÆä½øÐбà³ÌµÄ HTML ÔªËØ¡£
1¡¢ÈçºÎ£ºÊ¹Óà ASP.NET Óï·¨ÏòÍøÒ³Ìí¼Ó HTML ·þÎñÆ÷¿Ø¼þ
      Ìí¼Ó HTML ·þÎñÆ÷¿Ø¼þºÍÌí¼ÓÈÎÒâ HTML ÔªËØÀàËÆ£¬²»Í¬Ö®´¦ÔÚÓÚ ......

ASP.NET

Æß¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þºÍ CSS Ñùʽ
      Äú¿ÉÒÔͨ¹ýÉèÖø÷ÖÖÍâ¹ÛÊôÐÔ£¨Èç ForeColor¡¢BackColor¡¢Height ºÍ Width£©À´¿ØÖÆ ASP.NET ·þÎñÆ÷¿Ø¼þµÄÍâ¹Û¡£´ËÍ⣬²¿·Ö¿Ø¼þÖ§³Ö¹«¿ª¸½¼ÓÑùʽÏà¹ØÉèÖõÄÑùʽ¶ÔÏó¡£
    ˵Ã÷£º ASP.NET ÍøÒ³ÔÚÔËÐÐʱ¿ÉÒÔµ±×÷ HTML Ò³¡£ÄúÒò´Ë¿ÉÒÔÊ ......

asp.net²Ù×÷XMLС½á

 

Ò»¡¢¼òµ¥½éÉÜ
using System.Xml;
//³õʼ»¯Ò»¸öxmlʵÀý
XmlDocument xml=new XmlDocument();
//µ¼ÈëÖ¸¶¨xmlÎļþ
xml.Load(path);
xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));
//Ö¸¶¨Ò»¸ö½Úµã
XmlNode root=xml.SelectSingleNode("/root" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ