Gridview and session data

Associate
Joined
18 Oct 2002
Posts
972
Location
Derby
Hi there.

I am creating a web application which has a lot of add/edit/delete features. The best way I thought would be using datagrids like I usually do. While I have had some time I thought I would check out this super duper Gridview command and fully enough its really good. I have created DataTableAdapters, tested out all my queries and I can bind then to gridviews on my .aspx pages, however I tend to use session variables quite a lot in projects and was wondering how you assign session variables from a gridview? I am working on a network inventory project at work and I want the project set out in the following way:

User details are displayed with an option for the user to click a hyperlinkfield which then takes them to a page which shows them their relevant workstations (this part is fine as we have the querystring). However I then want, on the same page a gridview of all maintenance jobs carried out on that particular machine. The old way I did it was to simply code a method that created an SQL statement, looped round and created the variables, but am I right in thinking this new tableadapter and gridview technology was made so you did not have to code loads of methods that are basically the same apart from the SQL statements.

Any help appreciated.
 
Back
Top Bottom