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

Asp.net"Ò³Ãæ¼ÓÔØÖÐ"Ч¹ûʵÏÖ(ת)

ÔÚÍøÉÏÕÒÁ˺ö࣬ʵÏÖ·½Ê½´ó¶àÊÇʹÓö¨Ê±Æ÷
¸öÈ˾õµÃ¶¨Ê±Æ÷»áÔì³ÉÒ»¶¨³Ì¶ÈÉϵļÙÏó
£¨È磺¶¨Ê±Æ÷»¹Ã»½áÊøÒ³ÃæÒѾ­¼ÓÔØÍê±Ï£¬»ò¶¨Ê±Æ÷½áÊøºóÒ³Ãæ»¹Ã»¼ÓÔØÍê³É£©
±¾·½·¨ÀûÓõÄÊÇjavascript£¬ÏÈÍøÒ³ÃæÀïÃæÐ´ÈëÒ»¸ö²ã£¬ÏÔʾ¼ÓÔØ¿ò£¬È»ºóµÈÒ³Ãæ½áÊøºó
ÔÚbodyµÄonloadÖÐдÈëʼþ£¬Òþ²Ø¸Ã¶Ô»°¿ò
·½·¨£¨ÎÒµÄϵͳÊǶà¸öÒ³Ãæ£¬ËùÒÔдÁËÒ»¸ö¹«ÓõÄÀàcommon.cs£©£º
ÔÚÀàÀïÃæ¼ÓÈëÈçϺ¯Êý£¨Ò²¿ÉÔÚÿ¸ö´úÂëºóÎļþÖÐдÈ룩£º
#region "Ò³Ãæ¼ÓÔØÖÐЧ¹û"
/// <summary>
/// Ò³Ãæ¼ÓÔØÖÐЧ¹û
/// </summary>
public static void initJavascript()
{
HttpContext.Current.Response.Write(" <mce:script language=JavaScript type=text/javascript><!--
");
HttpContext.Current.Response.Write("var t_id = setInterval(animate,20);");
HttpContext.Current.Response.Write("var pos=0;var dir=2;var len=0;");
HttpContext.Current.Response.Write("function animate(){");
HttpContext.Current.Response.Write("var elem = document.getElementById('progress');");
HttpContext.Current.Response.Write("if(elem != null) {");
HttpContext.Current.Response.Write("if (pos==0) len += dir;");
HttpContext.Current.Response.Write("if (len>32 || pos>79) pos += dir;");
HttpContext.Current.Response.Write("if (pos>79) len -= dir;");
HttpContext.Current.Response.Write(" if (pos>79 && len==0) pos=0;");
HttpContext.Current.Response.Write("elem.style.left = pos;");
HttpContext.Current.Response.Write("elem.style.width = len;");
HttpContext.Current.Response.Write("}}");
HttpContext.Current.Response.Write("function remove_loading() {");
HttpContext.Current.Response.Write(" this.clearInterval(t_id);");
HttpContext.Current.Response.Write("var targelem = document.getElementById('loader_container');");
HttpContext.Current.Response.Write("targelem.style.display='none';");
HttpContext.Current.Response.Write("targelem.style.visibility='hidden';");
HttpContext.Current.Response.Write("}");
HttpContext.Current.Response.Write("
// --></mce:script>");
HttpContext.Current.Response.Write("<mce:style><!--
"


Ïà¹ØÎĵµ£º

ASP.NETÖÐApp_Code,App_DataµÈÎļþ¼ÐµÄ×÷ÓÃ

 
1. BinÎļþ¼Ð
BinÎļþ¼Ð°üº¬Ó¦ÓóÌÐòËùÐèµÄ£¬ÓÃÓڿؼþ¡¢×é¼þ»òÕßÐèÒªÒýÓõÄÈÎºÎÆäËû´úÂëµÄ¿É²¿Êð³ÌÐò¼¯¡£¸ÃĿ¼ÖдæÔÚµÄÈκÎ.dllÎÄ ¼þ½«×Ô¶¯µØÁ´½Óµ½Ó¦ÓóÌÐò¡£
2. App_BrowserÎļþ¼Ð
¸Ã¿ÉÑ¡µÄÎļþ¼Ð°üº¬.browserÎļþ¡£.browserÎļþÃèÊöä¯ÀÀÆ÷(²»¹ÜÊÇÒÆ¶¯É豸ä¯ÀÀÆ÷£¬»¹ÊÇ̨ʽ»úä¯ÀÀÆ÷)µÄÌØ Õ÷ºÍ¹¦ÄÜ¡£
3. ......

Asp.net ºǫ́µ÷ÓÃjs·½·¨(ת)

1. ÓÃResponse.Write·½·¨
¡¡¡¡´úÂëÈçÏ£º
Response.Write("<script type='text/javascript'>alert("XXX");</script>");
´Ë·½·¨È±ÏݾÍÊDz»Äܵ÷Óýű¾ÎļþÖеÄ×Ô¶¨ÒåµÄº¯Êý£¬Ö»Äܵ÷ÓÃÄÚ²¿º¯Êý£¬¾ßÌåµ÷ÓÃ×Ô¶¨ÒåµÄº¯ÊýÖ»ÄÜÔÚResponse.WriteдÉϺ¯Êý¶¨ Ò壬±ÈÈç
Response.Write("<script type='tex ......

ASP.NET µÝ¹é °ó¶¨TreeView

 Ê×ÏÈ¿´Êý¾Ý¿â±í½á¹¹£º
´úÂëÈçÏ£º
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.Htm ......

asp.net(vs2005)ʹÓÃupdatepanel¿Ø¼þÏê½â

  ×î½ü×öÒ»¸öÍøÕ¾£¬ÀïÃæÉæ¼°µ½¼¶ÁªµÄÎÊÌ⣨ÈçÊ¡-ÊУ¬Æ·ÅÆ-ÐͺŵÈ), ÎÒÓõÄÊÇDropDownListÀ´ÊµÏֵģ¬ÉèÖø¸¼¶µÄAutoPostBackÊôÐÔÎªÕæ.È»ºóÔÚËüµÄSelectedIndexChanged()ʼþÀïдÏàÓ¦µÄ´úÂ룬ÕâÑù¾ÍÄÜʵÏÖ¼¶Áª¹ØÏµ£¨µ±È»ÕâÀïҪעÒâIsPostBackµÄÎÊÌ⣩.  ×öºÃÖ®ºóÓÃʱ·¢ÏÖÒ»¸ö·Ç³£²»Ë¬µÄÎÊÌ⣬ÄǾÍÊÇÿ´Î¶¼»áˢУ¬Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ