>>Hi,
>>
>>I was wondering. Say you have a DateSet (and table and view) created in the PAGE_LOAD method under condition of
>>
>>
>>if (!Page.IsPostBack)
>>
>>
>>And I want this DataSet to be in "scope" (or available) when the page is posted back (that is in the condition of ELSE, what should I do?
>>
>>I can make the DataSet and Table and View to be a property of the page but that does not solve the problem. Because on the post back the DataSet has nothing.
>>
>>What is the solution to this?
>>
>>Thank you in advance for any suggestions.
>
>You can save it to session:
>
>Session("MyData") = dsMyData
>
>and retrieve as needed:
>
>dsMyData = DirectCast(Session("MyData"), DataSet)
>
>I have shown VB version. I think C# is
>
>Session["MyData"] = dsMyData
>
>and
>
>dsMyData = (dataSet)Session["MyData"]
Bruce,
Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham