ASP.Net 1.1 ÈçºÎÉÏ´«Îļþ
ASP.Net 1.1 ûÓÐ.Net2.0ÌṩµÄFileUpload¿Ø¼þ£¬ÐèÒªÌí¼ÓÒ»¸ötypeΪfileµÄhtml input¿Ø¼þ£¬È»ºóÔÙдһ¸ö
¶ÀÁ¢µÄupload button¡£ÊµÀýÈçÏ£º
1. HTML
<input id="txtAttch" type="file" runat="server">
<br>
<input id="cmdUpload" type="button" value="Upload" runat="server">
2. Server
Private Sub cmdUpload_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.ServerClick
Dim cFile As String
Dim cFileName As String
Dim cServerFilePath As String = Server.MapPath("") & "\MailAttachments\"
cFile = Me.txtAttch.PostedFile.FileName
cFileName = System.IO.Path.GetFileName(cFile)
cServerFilePath = cServerFilePath & cFileName
Me.txtAttch.PostedFile.SaveAs(cServerFilePath)
PopMsg("Upload Finish")
End Sub
Ïà¹ØÎĵµ£º
ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.locatio ......
//ʹÓÃÑéÖ¤·½·¨
if (!InputValidator(txt.Text.Trim()))
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myScript", "alert('\"Îı¾¿ò\"ÊäÈëÁË·Ç·¨×Ö·û»òÊäÈ볬³¤£¡');", t ......
ÏÈÉý¼¶ieµ½5.5°æÒÔÉÏ
1 ÏÂÔØÖÐÎÄ°æIE6:http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/ie6setup.exe
2 ÏÂÔØmdac°²×° Ö±½ÓÏÂÔØ2.8ÖÐÎÄ°æ:http://download.microsoft.com/download/8/b/6/8b6198c0-fe96-4811-9d81-
d5c76dd5fea8/MDAC_TYP.EXE
3 È»ºóÏÂÔØ.NET Framework 1.1°æ¿ÉÔ ......
1.GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò£º
Ч¹ûͼ£º
1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£»
2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£
3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£
2.GridViewÑ¡ÖУ¬±à¼£¬È¡Ïû£¬É¾³ ......