Find Jobs
Hire Freelancers

Add Upload file code to an existing form

$10-20 USD

Completed
Posted about 5 years ago

$10-20 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: 19029382

About the project

2 proposals
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
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
User Avatar
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
$25 USD in 1 day
5.0 (90 reviews)
6.2
6.2

About the client

Flag of THAILAND
Bangkok, Thailand
5.0
68
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.