469,900 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,900 developers. It's quick & easy.

WebControl PostBack Problem

Hey guys, I will try and keep this as concise as I can. Basically I am developing a site which uses a Wizard Control (dynamically generated from a database) as a search form linked to a results page which takes out all the information from the wizard and searches the database for matching items. I cannot make use of javascript, sessions OR cookies and so I am totally reliant on viewstate for the whole operation.

For this reason my wizard and results page are all one physical aspx page and everything is handled through postbacks to retain data. I have come to a problem though. I am now trying to implement paging for my results page. I cannot use hyperlinks for this as they do not postback and hence I lose all the data entered in my wizard! My solution to this was to try to design my paging solution as a composite control.

I have tried using both the CompositeControl AND WebControl napespaces but whatever I try, if I click one of the buttons in my composite/webcontrol, the click handler fails to register the click and my page simply re-submits. I am implementing INamingContainer and I've tried using the control type described here:


I just cannot figure out the issue! If anyone has any ideas I would be very greatful to hear them!

Thanks in advance, James Ward.
Oct 18 '07 #1
0 732

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Gary Rynearson | last post: by
1 post views Thread by Dariusz Tomon | last post: by
reply views Thread by Jose Fernandez | last post: by
reply views Thread by jimmcward | last post: by
1 post views Thread by Andre | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.