Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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
 
Old March 10th, 2008, 05:29 AM
Authorized User
 
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default post back

Hi
I have two ascx controls on my aspx blog page. First control display the recent blogs every time the page loads while in the second control there is a drop down list and 26 link buttons from A - Z . When the page loads, It loads the recent blogs on the first control and all the blog titles start from A in the drop down of the second control.
The problem is that when I select any other link button for example link Button “P” , then it calls a postback and loads all the titles start with P but on the other end the first control (that display the recent blogs) display nothing.
I donno how to figure it out ……???


Thanks
Sheraz
 
Old March 10th, 2008, 09:23 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you describe your "recent blogs" user control in more detail?

Is it only loading data when not IsPostback? What are the viewstate settings for the controls within it? It sounds to me like viewstate is turned off and that you are testing for IsPostback so you only load the data on the initial page hit. So when you do a postback from the other user control, this one isn't loading any data, nor restoring any from viewstate.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
post back k.manisha ASP.NET 1.0 and 1.1 Professional 2 February 7th, 2007 02:28 PM
Why does the form always post back? Conch General .NET 9 January 9th, 2007 04:12 PM
Weird post back behavior mjhoagland Classic ASP Professional 3 December 26th, 2006 10:31 AM
Post Back rngrmn Pro VB.NET 2002/2003 1 May 5th, 2006 11:21 AM
Post Back rngrmn VB.NET 2002/2003 Basics 2 April 6th, 2006 01:14 PM





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