ds and Session

Discussion in 'ASP .Net Datagrid Control' started by anonymous, Apr 8, 2005.

  1. anonymous

    anonymous Guest

    Why when I am adding a row to a local ds my session
    rows.count increses? What is incorrect in this code?
    Dim ds As DataSet
    Dim dt As DataTable
    ds = Session(pageName)
    dt = ds.Tables(pageName)
    Dim dr As DataRow
    dr = dt.NewRow
    dr("NameLast") = ""
    dr("NameFirst") = ""
    dr("NameMiddle") = ""
    dt.Rows.Add(dr)
    anonymous, Apr 8, 2005
    #1
    1. Advertising

  2. anonymous

    Scott M. Guest

    What is stored in Session(pageName)?



    "anonymous" <> wrote in message
    news:17e001c53c70$1f246610$...
    > Why when I am adding a row to a local ds my session
    > rows.count increses? What is incorrect in this code?
    > Dim ds As DataSet
    > Dim dt As DataTable
    > ds = Session(pageName)
    > dt = ds.Tables(pageName)
    > Dim dr As DataRow
    > dr = dt.NewRow
    > dr("NameLast") = ""
    > dr("NameFirst") = ""
    > dr("NameMiddle") = ""
    > dt.Rows.Add(dr)
    Scott M., Apr 9, 2005
    #2
    1. Advertising

  3. anonymous

    anonymous Guest

    dataset
    >-----Original Message-----
    >What is stored in Session(pageName)?
    >
    >
    >
    >"anonymous" <> wrote

    in message
    >news:17e001c53c70$1f246610$...
    >> Why when I am adding a row to a local ds my session
    >> rows.count increses? What is incorrect in this code?
    >> Dim ds As DataSet
    >> Dim dt As DataTable
    >> ds = Session(pageName)
    >> dt = ds.Tables(pageName)
    >> Dim dr As DataRow
    >> dr = dt.NewRow
    >> dr("NameLast") = ""
    >> dr("NameFirst") = ""
    >> dr("NameMiddle") = ""
    >> dt.Rows.Add(dr)

    >
    >
    >.
    >
    anonymous, Apr 12, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob

    Global Session Variables and Session State

    Earl Teigrob, Dec 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,272
    Alvin Bruney
    Dec 17, 2003
  2. Jeff Smythe
    Replies:
    3
    Views:
    1,239
    Jeff Smythe
    Jan 2, 2004
  3. Carpe Diem
    Replies:
    3
    Views:
    7,168
    Carpe Diem
    Feb 23, 2004
  4. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,272
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  5. Jazzis
    Replies:
    2
    Views:
    243
    Jazzis
    Sep 23, 2003
Loading...

Share This Page