asp.net¼¼ÇÉ¡£¡£¡£
1.Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: <%=...%> <%#... %> <% %> <%@ %> ½âÊͼ°Ó÷¨
´ð: <%#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: <%# Container.DataItem("tit") %>
<%= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspxÖУº <%= aaa %>
*.csÖÐ: protected string aaa="ÐÕÃû";
<% %>: ÄÚÁª´úÂë¿éÀïÃæ¿ÉÒÔÔÚÒ³ÃæÎļþ*.aspx»ò*.ascxÎļþÀïÃæǶÈëºǫ́´úÂë
Èç:
<%
for(int i=0;i<100;i++)
{
Reaponse.Write(i.ToString());
}
%>
<%@ %>ÊÇÔÚ*.aspxÒ³Ãæǰ̨´úÂëµ¼ÈëÃüÃû¿Õ¼ä»òÖ¸¶¨ºǫ́Îļþ·¾¶µÈÐÅÏ¢,
Èç:
<%@ Import namespace="System.Data"%>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication5.WebForm1" %>
2.¿Ø¼
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý [·µ»ØĿ¼]
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥ ......
Ò»Ö±ÒÔÀ´½«Êý¾Ý¿âÖеÄʱ¼ä°ó¶¨µ½gridviewÖкó£¬ÏÔʾµÄºóÃæ×ÜÊÇ»á¶à³öÒ»´®00£º00£º00£¬
ÔÀ´Êǰ󶨵ÄʱºòûÓиñʽ»¯×Ö·û´®£¬Ö»ÒªÔÚ°ó¶¨Ê±¼ÓÈëÈçϸñʽ¾Í¶ÔÁË¡£
<asp:BoundField DataField="FieldName" HeaderText="ʱ¼ä" DataFormatString="{0:d}" HtmlEncode="false"> ......
ÔµØÖ·£º
http://msdn.microsoft.com/en-us/library/aa480476.aspx
IIS Authentication
ASP.NET authentication is a two-step process. First, Internet Information Services (IIS) authenticates the user and creates a Windows token to represent the user. IIS determines the authentication mode that it shoul ......