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

ASP.NET MVC ¶àÓïÑÔ½â¾ö·½°¸

ASP.NET MVC ¶àÓïÑÔ½â¾ö·½°¸()
  ¾ÍÒ»¸öÍøÕ¾µÄ¶àÓïÑÔÌØÐÔÀ´Ëµ£¬ÎÒÈÏΪ·ÖΪÁ½¸ö·½Ã棺
    1¡¢HTML½çÃæÉÏÏÔʾµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
    2¡¢HTML½çÃæÉÏJSÊä³öµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
    Ô­À´ÔÚHTML²¿·ÖÖ±½ÓдµÄÎÄ×Ö¶¼²»ÄÜÖ±½ÓдҪÊä³öµÄÎÄ×Ö£¬¶øÊÇÒª²ÉÓñê¼ÇµÄ·½·¨À´Ìæ»»¡£JSÒ²ÊÇͬÀí¡£
    ÄÇôÔÚMVCÏÂÔõôÄÜ͸Ã÷µÄʵÏÖ¶àÓïÑÔÄØ£¿Ëùν͸Ã÷µÄʵÏÖÊÇÖ¸£¬³ÌÐòÔ±ÔÚ¿ª·¢³ÌÐòµ±ÖУ¬²»ÐèÒª¹ý¶àµÄ¿¼ÂǶàÓïÑÔµÄÎÊÌ⣬ֱ½Óµ÷ÓÃÒ»¸ö·½·¨¾ÍÄÜʵÏÖ¶àÓïÑÔ£¬¶øÇÒËùÒªÓõ½µÄÓïÑÔÎļþÿ¸öÓïÑÔÒ»¸öÎļþ¾Í¹»ÁË£¬¼¯Öз­ÒëÕâ¸öÓïÑÔ¾ÍÍê³ÉÁ˶àÓïÑԵŦÄÜ¡£
   
   ÀýÈç
   <html>
  
   <head>
  
   </head>
  
   <body>
  
   ¶àÓïÑÔÊä³öµÄÎÄ×Ö //ÕâÀï¾Í²»ÄÜÖ±½ÓдÖÐÎÄÁË£¬Ò»¸öºÃ·½·¨ÊÇ Ö±½ÓÓà <%= Html.Lang("string1") %> À´½øÐÐÊä³ö
  
   </body>
  
   </html>
  
   ÕâÀï<%= Html.Lang("clickme") %> ÊÇ¶Ô HTMLHelper ½øÐÐÁËÀ©Õ¹£¬Ôö¼ÓÁËÒ»¸ö Lang µÄ·½·¨£¬²ÎÊýÊÇÐèÒª·­ÒëµÄ×ÊÔ´×Ö·û´®µÄName¡£
  
   ÔõôΪ HTMLHelper ½øÐÐÀ©Õ¹?ÏÂÃæÕâ¸öÀà¾ÍÊÇÔö¼ÓÁ˵ÄÀ©Õ¹Àà
Code
   using System;
   using System.Data;
   using System.Configuration;
   using System.Linq;
   using System.Web;
   using System.Web.Security;
   using System.Web.UI;
   using System.Web.UI.HtmlControls;
   using System.Web.UI.WebControls;
   using System.Web.UI.WebControls.WebParts;
   using System.Xml.Linq;
   using System.Globalization;
  
   using System.Web.Compilation;
   using System.Web.Mvc;
   using System.Web.Routing;
  
   namespace System.Web.Mvc {
   public static class LocalizationHelpers {
   /// <summary>


Ïà¹ØÎĵµ£º

asp.netÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄܵķ½·¨

1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±ÕÊ±Ê ......

ÔÚasp.netÖнÓÊÕsql serverÖд洢¹ý³ÌµÄ·µ»ØÖµ

´æ´¢¹ý³Ì´úÂ룺
create procedure proc_name
   @para1 nchar(20),    --ÊäÈë²ÎÊý
   @para2 int = null output¡¡--Êä³ö²ÎÊý£¬¹©³ÌÐòʹÓÃ
as
begin
   if (@para1='a')
   begin
       insert into employee(name) value ......

asp.netÒ³Ãæ´«Öµ¼¼ÇÉ

¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.  ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊ ......

ASP.NET×Ô¶¯Éú³É¾²Ì¬HTMLÍøÒ³, ÔÙ°´ÈÕÆÚ´æ·ÅĿ¼

һ˵µ½ÐÂÎÅϵͳµÄ»°£¬Ò»¶¨»á̸µ½¾²Ì¬Ò³ÃæÉú³ÉµÄ£¬ÒòΪ¾²Ì¬Ò³Ãæ²»µ«ÊǶÁÈ¡Ëٶȿ죬¶øÇÒÓÖ°²È«£»
¾²Ì¬Ò³ÃæµÄÉú³É²»¹ÜÊÇСµ½ÏÖÔÚµÄÆóÒµÍøÕ¾´óÖÁÍøÒ×£¬£Ñ£ÑµÈÃÅ»§¶¼Óõ½ÁË£»
ÄÇôÎÒÃÇÈçºÎÀ´Éú³É¾²Ì¬Ò³ÄØ£¿
ÒÔʲô·½Ê½Éú³É¾²Ì¬Ò³ÃæÄØ……
ÔÚÉú³É¾²Ì¬Ò³ÃæµÄʱºòÓÐÄÇЩÊÇҪעÒâµÄÄØ£º
¾²Ì¬Ò³ÃæÃüÃû
ͳһ´æ·ÅĿ¼ ......

ASP.NET·ÀÖ¹Öظ´Ìá½»µÄJavascript½Å±¾

function _doPostBack(){};
if(typeof("__doPostBack")=="function")
{
_doPostBack=__doPostBack;
__doPostBack=_doPostBackNew;
}
document.attachEvent("onmousemove",_onmousemove);
var _isPosting=false;
var _divMask=null;
function _onmousemove()
{
if(_divMask)
with(_divMask.runtimeStyle)
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ