Find Jobs
Hire Freelancers

Add Upload file code to a web form

$10 USD

Completed
Posted about 5 years ago

$10 USD

Paid on delivery
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.
Project ID: 19040933

About the project

1 proposal
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi I am interested working on your project to add upload file code on your exsiting ASP.NET app. Regards, Gusti
$10 USD in 1 day
4.9 (4 reviews)
2.9
2.9

About the client

Flag of THAILAND
Bangkok, Thailand
5.0
63
Payment method verified
Member since May 8, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.