SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Another newbie asp.net question about sessions

    Hi,

    I have a page with a textbox and a search button. When you press that button it puts the textbox value into a session called CustomerCode.

    All the content is placed inside Ajax TabContainer/Panels.

    The session is picked up fine if I am using ObjectDataSources or SQLDataSources, but on this page, I am using a data table. It only picks up the previous session.

    I figured this might be a common problem with an easy'ish solution but I have been searching Google and forums for the past few hours with no success!

    Cheers,
    -William

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I appear to have sorted.

    The problem was that the content was in a ascx control page.

    So I moved it to the actual aspx page, but the session still didnt work (well, still kept returning the previous value), so I just told it to look for the text value of the textbox control and that works.

    Bit of a crappy work around but ah well, will just use good old objectdatasources from now on as they work nicely!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •