Here is the block of code I need to add the upload file code to:
protected void lbtnCompletePrint_Click(object sender, EventArgs e)
{
[login to view URL](this, [login to view URL](), "alert", "CompletePrint();", true);
if ([login to view URL] > 0)
{
try
{
if ([login to view URL] != "0" && [login to view URL] != "0")
{
query = "UPDATE [tbl_ShipOrders] SET [BillPrice]=" + [login to view URL] + ", [DiscountPr]=" + [login to view URL] + ", [Consignment_Notes]='" + [login to view URL] + "' WHERE Ship_order_ID=" + ((string[])Session["BILLSTATE"])[0];
DataAccess.UpdateRecord_TMS(query);
string[] emailaddresses = new string[2];
emailaddresses[0] = ((string[])Session["BILLSTATE"])[16];
emailaddresses[1] = ((string[])Session["BILLSTATE"])[17];
DateTime idate = [login to view URL](((string[])Session["BILLSTATE"])[1]);
string emailsentstatus = [login to view URL];
string pdfurl = [login to view URL];
if (![login to view URL]())
{
pdfurl = PdfGeneration(((string[])Session["BILLSTATE"])[0] + "-" + [login to view URL]() + "-" + [login to view URL]() + "-" + [login to view URL]());
string Body = "<h1></h1><br />" +
"lower word count";
emailsentstatus = [login to view URL](emailaddresses, "STC Bill Report", Body, pdfurl);
}
lbUpdateCalculations_Click(null, null);
[login to view URL]("BILLSTATE");
[login to view URL](this, [login to view URL](), "alert", "CompletePrint();", true);
[login to view URL](GetType(), "Error Occurs!", "alert('" + emailsentstatus + "')", true);
}
}
catch (Exception ex)
{
[login to view URL]("Error Occurs when completing bill. " + [login to view URL], [login to view URL]);
return;
}
}
else
{
[login to view URL]("Can't complete! You have to Add Products!", [login to view URL]);
}
}
Here is the upload file code:
if ([login to view URL])
{
if (![login to view URL]([login to view URL], GeneralMethods.FileTypes_Image_Only))
{
[login to view URL]("Please upload only image.", [login to view URL]);
return;
}
}
string date = [login to view URL];
if ([login to view URL] > 0)
{
[login to view URL] = dvsql[0]["ship_order_id"].ToString();
date = dvsql[0]["idate"].ToString();
}
//Upload Document
try
{
[login to view URL](fileUpload, GeneralMethods.DocumentType_ReceiptsExpenses, [login to view URL], date);
}
catch (Exception ex2)
{
[login to view URL]("Error occurs when uploading document: " + [login to view URL](), this);
}
I am having issues with the form code using GridView1 and not dvsql, I am rusty on this so I need someone to put the upload code into the block of code so it uploads the file into the correct path when pressed.
Hello sir,
Thanks for watching my message. I have huge experience in asp.net, webforms, MVC , file upload control.
I can implement file upload control in your bill form.
Please ping me.
Warm Regards
Akshay Bhagwat.
$61 USD in 1 day
5.0 (18 reviews)
5.2
5.2
2 freelancers are bidding on average $43 USD for this job
Hello, I can help you by modifying the web form and implementing the upload file making it work well.
Contact me through chat
I have experience in simile projects using VISUAL STUDIO, ADO NET EF, LINQ TO SQL SQL SERVER MY SQL, WEB API, WCF, C #, VB.net among others