Example of Image Upload

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
In need of some credit
In need of some credit
Posts: 5
Joined: Fri Sep 14, 2007 6:33 am

Example of Image Upload

Postby hanusoft » Fri Sep 21, 2007 6:55 am

Here we are uploading images in File System and storing path in the database.

Code (ImageUpload.aspx.cs) :-
private void Button1_Click(object sender, System.EventArgs e)
// Here I am uploading images in Images folder of C drive.
int intResult=0;
string strPath = @"c:\Images\"+Path.GetFileName(File1.PostedFile.FileName);
SqlConnection con = new SqlConnection("server=.;uid=sa;database=pubs;pwd=");
SqlCommand com = new SqlCommand("Insert into Category(name,imagepath) values(@name,@imagepath)",con);
intResult = Convert.ToInt32(com.ExecuteNonQuery());
if(intResult != 0)
Response.Write("Record Inserted.");


Postby shepss » Thu Jun 24, 2010 10:34 am

that's the best way to mention it in your CV resume, if you are a developer

Return to “wx.NET”

Who is online

Users browsing this forum: No registered users and 1 guest