displaying session value in formview?

Discussion in 'ASP .Net' started by xbound, May 19, 2010.

  1. xbound

    xbound Guest

    I have a session object (I.e. Session("message")) passed on from the first
    web page to the second web page. In the second page I have a formview
    object. For formatting reason I would like to display the session value
    WITHIN the formview. All other values in the formview are drawn from
    database via a sql select statement.

    So far it doesn't work. Is it possible?
     
    xbound, May 19, 2010
    #1
    1. Advertisements

  2. xbound

    Mr. Arnold Guest

    xbound wrote:
    > I have a session object (I.e. Session("message")) passed on from the
    > first web page to the second web page. In the second page I have a
    > formview object. For formatting reason I would like to display the
    > session value WITHIN the formview. All other values in the formview
    > are drawn from database via a sql select statement.
    >
    > So far it doesn't work. Is it possible?


    ASP.NET developers use session variables all the time to populate form
    controls, even passing the variable from one form to another form in a
    session.

    Maybe, the session variable is empty.string when you're trying to use it
    to populate a control.
     
    Mr. Arnold, May 19, 2010
    #2
    1. Advertisements

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?RGlmZmlkZW50?=
    Replies:
    3
    Views:
    998
    Juan T. Llibre
    May 13, 2005
  2. Jon   Paal
    Replies:
    2
    Views:
    679
    Jon Paal
    Mar 17, 2006
  3. Chris
    Replies:
    1
    Views:
    453
    Chris
    May 7, 2007
  4. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    822
    Chris
    May 19, 2007
  5. d-42

    FormView Insert Session value

    d-42, Apr 16, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    502
  6. David Thielen

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    937
    David Thielen
    Jun 16, 2006
  7. Jason
    Replies:
    0
    Views:
    329
    Jason
    Oct 24, 2006
  8. .Net Sports

    Session object value not displaying

    .Net Sports, Jul 6, 2009, in forum: ASP General
    Replies:
    7
    Views:
    382
    .Net Sports
    Jul 7, 2009
Loading...