Scope of Dataset..

  • Thread starter Thread starter BB
  • Start date Start date
B

BB

Hi,
I am new to asp.net. I have created simple page with Grid View . I have
created dataset which is I am using as data dsource for Grid View...Now
question is ...how can I change select command dynamically? what event I
need to write code? In other words..when i create data set is that global
object i can access it any where in my application?
 
BB,
No, the DataSet is not a "global object" any more than is any other object
you create in the code for a page. A web page is stateless - after it's been
generated and the HTML has been rendered by the browser, the Page class that
generated it is long gone.
Look into the use of the ASP.NET Session, Application and Cache classes to
see how to store and retrieve objects in a persistent way.
Peter
 
Peter,
Thank you very much ..I will look into it..still I am
confused..How I can add condtions to dataset runtime? What event I need
to write conditions?When i said I created dataset..here is how i did
it..click on website>Add New Item>Select Dataset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top