JSÖØÖð´Å¥½Å±¾£¬Ö§³ÖÖØÖÃASP.NET¿Ø¼þ
¿ª·¢Öо³£Óöµ½ÒªÖØÖÿؼþÖµµÃ²Ù×÷£¬ÏÂÃæÐ´Á˳£ÓÃHTML¿Ø¼þµÄÖØÖ÷½·¨¡£²»ÍêÕûµÄ£¬´ó¼Ò¿ÉÒÔÀ©³ä
function ResetControl() {
var v = document.forms[0].elements;
for (var i = 0; i < v.length; i++) {
if (v[i].type == "text") {
v[i].value = "";
} else if (v[i].type == "select-one") {
v[i].options[0].selected = true;
}
}
}
Ïà¹ØÎĵµ£º
Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖà ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......
²âÊÔµÄurlµØÖ·ÊÇhttp://www.test.com/testweb/default.aspx, ½á¹ûÈçÏ£º
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/defa ......
ϵͳ¼òµ¥½éÉÜ£º
ºÜ±ê×¼µÄÅäÖãºasp.net 2.0+SqlServer 2000 or 2005,һЩͳ¼ÆÍ¼²ÉÓõÄÊÇflash¼¼Êõ~¸Õ±ÏÒµµÄʱºòÔÚÒ»¼Òµç×ÓÕþÎñ¹«Ë¾¹¤×÷ʱ¿ª·¢µÄ£¬ÕâÌ×ϵͳǿ¾ÍÇ¿ÔÚËü²»ÊÇÓ¦ÓÃϵͳ£¬¶øÊÇÒ»¸ö¹¤¾ß£¬¿ÉÒÔÔڴ˹¤¾ß»ù´¡ÉÏ£¬¾¹ý¶þ´Î¿ª·¢£¬ÑÜÉú³öÂú×ãÕþ¸®²¿ÃÅÐÅÏ¢»¯ÐèÇóµÄÓ¦ÓÃϵͳ£¡£¡
Õ ......
System.Drawing.Image imgPhoto = System.Drawing.Image.fromFile("ͼƬ·¾¶Ãû");
int sourceWidth = imgPhoto.Width; //ͼƬ¿í¶È
int sourceHeight = imgPhoto.Height; //ͼƬ¸ß¶È
¿Ø¼þÃû.PostedFile.ContentLength &n ......