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

´¦ÀíÓзµ»ØÖµµÄºÍ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);  
                 


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

asp.netÖйýÂÔhtml´úÂë

// <summary>
        /// ¹ýÂËhtml´úÂë
        /// </summary>
        public static string RphtmlStr(string html)
        {
   &n ......

asp.net ÏÂweb.configÖÐÅäÖÃÊý¾Ý¿âÁ¬½Ó

1¡¢Web.config ¿ÉÒÔ²ÉÓÃдÁ¬½ÓÌõ¼þ »ò ¸½¼Ó ×.mdf Îļþ
<connectionStrings>
  <add name="Sales"
       providerName="System.Data.SqlClient"
       connectionString= "server=myserver;database=Products;uid=<user name&g ......

asp.netÖÐʵÏÖÆ´ÒôÊ××Öĸ²éѯ

ÔÚsqlÀïÃæн¨×Ô¶¨Ò庯Êý£¬´úÂëÈçÏ£º
CREATE function fun_getPY(@str nvarchar(4000))
returns nvarchar(4000)
as
begin
declare @word nchar(1),@PY nvarchar(4000)
set @PY=''
while len(@str)>0
begin
set @word=left(@str,1)
--Èç¹û·Çºº×Ö×Ö·û£¬·µ»ØÔ­×Ö·û
set @PY=@PY+(case when unicode(@word) betw ......

¡¾ASP.NETרÌâ¡¿(1)——ASP.NET MVC³õ̽

ASP.NET MVC FrameworkÊÇ΢Èí¹Ù·½ÌṩµÄMVCģʽ±àдASP.NET WebÓ¦ÓóÌÐòµÄÒ»¸ö¿ò¼Ü.ÒÑÓÚ2009Äê3ÔÂ19ÈÕÕýʽ·¢²¼. MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller). ¼ÈÈ»ÊÇÒ»¸öÓÅÐãµÄ¿ò¼Ü£¬ÄÇô¾ÍÖµµÃȥѧϰһ°Ñ£¬ÍøÉÏËÑË÷ÁËÐí¶à×ÊÁÏ£¬Ï£Íû¶ÔÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ