Find Jobs
Hire Freelancers

ASP .Net - Help Persistent DataSource After Page Reloads

$30-100 USD

In Progress
Posted almost 13 years ago

$30-100 USD

Paid on delivery
I have a form in ASP .Net with a GridView. The user enters a bar code and selects the number of days from a combo box. The user then clicks a button that will build a DataTable to be used as the DataSource for the GridView. A DataBind is then done. This all works fine. The results are returned and rows are inserted into the GridView. I have code in a Sub called gridView_Sorting to sorter the rows in the GridView when a user clicks on the header. gridView_Sorting gets executed, but the first thing it attempts to do is create a DataTable based on the DataSource from the GridView. The problem is that the DataSource is comes up as Nothing, and the DataTable cannot be built. The sort function does not work because of this. I think the issue has to do with persisting state. I think that when the button is clicked, the page reloads and I'm losing the ability to get the DataSource of the GridView. I need someone to do two things: 1. Send me code that fixes this issue 2. Explain to me what you did to fix the issue, and why ## Deliverables ASP .Net 4.0 VB .Net 4.0 .Net Framework 4.0 Visual Studio 2010
Project ID: 3325284

About the project

10 proposals
Remote project
Active 13 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
See private message.
$17 USD in 1 day
5.0 (10 reviews)
3.7
3.7
10 freelancers are bidding on average $37 USD for this job
User Avatar
See private message.
$17 USD in 1 day
5.0 (101 reviews)
6.4
6.4
User Avatar
See private message.
$17 USD in 1 day
5.0 (91 reviews)
6.0
6.0
User Avatar
See private message.
$51 USD in 1 day
5.0 (92 reviews)
5.5
5.5
User Avatar
See private message.
$21.25 USD in 1 day
4.9 (146 reviews)
5.3
5.3
User Avatar
See private message.
$102 USD in 1 day
4.9 (25 reviews)
5.1
5.1
User Avatar
See private message.
$17 USD in 1 day
4.7 (28 reviews)
4.5
4.5
User Avatar
See private message.
$84.15 USD in 1 day
5.0 (1 review)
3.5
3.5
User Avatar
See private message.
$34 USD in 1 day
4.9 (8 reviews)
3.4
3.4
User Avatar
See private message.
$12.75 USD in 1 day
5.0 (13 reviews)
3.0
3.0

About the client

Flag of UNITED STATES
Danville, United States
5.0
188
Payment method verified
Member since Dec 13, 2006

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.