´¦ÀíÓзµ»ØÖµµÄºÍreturnµÄasp.netд·¨
SqlConnection conPortal = new SqlConnection(CommunityGlobals.ConnectionString);
SqlCommand cmdAdd = new SqlCommand( "Community_DiscussAddPost", conPortal);
cmdAdd.CommandType = CommandType.StoredProcedure;
cmdAdd.Parameters.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue; //´¦ÀíreturnµÄ·µ»ØÖµ
cmdAdd.parameters.Add("@outputvalue",sqlDbType.Int);
cmdAdd.Parameters[].Direction=parameterDirectionOutput;
/**ÉÏÃæÁ½¾äµÈͬÓÚcmdAdd.Parameters.Add("@outputvalue",sqlDbType.Int).Direction=ParameterDirectionOutput;
**/
cmdAdd.Parameters.Add("@communityID", CommunityGlobals.CommunityID);
cmdAdd.Parameters.Add("@sectionID", sectionID);
Ïà¹ØÎĵµ£º
using System;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
namespace op_db
{
/**//// <summary>
/// רÃÅÓÃÀ´´¦ÀíÓëÊý¾Ý¿âµÄ²Ù×÷
/// </summary>
public class&n ......
Introduction
Before explaining cache management in ASP.NET, let me clarify that different people use different terms for explaining the same concept i.e. managing data. Some people refer to it as state management and some others refer to it as cache management. I love to use the term cache manageme ......
ASP.NET MVC FrameworkÊÇ΢Èí¹Ù·½ÌṩµÄMVCģʽ±àдASP.NET WebÓ¦ÓóÌÐòµÄÒ»¸ö¿ò¼Ü.ÒÑÓÚ2009Äê3ÔÂ19ÈÕÕýʽ·¢²¼. MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller). ¼ÈÈ»ÊÇÒ»¸öÓÅÐãµÄ¿ò¼Ü£¬ÄÇô¾ÍÖµµÃȥѧϰһ°Ñ£¬ÍøÉÏËÑË÷ÁËÐí¶à×ÊÁÏ£¬Ï£Íû¶ÔÓ ......
ÉÏһƪÎÄÕÂÏêϸ½éÉÜÁËÈçºÎÀûÓÃASP.NET MVC´´½¨×Ô¼ºµÄÒ³Ãæ£¬ÔÚÎÄÕ½éÉÜÁËÈçºÎÀûÓÃViewDataÓÉControllerÏòViewÎļþ´«Öµ£¬ÄÇеÄÎÊÌâÔٴγöÏÖ£¬ÎÒÃdzýÁËÄÜÏÔʾaspxÎļþÍ⻹ÄÜÏÔʾÆäËüµÄÎļþô£¿
±¾ÎĽ«Ïêϸ½éÉÜÈçºÎÏòView´«Öµ¡£
Ò»¡¢ViewDataÓëTempDataÊôÐÔÀ´ÏòViewÒ³´«µÝ¶ÔÏó
ÉÏÎÄÖÐÒѾÌáµ½,ʹÓÃViewData¿ÉÒÔ½«Êý¾ÝÓÉCont ......
ºÃ¶àÈ˶ÔÏà¶Ô·¾¶Óë¾ø¶Ô·¾¶ÀÏÊÇ»ìÏý¼Ç²»Çå³þ£¬ÎÒ´ÓÕûÀíÁËһϣ¬Ï£Íû¶Ô´ó¼ÒµÄÈÏʶÓаïÖú¡£
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.Request.ApplicationPath->µ±Ç°Ó¦ÓõÄĿ¼
JspÖÐ, ApplicationPathÖ¸µÄÊǵ±Ç°µÄapplication(Ó¦ÓóÌÐò)µÄĿ¼,ASP.NETÖÐÒ²ÊÇÕâ¸öÒâ˼¡£
¶ÔÓ¦ ......