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

ÈçºÎʹÓÃASP.NET Profile


Asp.NetÖÐÓÐÒ»Ì×ÓëÓû§Ïà¹ØÁªµÄÊôÐÔÉèÖ㬿ÉÒÔͨ¹ýÔÚWebConfigÀïÅäÖÃÀ´Ö±½ÓʹÓã¬ËûµÄ×÷ÓÃΪ
´æ´¢ºÍʹÓÃΨһÓëÓû§¶ÔÓ¦µÄÐÅÏ¢
Õ¹ÏÖ¸öÈË»¯°æ±¾µÄWebÓ¦ÓóÌÐò
Óû§µÄΨһÉí·Ý±êʶÔÚÔٴηÃÎÊʱʶ±ðÓû§
Asp.Net ProfileÌṩµÄ¸úÓû§Ïà¹ØµÄÀàÐͶ¼ÊÇÇ¿ÀàÐÍ
Ê×ÏÈÉú³ÉÊý¾Ý¿â½Å±¾£¬Ê¹ÓÃVisual Studio 2005 ÃüÁîÌáʾ£¬ÊäÈëÃüÁîÐÐaspnet_regsql -A p -sqlexportonly filename
-A£º±íÃ÷Ôö¼ÓÒ»¸öÊý¾Ý¿â
p£º±íÃ÷Éú³ÉµÄÊÇProfileµÄÊý¾Ý¿â
-sqlexportonly£º±íÃ÷Êǵ¹³ösql½Å±¾£¬ÓÃÆäËû²ÎÊý¿ÉÒÔÖ±½Ó´´½¨Êý¾Ý¿â£¬¾ßÌåµÄ˵Ã÷¿ÉÒԲο´aspnet_regsqlµÄ°ïÖú˵Ã÷
filename£º±£´æµÄÎļþÃû
ÏÖÔÚÊý¾Ý¿â´´½¨ºÃÁË£¬ÀïÃæÓÐ4Õűíaspnet_ApplicationÓÃÀ´´æ´¢Ó¦ÓóÌÐòµÄÏà¹ØÀàÐÍ£¬aspnet_ProfileÓÃÀ´±£´æÓû§µÄÊôÐÔÐÅÏ¢£¬aspnet_SchemaVersionÓÃÀ´´æ´¢°æ±¾ÐÅÏ¢£¬aspnet_UserÓÃÀ´±£´æÓû§ÐÅÏ¢¡£¿ÉÒÔ´ÓÕ⼸Õűí¿ÉÒÔ¿´µ½£¬¶à¸öÓ¦ÓóÌÐò¿ÉÒÔÓÃͬһ¸öÊý¾Ý¿âÀ´±íʾÓû§ÐÅÏ¢¡£
ÏÂÃæÊÇÈçºÎÀ´ÅäÖÃWebConfigÀ´Ö§³ÖProfile
Ê×ÏÈÅäÖÃÁ¬½Ó×Ö·û´®
<connectionStrings>
<add name="ProfileDatabase" connectionString="Server=192.168.1.2; Initial Catalog=aspnetdb; User ID=sa; Password=sa"/>
</connectionStrings>
È»ºóÔÚsystem.web½ÚµãÏÂÌí¼Óprofile½Úµã
<profile enabled="true" automaticSaveEnabled="true" defaultProvider="SqlProvider">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="ProfileDatabase"
applicationName="ProfileSample"
description="Sample for ASP.NET profile and Profile Service" />
</providers>
<properties>
<add name="Name" type="System.String"/>
<add name="Email" type="System.String" />
<add name="Age" type="System.Int32" />
<group name="Address">
<add name="City" type="System.String" />
<add name="Street" type="System.String" />
<add name="PostalCode" type="System.String" />
</group>
</properties>
</profile>
Ïêϸ˵Ã÷һϡ£automaticSaveEnalbed="true"£¬±íÃ÷Óû§ÔÚÌá½»Êý¾ÝÖ®ºó£¬×Ô¶¯±£´æÓû§ÊôÐÔ¡£properties½ÚµãÏÂÃæ¾ÍÊÇÓû§ÐèÒªÅäÖõÄ×Ô¼ºµÄÓû§ÊôÐÔ£¬group±íÃ÷ÕâÊÇÒ»¸ö×飬Ïàµ


Ïà¹ØÎĵµ£º

ASP.NET´´½¨ËõÂÔͼ

ÔÚѧϰ¹ý³ÌÖз¢ÏÖÈç¹ûÒªÉÏ´«µÄÕÕÆ¬ºÜ´óµÄ»°£¬ËÙ¶È»áºÜÂý£¬ËùÒÔ²ÉÓÃÁËÔÚÉÏ´«ÕÕÆ¬Ê±Í¬Ê±ÉÏ´«ËõÂÔͼµÄ·½Ê½£¬ÕâÑù¾Í¿ÉÒԼȲ»Ó°Ïì¶à¸öͼƬµÄä¯ÀÀ£¬ÓÖ²»Ó°Ïì²é¿´¾ßÌåµÄͼƬ¡£
ÐèÒªÓõ½µÄÃüÃû¿Õ¼ä£º
using System.Drawing;
using System.IO;
using System.Drawing.Imaging;
#region ±£´æÉÏ´«Îļþ£¬·½·¨Ãû£ºUploadSave(string ......

asp.netÎå´óÊý¾Ý·ÃÎʿؼþ¼òµ¥±È½Ï

Êý¾Ý°ó¶¨¿Ø¼þ±È½Ï(Reapter\DataList\GridView\DatailsView\FormView):
1.²åÈ빦ÄÜ·½Ãæ:
DetailsViewºÍFormView¾ßÓвåÈ빦ÄÜ,ÆäËü¿Ø¼þûÓÐ
2.Ä£°å
DataList\FormView\RepeaterÈýÖÖ±ØÐë±à¼­Ä£°å,¶ø
GridViewºÍDetailsViewÖ»ÓÐÔÚ½«ÁÐת»»³ÉÄ£°åÁÐÒÔºó²Å»á³öÏÖ¸÷ÖÖÄ£°å.
3.×Ô¶¯·ÖÒ³¹¦ÄÜ
GridView ,DetailsViewºÍFormView ......

dz̸ASP.NETÒ³ÃæµÄSEOÓÅ»¯

1.Ç°Ì¨Ò³ÃæÒ»°ã²»ÓÃgridview datalist treeview updatepanel µÈ¿Ø¼þ£¬ÒòΪËûÃÇ»áÉú³ÉºÜ¶àÎÒ²»ÏëÒªµÄ´úÂë¡£¶øÇÒǶÌ×Ò»´ó¶Ñtable
2.ÓÃrepeater+div+css+ul liÒѾ­×ã¹»ÎÒ×öºÜ¶à¶«Î÷ÁË¡£
3.·¢²¼ºóµÄÒ³Ãæ£¬¿ÉÒÔ°ÑһЩ¿ÕÐкͻ»ÐÐ ºÍһЩ²»±ØÒªµÄ¿Õ¸ñÈ¥µô£¬¾¡Á¿¼õÉÙaspxÒ³ÃæµÄÈÝÁ¿¡£Ìá¸ß¼ÓÔØËÙ¶È¡£
4.ÔÚÒ³ÃæµÄtitleдÉϱ¾Ò³ÄÚÈÝ ......

Asp.Net³£ÓõÄÈýÊ®ÈýÖÖ´úÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......

asp.net ÉèÖóö´íÒ³

    <system.web> 
      <!--********³ö´íÒ³µÄÉ趨********-->
    <customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ