I bought a book and wrote some code. Spaghetti code done in codebehind on each aspx page that would probably get a good chuckle on here. The bad thing is that I used some session variables to pass things between pages. They work but on rare occasions, not correctly.
I want to get more professional and write a class file in the app_code folder, but Im not 100% sure on just a few points.
I want to pass an id in the URL and on each page, pass this to the class, and based on this id, return the variables for use where I was using session variables. It will be multiple variables from one query based on the id.
This is the part Im fuzzy on. Am I trying to return objects or out parameters or what?
Im looking at this link and it seem relevant: http://www.dbtutorials.com/retrieve/retrieve-custom-object-vb.aspx
If based on my description of what I want to do, someone could tell me the direction I need to head in, I would so appreciate it.
View Complete Post