how can I retreave a key from view state

Discussion in 'ASP .Net' started by =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?=, Jul 28, 2005.

  1. I have a short datalist that has a key field. on item select i want to open a
    panel that has the details from the record selected. If at all possible i do
    not want to re-run the sp, re-fill the dataset to get the key. It's being
    held ok in viewstate so why not use it? All I need is the key from the record
    selected on the datalist to grab the single record using another sp .
    1. is there a way to pass this key field directly? or
    2. is there a way to retreave the key from viewstate?
    thanks
    kes
    =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?=, Jul 28, 2005
    #1
    1. Advertising

  2. thanks, it was there. I was trying to retreave the key via e.item. (...)
    well, the answer was obvious.
    thanks
    iou1
    kes

    "Eliyahu Goldin" wrote:

    > Is the datalist already in ViewState? If it is not, enable view state. Does
    > the datalist item include the key field? If it is not, include it with css
    > rule display:none. Have done this, you will get the datalist with the key
    > back on every postback, and, if you know what item is selected, you can get
    > the key value from the item.
    >
    > Eliyahu
    >
    > "WebBuilder451" <> wrote in message
    > news:...
    > > I have a short datalist that has a key field. on item select i want to

    > open a
    > > panel that has the details from the record selected. If at all possible i

    > do
    > > not want to re-run the sp, re-fill the dataset to get the key. It's being
    > > held ok in viewstate so why not use it? All I need is the key from the

    > record
    > > selected on the datalist to grab the single record using another sp .
    > > 1. is there a way to pass this key field directly? or
    > > 2. is there a way to retreave the key from viewstate?
    > > thanks
    > > kes

    >
    >
    >
    =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?=, Jul 28, 2005
    #2
    1. Advertising

  3. Is the datalist already in ViewState? If it is not, enable view state. Does
    the datalist item include the key field? If it is not, include it with css
    rule display:none. Have done this, you will get the datalist with the key
    back on every postback, and, if you know what item is selected, you can get
    the key value from the item.

    Eliyahu

    "WebBuilder451" <> wrote in message
    news:...
    > I have a short datalist that has a key field. on item select i want to

    open a
    > panel that has the details from the record selected. If at all possible i

    do
    > not want to re-run the sp, re-fill the dataset to get the key. It's being
    > held ok in viewstate so why not use it? All I need is the key from the

    record
    > selected on the datalist to grab the single record using another sp .
    > 1. is there a way to pass this key field directly? or
    > 2. is there a way to retreave the key from viewstate?
    > thanks
    > kes
    Eliyahu Goldin, Jul 28, 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. =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=

    Can't retreave new value from Datagrid onUpdate Command

    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=, Feb 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    474
    =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
    Feb 3, 2005
  2. Robert Smith
    Replies:
    2
    Views:
    1,218
    Juan T. Llibre
    Apr 27, 2008
  3. Parthiv Joshi
    Replies:
    1
    Views:
    641
    Samuel L Matzen
    Jul 6, 2004
  4. M P
    Replies:
    1
    Views:
    450
  5. Rene Ivon Shamberger

    insert and retreave for std::set()

    Rene Ivon Shamberger, Oct 9, 2012, in forum: C++
    Replies:
    5
    Views:
    322
    Jorgen Grahn
    Oct 10, 2012
Loading...

Share This Page