RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Strange thing... URGENT

Join Date: May 2005
Posts: 3
Reputation: rinyunzen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rinyunzen rinyunzen is offline Offline
Newbie Poster

Strange thing... URGENT

  #1  
May 23rd, 2005
Hello there!

This is my firts post, and I'm happy of finding a site like this.

I have a little trouble with .net. I'm programming a site (i mean webforms) and something very weird happens.

If I have two webforms, both of them connects to a DB and they use the info from that DB to fill some combos and listboxes...

Imagine that I have a webform to register clients and another one to register client's type.

So, if a get to client's type and register, there's a listbox on the top of the webform that has to be reloaded. I can do a trick there and clear the listbox and make a sql statement to fill it again with the new info.

In fact, the Page_load procedure does the same thing when the webform starts. (I mean fills the listbox with the info registered already)

The problem comes when I use the other webform, I do something and return the webform I was using before. The info in the listbox is OLD. I tried to debbug there and... what was my surprisse???? The webform skips the Page_Load procedure!!! (At least if I don't type the F5 key to reload)

I REALLY NEED THAT THIS THING DOESN'T HAPPEN... because the users that are going to use this, don't know F5 key.

I friend said that I must enable the sesion state and the view state for this...

What do you suggest... I REALLY NEED HELP
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:24 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC