asp.netÍøÕ¾ÎÊÌâÇë½Ì
ÎÒÓÃÏÂÃæµÄ·½Ê½µ¯³ö¶Ô»°¿ò
RegisterStartupScript("js", " <script>alert('¶Ô²»ÆðÄúûÓиÃȨÏÞ') </script>");
È»ºóÎÒÔÙË¢ÐÂÒ³Ã棬ҳÃæ»áÌáʾ£º¡°²»ÖØз¢ËÍÐÅÏ¢£¬ÔòÎÞ·¨Ë¢ÐÂÍøÒ³£¬Çëµ¥»÷ÖØÊÔ¡±
C# code:
/// <summary>
/// ÏÔʾÏûÏ¢Ìáʾ¶Ô»°¿ò
/// </summary>
/// <param name="page">µ±Ç°Ò³ÃæÖ¸Õ룬һ°ãΪthis</param>
/// <param name="msg">ÌáʾÐÅÏ¢</param>
public static void Show(System.Web.UI.Page page, string msg)
{
page.RegisterStartupScript("message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
}
/// <summary>
/// ÏÔʾÏûÏ¢Ìáʾ¶Ô»°¿ò
/// </summary>
/// <param name="page">µ±Ç°Ò³ÃæÖ¸Õ룬һ°ãΪthis </param>
/// <param name="msg">ÌáʾÐÅÏ¢ </param>
public static void Show(System.Web.UI.Page page, string msg)
{
page.RegisterStartupScript("message", " <script language='javascript' defer>alert('" + msg.ToString() + "'); </script>");
&n
Ïà¹ØÎÊ´ð£º
ÎÒÒÔÇ°µÄÊý¾Ý¿âÀï´æ´¢µÄÃÜÂëÊÇÓÃASP.NETµÄÒ»¸ö·½·¨¼ÓÃܵģ¬³¤¶ÈÓÐ40λ¡£
ÎÒÏÖÔÚÍøÕ¾»»³ÉASPÁË£¬Òª¶ÔÃÜÂë½øÐÐÆ¥Å䣬ËùÒÔÐèÒª½«ÃÜÂëת»»¡£
²»ÖªµÀÈçºÎת»»¡£
ÔÓмÓÃÜ·½·¨ÊÇ£º
password="123 ......
ÔÚ¹«Ë¾¾Àí¸øÁËÎÒÕâÑùÒ»¸öÏîÄ¿£º
ÏîÄ¿ÒÔÇ°ÒѾ¿ª·¢ÁË£¬ÓÃASP¿ª·¢µÄ£»
ÏÖÔÚ½«ÆäÖÐÒ»¸öÄ£¿éÓÃASP.NETÖØпª·¢£»
ÊÔÎÊ£ºÔõô°ì£¿
Ô½ÏêϸԽºÃ£¬×îºÃÊǽáºÏʵ¼Ê¿ª·¢£¬O(¡É_¡É)Oлл
ÓеÀÀ ......
·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿
RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress
Õâ¸öÊÔ¹ýÁ˲»ÐС£
ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......
asp.net ÖÐÈçºÎʵÏÖ×óÓÒÐÍ¿ò¼Ü
¾ÍÊǵã×ó±ßÌøתµ½Óұ߶԰ɣ¬iframe¿ò¼Ü
ÒýÓÃ
¾ÍÊǵã×ó±ßÌøתµ½Óұ߶԰ɣ¬iframe¿ò¼Ü
¾Í¸úHTMLÒ»ÑùµÄ£¬Òª²»¾ÍÓÃmasterÄ£°åËãÁË
Òâ˼ÊÇÒ»¸öÆÁÄ»2¸öä¯ÀÀÆ÷´°¿Ú£¿Ã»À ......
Èçͼ
ÎÒµÄÒ»¸öSolutionÀï°üº¬Á½¸öProject£¬Ò»¸öÊÇC#Àà¿â¹¤³Ì£¬Ò»¸öÊÇASP.NETÓ¦Óã¬Á½¸ö¹¤³Ì¶¼ÊÇͨ¹ýLinq to SqlÀ´²Ù×÷Êý¾Ý¿â£¬ÏÖÔÚµÄÎÊÌâÊÇÔÚ¸ø¿Í»§Ê¹ÓõÄʱºò£¬Ã»·¨Áé»îÅäÖÃSql·þÎñÆ÷µÄÐÅÏ¢£¬²éÁËÏ£¬Ê¹ÓÃDe ......