Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 25th, 2007, 04:42 AM
Registered User
 
Join Date: Sep 2007
Location: Kolkata, WB, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sid81
Default Session Value Getting Lost

I have developed a page with a lot of web controls. One of the web control requires opening up of a new page to populate values for it.
At that moment, I am using a Session variable to retain the values of the web controls already populated. When I am done with adding values for the web control in new page and closing the same, the control comes back to the first page but the values for the web control is getting lost despite the Session variable being used to repopulate them. What can be the problem? How can I resolve it?

  #2 (permalink)  
Old September 25th, 2007, 10:34 AM
Authorized User
 
Join Date: Oct 2003
Location: São Paulo, SP, Brazil.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to evandro.paula
Default

Can you post the code that involves this web control you are using in the pages (sample: page_load, page_init, etc)? I think this way could be much easier to find out what the problem is about.

Regards.
  #3 (permalink)  
Old October 4th, 2007, 04:14 AM
Registered User
 
Join Date: Sep 2007
Location: Kolkata, WB, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sid81
Default

Hi,
I did a bit of tweaking with the code and the problem seems to got resolved. Thanks for the prompt reply.

  #4 (permalink)  
Old October 13th, 2007, 10:15 AM
Authorized User
 
Join Date: Jul 2006
Location: DongYing, , China.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to abeen
Default

 protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              //problem is here ?
            }
        }

============================================
  Success grows out of struggles to overcome difficulties.
============================================


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 session variable lost totti Pro PHP 3 April 3rd, 2009 11:16 PM
session variable lost after redirec in classic ASP beetle_jaipur Classic ASP Professional 8 November 21st, 2008 02:18 AM
Partial Session Lost kiasemoto Classic ASP Professional 0 January 25th, 2007 03:54 AM
Session variables being lost! LenexaKS ASP.NET 1.0 and 1.1 Basics 12 November 13th, 2006 01:46 PM
lost, please help me out... chriswinn Classic ASP Databases 4 January 26th, 2005 03:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.