Asp.Net onclientclick
ÔÚAsp.Net2.0ÖУ¬button¿Ø¼þÌí¼ÓÁËonclientclickÊôÐÔ£¬Í¨¹ýÕâ¸öÊôÐÔ¿ÉÒÔÏÈÖ´Ðпͻ§¶Ë½Å±¾£¬È»ºó¸ù¾Ý·µ»ØÖµÔÙÖ´ÐзþÎñÆ÷¶Ë½Å±¾¡£
ÔÚ¹¤×÷ÖÐÓöµ½ÕâÑùÒ»ÖÖ³¡¾°£ºµã»÷Ò»¸öbuttonºó£¬ÏÔʾһ¸ögif¶¯»Í¼Æ¬£¬È»ºóÔÙÖ´ÐзþÎñÆ÷¶ËµÄ½Å±¾¡£gif¶¯»Í¼Æ¬·Åµ½Ò»¸öÒþ²ØµÄdivÖУ¬µã»÷buttonÒÔºó£¬div»áÏÖÉí£¬ÏÔʾgifͼƬ¡£
ÎÊÌâÊÇ£ºÔÚfirefoxÖÐÊÇÕý³£µÄ£¬µ«ÊÇÔÚieÖÐgifͼƬ¾ÍÊDz»¶¯¡£
¾Íµ½ÍøÉÏËÑË÷£¬´ó²¿·Ö¶¼ËµÊÇÒòΪieµÄÉèÖã¬Ñ¡Ôñ¹¤¾ß--->Ñ¡Ïî--->¸ß¼¶---->¶àýÌå---->²¥·ÅÍøÒ³Öж¯»¡£
¼ì²é×Ô¼ºµÄieÉèÖ㬷¢ÏÖÉèÖÃÊÇûÓÐÎÊÌâµÄ¡£
È»ºó£¬×Ô¼ºÏë°ì·¨ÑéÖ¤£¬ÔÚinput type=“button” ÖÐÖ´ÐÐÕâ¶Î½Å±¾ÊÇûÓÐÎÊÌâµÄ¡£µ«ÊÇÒ»µ©°ÑÕâ¶Î½Å±¾·Åµ½onclientclickÖÐ,ͼƬ¾Í²»»á¶¯ÁË¡£
ºóÀ´Ï룬ÖØмÓÔØÒ»ÏÂͼƬ¿´»áÔõôÑù£¬¾ÍÔÚimgÉÏÉèÖÃid£¬Ôڽű¾ÖÐÖØÐÂÉèÖÃimgµÄsrcÊôÐÔ£¬¾ÓÈ»¿ÉÒÔÁË¡£
Ïà¹ØÎĵµ£º
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
namespace class_new
{
/// <summary>
/// DataClass µÄժҪ˵Ã÷¡£
/// </summary>
public class DataClass
{
private string strConnection="";
&n ......
ÔÚGridViewÖÐÎÒÃÇ¿ÉÒÔÖ±½ÓÌí¼ÓÒ»¸öCommandFieldɾ³ýÁÐÀ´É¾³ýijÐÐÐÅÏ¢¡£µ«ÎªÁ˱ÜÃâÎó²Ù×÷ÒýÆðµÄÎóɾ³ý£¬ÔÚɾ³ý²Ù×÷ÕßÈòÙ×÷ÕßÔÙÈ·ÈÏÏ£¬ÍêºóÔÙ½øÐÐɾ³ý¡£
¡¡¡¡Ê×ÏÈÎÒÃǸøÎÒÃǵÄGridView Ìí¼ÓÒ»¸öÄ£°åÁУ¬ÈçÏ£º
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
£¼ASP:TemplateField HeaderText="Delete" ShowHeader="False"£¾
£¼ItemStyle ......
ÃüÃû¿Õ¼ä Access
Àࣺ
User
ÊôÐÔ£ºLoginID,UserName,Password,Remark
Role
ÊôÐÔ£ºRoleName Remark(±¸×¢ÐÅÏ¢)
AccessItem
ÊôÐÔ£ºName,Text,Remark
PermissionManager
ÊôÐÔ£º
·½·¨£ºvoid AddUser(string loginID,string password, string remark );void AddRole();Void AddItem(string name,string text,strin ......
GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://www.svnhost.cn/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5 ......
ÎÒ們ÔÚ開發網頁應ÓóÌʽ£¬時³£ÐèҪȥ½âÎö網Ö·(Request.Url)µÄÿ個Ƭ¶Î£¬進ÐÐһЩÅÐ斷¡£ÀýÈç說 "http://localhost:1897/News/Press/Content.aspx/123?id=1#toc
"£¬ÎÒ們ÏëҪȡµÃ網Ö·裡µÚÒ»層Ä¿錄µ ......