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. Advertising

  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. 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. Chris
    Replies:
    1
    Views:
    346
    Chris
    May 7, 2007
  2. Chris

    Formview within Formview

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

    FormView Insert Session value

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

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    621
    David Thielen
    Jun 16, 2006
  5. Jason
    Replies:
    0
    Views:
    204
    Jason
    Oct 24, 2006
Loading...

Share This Page