I have the following code which creates a DataSet. The GridView that follows it was put there so that when I saw the GridView fill with the correct information I would know that the DataSet existed and was working correctly. It did.
My question is, I want to do this in a class in the App_Code folder, rather than doing it on the code behind page, so that I can write the code once and several pages can "call" it. Is there a way I can do this?
When I tried putting it in a class it didn't give me any errors but when I put the GridView part on a code behind page I immediately was given an error that the DataSet named movieds did not exist. I'm looking for discussion help or a link to an example that will help me to use this to make a class that any page's code behind can utilize.
Thank you for your help with this. The code I have is below (I was thinking you wouldn't need it, but just in case:)
...
Go to the complete details ...