ÔÚ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
Ïà¹ØÎĵµ£º
½ñÌìΪÁË×ö²åÈëÊý¾ÝÕÒÁ˲»ÉÙ¶«Î÷£¬ÒòΪ´ÓÀ´Ã»ÓÐд¹ý¶ÁдExcel£¬Ò²²»ÖªµÀ¸ÃÔõôд¡£ÏÂÃæµÄÊǽñÌìͨ¹ý²é¿´ÂÛ̳×Ô¼ºÐ´³öÀ´ÁË¡£
¹¦ÄÜÊǶÁÈ¡Excel È»ºó°ÑÊý¾Ý²åÈëÊý¾Ý¿â¡£Õâ¸ö¹¦ÄÜÔÚÆóÒµÀïÊǷdz£³£¼ûµÄÒ²Êdz£Óõģ¬Ï£Íû¶ÔÅóÓÑÃÇÓаïÖú£¡
/// <summary>
/// µ¼Èëexcel
/// </ ......
Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspx ......
Ò»¡¢ÈçºÎ£ºÊ¹Óà ASP.NET Óï·¨½«·þÎñÆ÷¿Ø¼þÌí¼Óµ½ ASP.NET ÍøÒ³
¿ÉÒÔͨ¹ýÔÚ .aspx ÎļþÖÐÖ±½ÓÉùÃ÷ Web ·þÎñÆ÷¿Ø¼þ½«ËüÌí¼Óµ½Ò³ÖС£
ÒÔÉùÃ÷·½Ê½Ìí¼Ó¿Ø¼þ
A¡¢Èç¹ûÄúλÓÚ¿ÉÊÓ»¯Éè¼ÆÆ÷ÖУ¬ÇëÇл»µ½Ô´±à¼ÊÓͼ¡£
B¡¢½«±íʾ¸Ã¿Ø¼þµÄÔªËؼüÈë .aspx Îļþ¡£ÄúʹÓõľßÌåÓ﷨ȡ¾öÓÚÒªÌí¼ÓµÄ¿Ø¼þ£¬ ......
ËÄ¡¢ÈçºÎ£ºÖ¸¶¨ÊÇ·ñ½« ASP.NET Web ·þÎñÆ÷¿Ø¼þ·¢Ë͵½·þÎñÆ÷
ĬÈÏÇé¿öÏ£¬Óû§ÔÚ ASP.NET ÍøÒ³ÖÐÖ¸¶¨µÄÐÅÏ¢ºÍÑ¡Ôñ²»»áÁ¢¼´·¢Ë͵½·þÎñÆ÷¡£¶øÊÇÖ»ÔÚ·¢ËÍÕû¸öҳʱ·¢ËÍÖµ£¬²¢ÇÒͨ³£ÊÇÔÚÏìÓ¦°´Å¥µ¥»÷ʱ·¢Éú¡£µ«ÊÇ£¬Äú¿ÉÄܻᷢÏÖËüÔÚÏò·þÎñÆ÷Á¢¼´·¢ËÍÓû§¸ü¸Äʱ·Ç³£ÓÐÓá£
Á¢¼´½«¿Ø¼þÖµ·¢Ë͵½·þÎ ......