Posted on: 6/16/2013 9:25:15 AM | Views : 387

Project: I am trying to make a small website for my school buddies where they can store basic info about them. Have implemented Scott Mitchell's method so far.
Problem : I want to let user store a profile pic of him. Doing so by utilising storage in file system and saving the path in database. 
<asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" Text="Upload" onclick="Button1_Click" /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> protected void Button1_Click(object sender, EventArgs e) { string virtualFolder = "~/UserPics/"; string physicalFolder = Server.MapPath(virtualFolder); string fileName = Guid.NewGuid().ToString ...

Go to the complete details ...