ASP 1.1: Problem with loosing dataset rows in memory...

Last post 01-18-2007 10:12 AM by Gargoyle. 0 replies.

Sort Posts:

  • ASP 1.1: Problem with loosing dataset rows in memory...

    01-18-2007, 10:12 AM
    • Member
      point Member
    • Gargoyle
    • Member since 01-18-2007, 10:10 AM
    • Posts 1
    Hi all,

    I'm currently working on a small ASP.NET project, but I have very very little experience in ASP...

    The problem I'm facing now is this:
    I have a typed dataset, wich I added to the webpage as a control (Datacontrols -> dataset) called 'myStockArts', type: TDSStockArts (typed dataset).
    I also have a grid (infragistics ultrawebgrid), with 'myStockArts' as datasource.

    There's no database involved or anything, I'm using the dataset to store some values in memory, just like I do when I program winapps.
    Now the problem is, that everytime I add a new row in my grid (databound to 'myStockArts'), my dataset always remains empty.
    I tried to store the dataset in a sessionvar, but it just stays empty:

    [CODE]  
      Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            'Put user code to initialize the page here

            If Page.IsPostBack Then
                If Not Session("StockArts") Is Nothing Then
                    Me.myStockArts = DirectCast(Session("StockArts"), TDSStockArts)
                End If
            End If
            adjustDate()

        End Sub



    Private Sub GridStockArt_UpdateRow(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles GridStockArt.UpdateRow

            Session("StockArts") = Me.myStockArts

        End Sub

    [/CODE]

    What can I do to prevent my dataset to loose it's data?
    Any help is much appreciated, as I'm a newbe to ASP
Page 1 of 1 (1 items)