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

asp.netÖеĹÖÒìÎÊÌ⣿

asp.netÖÐAÁ´½Ó´«ÖÐÎÄÖµ£¬½ÓÊÕʱÂÒÂ룡

ÔÚÓÐЩµçÄÔÉÏÄÜÕý³£½ÓÊÕ£¬µ«ÓÐЩµçÄÔÉÏÈ´²»ÄÜÕý³£½ÓÊÕ£¬

ÇëÎʸ÷λÓÐûÓÐʲô·½·¨£¿
ÓÃsession£¬»òÕ߸ü¸Ä±àÂ룬

default.aspx
C# code:

this.Redirect("hello.aspx?text="+this.this.Server.HtmlEncode("ÄãºÃ"));




hello.aspx
[code=C#
var text = this.this.Server.HtmlDecode(this.Request.QueryString["text"]);
[/code]

default.aspx

C# code:
this.Redirect("hello.aspx?text="+this.this.Server.HtmlEncode("ÄãºÃ"));


hello.aspx
C# code:

string text = this.Server.HtmlDecode(this.Request.QueryString["text"]);


UrlEncode
UrlDecode

or

ÉèÖÃÕ¾µãµÄ±àÂëÀàÐÍΪgb2312


ËüÖ»ÊÇ×îºóÒ»¸ö×ÖÂÒÂë£¬Ç°ÃæµÄ²»»áÂÒÂë

ÉèÖñàÂë

5Â¥µÄÁ½ÖÖ·½·¨¶¼¿ÉÒÔ

ÉÏÃæ¶¼»Ø´ðÁË


Ïà¹ØÎÊ´ð£º

aspÉý¼¶µ½asp.net£¬ºÃ¶à½á¹¹¶¼²»ÖªµÀÈçºÎת»»

aspÏÂÃæ£¬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦Äܰ´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......

ASP.NET³õѧÕßÎʸöÍ϶¯¿Ø¼þµÄÎÊÌâ···

¸ÕѧÕâ¸ö£¬ËùÒÔÒ»¶ÑÎÊÌâÊÇûÃ÷°×µÄ
ÉèÖÃÁËCSSµÄÑùʽ£¬¸ü¸ÄΪÁ˾ø¶Ô¶¨Î»
µ«ÊÇÓÐʱºò¿Ø¼þ»¹ÊÇû°ì·¨Í϶¯···Ò»»á¿ÉÒÔÒ»»á²»¿ÉÒÔµÄÕâÊÇΪʲô°¡£¿
ÎÒÓõÄÊÇVS2008

²»ÊǺÜÃ÷°×£¬ÏÖÔÚÊÇÓÐÐ ......

ASP.NET´úÂëÊÇ·ñ¿ÉÒÔ±£ÃÜ

ÀýÈçÓÐÁ½¶Î´úÂë
FirstPageCodeBehind.aspx
HTML code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FirstPageCodeBehind.aspx.cs" Inherits="FirstPag ......

asp.net ÖÐͼƬƴ½Ó

ÎÒÔÚasp.netÖÐÎÒÒª½«ËÄÕÅ»òËÄÕÅÒÔϵÄͼƬƴÔÚÒ»Æð£¬ÈçºÎʵÏÖ£¿Í¼Æ¬ÊÇÎÒ´ÓÊý¾Ý¿âÖжÁ³öÀ´µÄ¶þ½øÖÆ¡£µ¥ÕŶÁ³öÀ´µÄ´úÂëÈçÏ£ºC# code:
DataHelper dh=new DataHelper();
System.Drawing.Image image = dh.g ......

ÔÚasp.netÖÐ ÔõÑùÈ¡µÃFileUploadÎļþµÄÍêÕû·¾¶

ÈçÌ⣡
FileUpload1.PostedFile.FileName

ÎÒÕâÑùдÁË  µ«ÊÇ»¹ÊÇ»ñµÃµÄÊÇÒ»¸öÎļþµÄÃû³Æ£¬FileUpload1.FileName Õâ¸öÒ²ÊÇÒ»Ñù£¡

FileUpload1.PostedFile.FileName

IE ÎÊÌâ

¹¤¾ß-internetÑ¡Ïî-°²È«- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ