protected void btnSubmit_Click(object sender, EventArgs e)
{
Name = txtName.Text;
Price = txtPrice.Text;
Vendor = txtVendor.Text;
Frequency = txtFreqForReq.Text;
Qty = txtQty.Text;
Description = txtDescription.Text;
Currency = txtCurrency.Text;
FilePath = "";
if (File.HasFile)
{
string image_1 = Path.GetFileName(File.FileName);
if (image_1 == "")
{
FilePath = "";
}
else
{
//Path for Live...Start
File.SaveAs(@"\\10.201.64.139\Files\NewItemRequest\" + image_1);
FilePath = @"\\10.201.64.139\Files\NewItemRequest\" + image_1;
//Path for Live...End
}
}
txtName.Text = "";
txtDescription.Text = "";
txtPrice.Text = "";
txtVendor.Text = "";
txtFreqForReq.Text = "";
txtQty.Text = "";
txtDescription.Text = "";
txtCurrency.Text = "";
}
here is the code some time its works in first click and some time its works in two three click
Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator