Gridview Control not using the label control to filter the query

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I use a session variable that calls the id of a current user "BemsID" and puts it into the Default.aspx forms label control lblBemsId. In my query for the GridView on this page, I filter by whatever Id is in that label control.
When I use a default value the gridview populates correctly, when I dont use a default nothing is populated in the gridview even though the Label Control lblBemsId displays the current ID on the page.

Could really use someones help!!!

I am using Visual Studio 2010
<br/>
<br/>

View the full article
 
Back
Top