ASP.NETµ¥ÖµºÍÁбí¿Ø¼þµÄÊý¾Ý°ó¶¨
Ò»¡¢(µ¥Öµ°ó¶¨)ÔÚÒ³ÃæµÄºǫ́´úÂëÖж¨Ò幫ÓбäÁ¿,ÈçÏ£º
public string gongYou = "ÉùÃ÷µÄ¹«ÓгÉÔ±";
¡¡¢ÙÈ»ºóÔÚÒ³ÃæµÄÔ´Öе÷Óã¬ÈçÏ£º
<asp:Label ID="lblMgs" runat="server" Text="<%#gongYou >"></asp:Label>
¡¡ ¢Úµ±È»×îºóÒª¼ÇµÃ°ó¶¨Êý¾Ý£º
protected void Page_Load(object sender, EventArgs e)
{
Page.DataBind();
}
×¢£º<%# %>×÷ÓÃÊÇÔÚǰ̨ÏÔʾ´úÂëÖÐǶÈë·ÃÎʺǫ́Êý¾ÝµÄ±í´ïʽÀ´Íê³ÉÊý¾Ý°ó¶¨¡£
¶þ¡¢Áбí¿Ø¼þµÄÊý¾Ý°ó¶¨
½éÉÜÒ»ÏÂDropDownList,CheckBox,BulletedList;
Ò»°ãÀ´Ëµ£¬ÊµÏÖIEnumerable,IListSource,IDataSourceºÍIHierarchicalDataSourceµÄÀ඼¿ÉÒÔ×÷ΪÊý¾ÝÔ´¡£
Àý£ºÒ³Ãæ´úÂ룺
<div>
<asp:DropDownList ID="ddlSelect" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged"
Width="158px">
</asp:DropDownList>
<asp:TextBox ID="txtDDL" runat="server"></asp:TextBox><br />
<br />
<asp:CheckBoxList ID="cblNameANDSex" runat="server">
</asp:CheckBoxList>
<asp:Button ID="btnShowNameANDSex" runat="server" OnClick="btnShowNameANDSex_Click"
Text="OK" />
<asp:TextBox ID="txtNameAndSex" runat="server"></asp:TextBox>
<br />
<br />
<asp:BulletedList ID="blUrl" runat="server" DisplayMode="HyperLink" Target="_blank">
</asp:BulletedList>
</div>
ºǫ́´úÂ룺
//¶¨ÒåÒ»°ïÖúÀ࣬Ϊ³õʼ»¯ArrayListʱ£¬×ö²ÎÊýÓã»
public class KeyValueClass
{
private string webSiteName;
public string WebSiteName
{
get { return webSiteName; }
set { webSiteName = value; }
}
private string webSiteUrl;
public string WebSiteUrl
{
Ïà¹ØÎĵµ£º
ASP.NET
ʹÓÃÎÞCookieµÄ±íµ¥ÈÏ֤Ʊ¾Ý
ĬÈÏÇé¿öÏ£¬forms authentication system½«¾ö¶¨Êǽ«Æ±¾Ý´æ´¢ÔÚcookies
collectionÀﻹÊDzåÈëÓû§·ÃÎÊÒ³ÃæµÄURLÀï¡£ËùÓÐÖ÷Á÷µÄ×ÀÃæä¯ÀÀÆ÷£¬±ÈÈçInternet
Explorer£¬Firefox£¬Opera£¬»òSafari¶¼Ö§³Öcookies£¬µ«²¢·ÇËùÓеÄÒƶ¯É豸¶¼Ö§³Ö¡£
forms authentication systemʹÓúÎÖÖco ......
µ¼³öµ½excelµÄ·½·¨ÓжàÖÖ£¬±È½Ï³£¼ûµÄÊÇÖ±½Óµ¼³öµ½EXCEL,»¹ÓоÍÊÇÏȽ«Ò³ÃæµÄÊý¾Ýдµ½´ÅÅÌÎļþ£¬Ö®ºóÖ±½ÓÔÙ´ò¿ªÎļþ£¬ÁíÍ⻹ÓоÍ
ÊǽèÖúµÚÈý·½µÄ¿Ø¼þ¡£
Ç°¶Îʱ¼äдµÄµ¼³öÊý¾Ýµ½excelÔÚexcel2003ÖÐÕý³£¶øÔÚexcel2007ÖÐÊý¾ÝÂÒÂ룬½ñÌìÁ˽⵽ÔÀ´ÊÇResponse.ContentType = "application/ms-excel";µ¼Öµģ¬¸ÄΪR ......
JSPͬÑùÊÇʵÏÖ¶¯Ì¬ÍøÒ³µÄÒ»¸öÀûÆ÷¡£ÓÉÓÚËûµÄ½Å±¾ÓïÑÔÊÇJAVA£¬ËùÒԼ̳ÐÁËJAVAÖî¶àÓŵ㡣ÄÇôÓëASPÏà±È£¬Ó¦¸Ã¿ÉÒÔ˵ASPºÍJSP»ù±¾²»ÊÇÒ»¸öµµ´ÎÉϵġ£ÄÇôASP.NETºÍJAVAÈ´ÊÇ¿ÉÒÔ¿¹ºâµÄ¡£
JSPºÍASPÏà±È½Ï£º ÔËÐÐËٶȡ¢ÔËÐпªÏú¡¢ÔËÐÐƽ̨¡¢À©Õ¹ÐÔ¡¢°²È«ÐÔ¡¢º¯ÊýÖ§³Ö¡¢³§ÉÌÖ§³Ö¡¢¶ÔXMLµÄÖ§³ÖµÈµÈ£¬ASP¶¼²»ÊÇJSPµÄ¶ÔÊÖ¡£COM ......
ÎÊÌâ1£º
“/dsfsd”Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
佫¶ÔÏóÒýÓÃÉèÖõ½¶ÔÏóµÄʵÀý¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.NullReferenceException: 佫¶ÔÏóÒýÓÃÉèÖõ½¶ÔÏóµÄʵÀý¡£
Ô´´íÎó:
Ö´ ......
Ò³ÃæÊä³ö»º´æ×÷Ϊ×î¼òµ¥µÄ»º´æÐÎʽ£¬Êä³ö»º´æÖ»ÊÇÔÚÄÚ´æÖб£ÁôΪÏìÓ¦ÇëÇó¶ø·¢Ë굀 HTML µÄ¸±±¾¡£ÆäºóÔÙÓÐÇëÇóʱ½«Ìṩ»º´æµÄÊä³ö£¬Ö±µ½»º´æµ½ÆÚ£¬ÕâÑù£¬ÐÔÄÜÓпÉÄܵõ½ºÜ´óµÄÌá¸ß£¨È¡¾öÓÚÐèÒª¶àÉÙ¿ªÏúÀ´´´½¨ÔʼҳÃæÊä³ö - ·¢ËÍ»º´æµÄÊä³ö×ÜÊǺܿ죬²¢ÇұȽ ......