1 Followers
26 Following
hailstorm82

hailstorm82

SPOILER ALERT!

Asp.net the best way to upload files towards the server. Txt

recover formatted hard drive free ;
usingSystem.Linq;
usingSystem.Net;
usingSystem.Internet.UI;
usingSystem.Internet.UI.WebControls;
usingSystem.IO;
namespaceSuAn
publicpartialclassWebForm1:System.Web.UI.PageprotectedvoidPage_Load(objectsender,EventArgse)protectedvoidButton1_Click(objectsender,EventArgse)if(this.filepost.PostedFile.FileName=='')Response.Write('Upload file cannot be Empty!') recover formatted hard disk ;trystr=='ppt')Response.Write('Sorry, this type of file cannot be Upload! ');return;if(this.filepost.PostedFile.ContentLength2048)Response.Write('Sorry, the file cannot exceed 2K');return;this.filepost.PostedFile.SaveAs(serverPath);//Upload save file this.lblMessage.Text=buider.ToString();catch(Exceptionex)Response.Write(ex.Message);