asp.net¼òÌå×Öת·±Ìå×ÖµÄÀà¿â
asp.net¼òÌå×Öת·±Ìå×ÖµÄÀà¿â
ÕⶫÎ÷ËäÈ»¼òµ¥£¬µ«Ò²²»Ê§Îª¾µäµÄÀà¿â£¬¸öÈ˶øÑÔ£¬¾Í·Ç³£Ï²»¶Õâ¸öÀà¿â¡£
ÓÃÎÄ×ּǼÏÂÀ´°É£¬Áô¸ö¼ÇÄî°É
ÔÚvsÖУ¬ÓÐÒ»¸ö¾µäµÄMicrosoft.VisualBasic.dllµÄVBÀà¿â£¬¸ù¾Ý¹Ù·½µÄÃèÊö£º
ËüÄÜÌṩ¶ÔÐí¶à .NET Framework ÀàµÄ¼òµ¥Ö±¹ÛµÄ·ÃÎÊ£¬Ê¹ÄúÄܹ»±àд¿ÉÓë¼ÆËã»ú¡¢Ó¦ÓóÌÐò¡¢ÉèÖá¢×ÊÔ´µÈ½»»¥µÄ²Ù×÷¼°·½·¨´úÂë¡£
Õâ´Î£¬Ð´Ò»¸ö±È½Ï¾µäµÄ¶«Î÷£¬¼òÌå×Öת·±Ìå×ֵIJÙ×÷·½·¨£¬Òª½øÐвÙ×÷£¬ÏÈÒýÓÃÀà¿â.
ÎÒÃÇ¿ÉÒÔÔÚÏîÄ¿ÖÐÒýÓÃMicrosoft.VisualBasic.dll¾Í¿ÉÒÔÁË
ʵÏÖ¼òÌå·±Ìåת»»·½·¨£º
Microsoft.VisualBasic.Strings.StrConv(string str, VbStrConv Conversion, int LocaleID);
¼ò·±×ª»»£¬Ö»ÊÇö¾ÙÖµ²»Ò»Ñù¶øÒÔ
¼òÌåת·±Ì壺Microsoft.VisualBasic.Strings.StrConv(string str, VbStrConv.TraditionalChinese,0)
·±Ìåת¼òÌ壺Microsoft.VisualBasic.Strings.StrConv(string str VbStrConv.SimplifiedChinese,0)
Str: Ҫת»»µÄ String ±í´ïʽ¡£
Conversion: Microsoft.VisualBasic.VbStrConv¡£Ö¸¶¨ÒªÖ´ÐеÄת»»ÀàÐ͵Äö¾ÙÖµ¡£
LocaleID: LocaleID Öµ£¨Èç¹ûÓëϵͳ LocaleID Öµ²»Í¬£©¡££¨ÏµÍ³ LocaleID ֵΪĬÈÏÖµ¡££©
ʵ¼ÊʹÓÃÔõÑù£¿ÄÇôÎÒÃÇ×öÒ»¸ö²âÊÔ
µ±È»£¬Õâ¸ö±È½Ï¼òµ¥£¬Èç¹ûÕâ¸ö·½·¨¾³£Óõ½µÄ»°£¬»¹¿ÉÒÔÓÃÉÏÖܵÄһƪÀ©Õ¹·½·¨Ð´·¨Ð´Ò»¸öת»»µÄÀ©Õ¹·½·¨¡£
class Program
{
static void Main(string[] args)
{
Console.Write(Microsoft.VisualBasic.
Strings.StrConv("²©¿ÍÔ°",
Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 0));
Console.Read();
}
}
Êä³ö½á¹ûÊÇ£¨Ö±½ÓÉÏÕÅͼ°É,±È½ÏÖ±¹Û£©
Ïà¹ØÎĵµ£º
ÔÀ´µÄMembership
ÎÒÃÇÖªµÀÔÚAsp.Net 2.0ÖÐ΢Èí¾ÍΪÎÒÃÇÌṩÁËÇ¿´óµÄȨÏÞ¹ÜÀí¹¦ÄÜÀ´°ïÖúÎÒÃǹÜÀíAsp.NetÏàÓ¦µÄȨÏÞ£¬ÆäʵËüÊǶÔÎÒÃǵÄÉí·ÝÈÏÖ¤ºÍȨÏÞ¹ÜÀíµÄÒ»ÖÖ³éÏó¡£ÕâÀï¼òµ¥µÄÁ˽âÒ»ÏÂMembership£º
ÎÒÃÇÓ¦¸ÃÖªµÀ΢Èí¹ØÓÚÈÏÖ¤·½Ãæ¸øÎÒÃÇÌṩÁËÈýÖÖÈÏÖ¤·½Ê½windows ¡¢Forms¡¢Passport,ÎÒÏëÊìϤAsp.Net ......
DataGridView 72¼Æ
±¾ÎĽ«½éÉÜASP.NETÖÐDataGridViewµÄÓ÷¨,DataGridViewÔÚAsp.netÖÐÊdz£ÓõĿؼþÖ®Ò»£¬ÕÆÎÕºÃDataGridViewµÄÌصãºÍÓ÷¨¡£½«¶Ô³ÌÐòµÄÐÔÄÜÓдó´óµÄÌá¸ß£¬Í¬Ê±Ò²ÄܼӿìÎÒÃÇÏîÄ¿µÄ¿ª·¢ÖÜÆÚ£¡
¿ìËÙÔ¤ÀÀ£º
GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
GridViewÑ¡ÖУ¬±à¼£¬È¡Ïû£¬É¾³ý
GridViewÕý·´Ë«ÏòÅÅÐò
GridViewºÍÏÂÀ²Ëµ¥ ......
ÏÂÃæÊÇдcookie
1 HttpCookie cookie = new HttpCookie("Info");//¶¨Òåcookie¶ÔÏóÒÔ¼°ÃûΪInfoµÄÏî
2 DateTime dt = DateTime.Now;//¶¨Òåʱ¼ä¶ÔÏó
3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookieÓÐЧ×÷ÓÃʱ¼ä£¬¾ßÌå²émsdn
4 cookie.Expires = dt.Add(ts);//Ìí¼Ó×÷ÓÃʱ¼ä
5 cookie.Values.Add("user","cxbkkk");//Ôö¼ ......
Web Ò³ÃæÊÇÎÞ״̬µÄ£¬ ·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔͬһҳÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌøתʱ²»»á±»±£Áô¡£
0¡¢ÒýÑÔ
Web Ò³ÃæÊÇÎÞ״̬µÄ£¬·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔͬһҳÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌøתʱ²»»á±»±£Áô¡£ÔÚÓÃAsp.NET Éè¼Æ¿ª·¢Ò»¸öWeb ......
//TransmitFileʵÏÖÏÂÔØ
protected void Button1_Click(object sender, EventArgs e)
{
/*
΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃRespo ......