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

asp.net²Ù×÷ÅäÖÃÎļþ

 ÓÉÓÚÏîÄ¿ÖжദÐèÒª¶ÔÅäÖÃÎļþ½øÐвÙ×÷£¬ÈçÅäÖÃÐÅÏ¢µÄ¶ÁÈ¡¡¢¸ü¸ÄºÍдÈ룬ÐèÒªÒ»¸öͨÓõÄÀàÀ´¶ÔÆä½øÐвÙ×÷ºÍ´¦Àí¡£Õâ´ÎµÄÈÎÎñ¾ÍÊÇÅäÖýڵÄһЩÓ÷¨¡£
       Õâ´ÎÉý¼¶ºóµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚVS2005µÄ£¬·ÖÎöÁËVS2005 ÐÂÔöµÄһЩ¹¦ÄÜ£¬Ëü×Ô´øÁËÒ»Ì×ÅäÖÃÎļþÖнáµãµÈµÄÅäÖá£Ä¿Ç°µÄÏîÄ¿ÓõÄÅäÖÃÎļþ¶¼ÊÇϵͳ×Ô´øµÄ£¬Òò´Ë£¬Õâ´ÎµÄÈÎÎñÖ÷ÒªÊǶÔVS2005ÅäÖÃÀàµÄһЩ½éÉܼ°À©³ä£¨Óû§×Ô¶¨ÒåÅäÖýڵãµÄ²Ù×÷£©¡£ÈÎÎñ·ÖΪÁ½¸ö´ó·½Ïò£¬Ò»¸öÊÇÕë¶ÔWebÏîÄ¿£¨¶ÔÓ¦µÄÅäÖÃÎļþΪweb.config£©£¬ÁíÒ»¸öÊÇÕë¶ÔWinFormÏîÄ¿¡£ÏÂÃæµÄÕ½ÚÖ÷Òª¸ÅÒªµØ½éÉÜÒ»ÏÂVS2005ÖÐÅäÖÃÏîµÄÓ÷¨
1. Web 씀1.1 ϵͳ×Ô´ø
       ÔÚVS2005ÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýϵͳ×Ô´øµÄ¹ÜÀíÀàÀ´¶ÁÈ¡ºÍÐÞ¸ÄÏàÓ¦KeyËù¶ÔÓ¦µÄValueÖµ£¬¾ßÌåµÄ·½·¨ÈçÏ£¨×¢Ò⣺ÓÉÓÚkeyÊÇÖ®¶ÁÊôÐÔ£¬Òò´ËÖ»ÄÜÐÞ¸ÄÓëkeyÏà¶ÔÓ¦µÄValueÖµ£©£º
       ´«ÈëÏàÓ¦µÄKeyÖµ£¨ÈçTest£©£¬Í¨¹ýµ÷ÓÃConfigurationManager.AppSettings["Test"] .Value¼´¿É»ñµÃ¶ÔÓ¦µÄValueÖµ
1£© ´ò¿ªÅäÖÃÎļþ£¨Web.config£©
¡¡¡¡Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
2£© »ñÈ¡ÏàÓ¦µÄappSettingsÅäÖýÚ
¡¡   AppSettingsSection appSection = (AppSettingsSection)config.GetSection("appSettings");
3£© Ôö¼ÓÏàÓ¦µÄappSettingsÅäÖýÚ
¡¡   Ôö¼Ó Key – Value µÄ¼üÖµ¶Ô£¨Èç ”Test” – “Hello”£©  appSection.Settings.Add("Test", "Hello");
4£© ±£´æÅäÖýÚ
       config.Save(ConfigurationSaveMode.Modified)
1£© ´ò¿ªÅäÖÃÎļþ£¨Web.config£©
       Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
2£© ´«ÈëKeyֵͨ¹ýµ÷ÓÃÏÂÃæ·½·¨À´»ñÈ¡¶ÔÓ¦µÄÖµ
       Èç´«ÈëKeyΪTest²ÎÊýÀ´»ñÈ¡¶ÔÓ¦Öµ£ºwebConfig.AppSettings.Settings["Test"].Value
3£© ±£´æÅäÖýÚ
       config.Save(ConfigurationSaveMode.Modified)
       ±£´æµÄ¹¹Ô캯ÊýÓÐÈýÖÖ£º
                    1¡¢²»´ø²ÎÊý
  &


Ïà¹ØÎĵµ£º

ºÏ²¢model²¢ÇÒ³ÊÏÖ£¨asp.net MVC£©

public ActionResult LoadRegionPerformance(TGProject.Models.WModels.TgsOutachiveCondition condition)
{
Account account = (Account)Session["Account"];
var questions = SP.TgsAreaShow(int.Parse(account.AREAID.ToString()));

List< ......

asp.net ÖеÄʱ¼äÑéÖ¤£¨ÊÕ¼¯£©

Ò»¡¢ÑéÖ¤Àà   
  1¡¢Êý×ÖÑéÖ¤ÄÚ   
  1.1   ÕûÊý   
  /^(-|\+)?\d+$/.test(str)   
  1.2   ´óÓÚ0µÄÕûÊý   £¨ÓÃÓÚ´«À´µÄIDµÄÑéÖ¤)   
  /^\d+$/.test(str)  &nb ......

asp.net2.0µÄTreeView¶ÔcheckboxµÄ²Ù×÷

´ó¼Ò»áÔÚASP.NET 2.0ʹÓÃTreeView¿Ø¼þʱ·¢ÏÖ´øÓÐCheckBox¿Ø¼þµÄTreeNode¶ÔÏó£¨TreeView½Úµã£©£¬Ñ¡ÔñCheckBoxÎÞ·¨»Ø·¢Ò³Ãæ¡£ÔÚMSDNÖжÔÓÚTreeView.TreeNodeCheckChangedʼþÓÐÒ»¶Î±¸×¢£º“µ± TreeView ¿Ø¼þµÄ¸´Ñ¡¿òÔÚÁ½´ÎÏò·þÎñÆ÷·¢ËÍÖ®¼ä¸ü¸Ä״̬ʱ£¬»áÒý·¢ TreeNodeCheckChanged ʼþ¡£ÕâʹÄú¿ÉÒÔÌṩһ¸öÕâÑùµÄʼþ´ ......

Êý×Ö·ÖÒ³µ¼º½Ìõ (asp.net C#)


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using ......

ASP.NET ³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·

³õ¼¶µÄ³ÌÐòÔ±»ò¾­Ñé²»×ãµÄ³ÌÐòÔ±ÍùÍùÖ»Òâʶµ½×Ô¼ºµÄ³ÌÐòÊÇд¸ø¼ÆËã»úµÄ£¬¶ø²»»áÔÚÒâ³ÌÐòÆäʵҲÊÇд¸øÈ˵ģ¬»òÔÚÒâµÃ²»¹»¡¢²»È«Ãæ¡£
д¸ø»úÆ÷µÄ³ÌÐò£¬ÍùÍù×·ÇóµÄÊÇÔËÐÐÕýÈ·¡¢Ö´ÐÐЧÂÊÄÜÂú×ãÒªÇó¡£µ«³ÌÐòÔ±µÄÈÎÎñ½ö½ö¾ÍÊÇ°ÑÒµÎñÂß¼­×ª³É»úÆ÷ÄܱàÒëµÄ¼ÆËã»úÓïÑÔÂð?
Æäʵ£¬³ÌÐòÊ×ÏÈ(×¢Ò⣬ÊÇÊ×ÏÈ)ÊÇд¸øÈ˵ġ£µÚÒ»£¬³ÌÐòÊÇд¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ