Hi,
I have this code in my AdminWebPageDesign:
protected void btnUpload_Click(object sender, EventArgs e)
{
if ((TextFileUpload.HasFile) && (TextFileUpload.PostedFile.ContentLength <= 1048576))
{
string FileName = Path.GetFileName(TextFileUpload.PostedFile.FileName);
DateTime FileUploadTime = DateTime.Now;
try
{
//Save files to disk
TextFileUpload.SaveAs(Server.MapPath("ClientImage/" +
TextFileUpload.FileName));
//Add Entry to DataBase
string connectionString = "Integrated Security=true;" + "Initial Catalog=master;" +
"Data Source=farhan\\sqlexpress"; //Connection String
SqlConnection con = new SqlConnection(connectionString);
string strQuery = "update Me ...
Go to the complete details ...