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

Asp.net Ï°Ñ×Ô¼ºµÄ³ÌÐò¼¯¼ÓÈëµ½ GAC

ÒòΪ·þÎñÆ÷µÄÐÔÄÜÓÐÏÞ£¬·¢ÏÖ×Ô´ÓʹÓÃÁË Castle + Nhibernate Ö®ºó£¬·þÎñÆ÷ÔÚ¸üÐÂwebÕ¾µãÖ®ºóµÄÖØбàÒë¹ý³ÌÌرðÂþ³¤£¬ÓÐʱºò¶¼³¬¹ýÁË1·ÖÖÓ£¬¾¡¹Ü·¢²¼µÄweb³ÌÐòÒ²ÊDZàÒëºÃµÄ¡£ÏÂÃæÊÇwebʹÓõĶ¯Ì¬¿â:
Castle.Core.dll
Castle.DynamicProxy2.dll
Castle.Facilities.AutomaticTransactionManagement.dll
Castle.Facilities.NHibernateIntegration.dll
Castle.MicroKernel.dll
Castle.Services.Transaction.dll
Castle.Windsor.dll
FredCK.FCKeditorV2.dll
Iesi.Collections.dll
log4net.dll
MySql.Data.dll/System.Data.SQLite.dll
NHibernate.dll
UrlRewritingNet.UrlRewriter.dll
ÿ´ÎÎÒµÄwebÏîÄ¿ÓиüÐÂÖØбàÒëºóÉú³ÉµÄweb.dllÉÏ´«µ½·þÎñÆ÷£¬·þÎñÆ÷w3p¾Í»áÖØÆô£¬cscÎÒµÄwebĿ¼ÏµÄÎļþ£¬Õû¸ö¹ý³ÌÕæÊÇÂþ³¤µÄÎÞ·¨ÈÌÊÜ¡£
[²»ÖªµÀ¸÷λ´óÏÀÓÐûÓÐʲôºÃµÄ½¨Òé]
ºóÀ´Ïëµ½°ÑÉÏÃæµÄÄÇЩ¶¯Ì¬¿â·ÅÈë GAC ÖУ¬»á²»»á¼õÉÙÖØÆôÐèҪʱ¼ä(ʵ¼ùÖ¤Ã÷ûÓÐÃ÷ÏԵı仯)¡£
±¾ÎÄûÓнâ¾öµ±³õµÄÎÊÌ⣬µ«ÊÇÒòΪÉæ¼°µ½Ò»¸öÔÚ asp.net ÖÐÒýÓôæ·ÅÔÚGACÖеĵÚÈý·½¶¯Ì¬¿âµÄÎÊÌ⣬ËùÒÔ»¹ÊǼǼÏÂÀ´(:-)Õâ²ÅÊDZ¾ÎÄÖصã)¡£
ÉÏÃæËùÓеĶ¯Ì¬¿â¶¼ÊÇÇ©¹ýÃûµÄ£¬·ÅÈëGACµÄ¹ý³Ì£º
1. ×¢²áµÚÈý·½¶¯Ì¬¿âÈëGAC
gacutil -i Castle.Core.dll
gacutil -i Castle.DynamicProxy2.dll
gacutil -i Castle.Facilities.AutomaticTransactionManagement.dll
gacutil -i Castle.Facilities.NHibernateIntegration.dll
gacutil -i Castle.MicroKernel.dll
gacutil -i Castle.Services.Transaction.dll
gacutil -i Castle.Windsor.dll
gacutil -i FredCK.FCKeditorV2.dll
gacutil -i Iesi.Collections.dll
gacutil -i Intelligencia.UrlRewriter.dll
gacutil -i log4net.dll
gacutil -i MySql.Data.dll
gacutil -i NHibernate.dll
gacutil -i System.Data.SQLite.dll
gacutil -i UrlRewritingNet.UrlRewriter.dll
Õâ¸ö¹ý³Ì±È½ÏÈÝÒ×£¬gacutil ¿ÉÒÔÔÚ .net framework µÄ sdk ÏÂÕÒµ½£¨ÔÙ·Ö·¢°ü£©
2. ÖØж¨ÒåwebÏîÄ¿¶ÔµÚÈý·½¶¯Ì¬¿âµÄÒýÓ÷½Ê½£ºÖ±½ÓÒýÓà GAC
ÕâÀïÓöµ½ÁíÍâÒ»¸öÎÊÌ⣬ vs2005ÖÐÎÞ·¨ÒýÓõ½×Ô¼º¶¨Òåµ½GACµÄµÚÈý·½¶¯Ì¬¿â£¬³ý·Ç×öÈçÏÂÉ趨£º
¼ÙÉè ×Ô¼º¶¨ÒåµÄµÚÈý·½¶¯Ì¬¿â´æ·ÅÓÚ£º c:\3rdlibs
ÐÞ¸Ä×¢²á±í£ºHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
ÔÚÕâ¸öÏîĿϼÓÈëÒ»¸öÏ²¢Ö¸Ïò c:\3rhlibs
ÏÖÔÚ¿ÉÒÔÔÚÎÒÃǵÄwebÏîÄ¿ÖÐÒýÓõÚÈ


Ïà¹ØÎĵµ£º

ASP.Net Ò³Ã滺´æƬ¶ÎʹÓü¼ÇÉ

Ò³Ã滺´æʹÓÃOutputCacheÖ¸Áî¡£ÆäÖÐDurationºÍVaryByParamÌØÐÔÊDZØÐëµÄ¡£ Location¿ØÖÆÒ³Ã滺´æµÄλÖÃLocationº¬ÒåAnyĬÈÏÖµ¡£Òâζ×ÅÒ³ÃæµÄÊä³ö¿ÉÒÔ»º´æÔÚ¿Í»§¶Ëä¯ÀÀÆ÷£¬»º´æÔÚÈκÎ"ÏÂÓÎ"µÄ¿Í»§¶Ë£¨Èç´úÀí·þÎñÆ÷£©£¬»ò»º´æÔÚWeb·þÎñÆ÷±¾ÉíClientÖ¸Ã÷Êä³ö»º´æÖ»ÄÜ´æ´¢ÔÚ·¢³öÇëÇóµÄ¿Í»§¶Ë£¨¼´ä¯ÀÀÆ÷£©µÄ±¾µØ»º´æÖÐDownstreamÖ ......

ʵÏÖ´Óµ¯³ö´°¿ÚÖÐÑ¡ÔñÖµ (asp.net C#)

ÔÚAsp.netÖУ¬´ÓAÒ³ÃæÖе¯³öBÒ³Ã棬ÔÚBÒ³ÃæÖÐÑ¡ÔñÊý¾Ýºó£¬¹Ø±Õ²¢½«Êý¾Ý¸üе½AÒ³Ã棬ÊÇÒ»ÖÖ³£Óõķ½Ê½¡£Ö»ÊÇÎÒ¶ÔJavascript²»ÊìϤ£¬ËùÒÔµ·¹ÄÁËÒ»ÏÂÎ磬ÖÕÓÚÓÐÁËÒ»µã³É¼¨¡£
¡¡¡¡²âÊÔÏîÄ¿ÓÐÁ½¸öÒ³Ã棺Default.aspx¼°Default2.aspx£¬ÔÚDefault.aspxÒ³ÃæÉÏÓÐÒ»¸öTextBox1¼°Ò»¸öButton1£¬Button1ÓÃÓÚ´¥·¢Default2.aspx£¬TextBox ......

asp.net ÍøÒ³´«²ÎµÄ¼¸ÖÖ³£Ó÷½Ê½

asp.net ÍøÒ³´«²ÎµÄ¼¸ÖÖ³£Ó÷½Ê½
µÚÒ»ÖÖ£ºQueryString
//½«Ô´Ò³Ãæstart.aspxÖеÄlable ºÍtextboxÖеÄÄÚÈÝ´«µ½end.aspxÒ³ÃæÖР ²¢ÔÚÆälable ºÍtextboxÖÐÏÔʾ´«¹ýÀ´µÄÄÚÈÝ
   Ô´Ò³Ãæ´úÂ룺
protected void Button1_Click(object sender, EventArgs e)
    {
    & ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë

javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElement;
var objs = document.getElementsByTagName('INPUT');
for(var i=0; i< objs.length; i++)
{
if(objs[i].type.toLowerCase() == 'submit')
{
objs[i].disabled = true;
}
} ......

ASP.NETÒ³Ãæˢз½·¨×ܽá

private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script>" ); } ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ