Færdiggjort

ASP .Net - Help Persistent DataSource After Page Reloads

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

Evner: .NET, ASP, MySQL, PHP, Software Arkitektur, Software Testning, Visual Basic, Web Hosting, Hjemmeside Management, Hjemmeside Testning

Se mere: what is vb net used for, vb net help, vb.net code help, sort function c, php net framework, need help with asp net, i need help vb net, get asp net, c sort function, box net, what is asp.net, what is a net framework, asp.net framework, combo box code, net help, combo fix, fixes net, visual fixes, datatable, asp fix function

Om arbejdsgiveren:
( 188 bedømmelser ) Danville, United States

Projekt ID: #3325284

Tildelt til:

hozayen

See private message.

$17 USD på 1 dag
(10 bedømmelser)
3.7

10 freelancere byder i gennemsnit $37 på dette job

hoangquocdat

See private message.

$17 USD på 1 dag
(101 bedømmelser)
6.4
abvdbvw

See private message.

$17 USD på 1 dag
(91 bedømmelser)
6.0
envisionops

See private message.

$51 USD på 1 dag
(92 bedømmelser)
5.5
techamit

See private message.

$21.25 USD på 1 dag
(146 bedømmelser)
5.3
edreamzinc

See private message.

$102 USD på 1 dag
(25 bedømmelser)
5.1
izharuislam

See private message.

$17 USD på 1 dag
(28 bedømmelser)
4.5
globussoftteam

See private message.

$84.15 USD på 1 dag
(1 bedømmelse)
3.5
Prath1ba

See private message.

$34 USD på 1 dag
(8 bedømmelser)
3.4
met0555

See private message.

$12.75 USD på 1 dag
(13 bedømmelser)
3.0