473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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:

http://www.codeproject.com/aspnet/composite_controls.asp?print=true

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 894

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

Similar topics

3
by: Ken Varn | last post by:
I have created a custom control that derives from WebControl. The custom control assigns other controls dynamically to the Controls collection. Is there anyway that I can recall the lost of...
2
by: Novice | last post by:
I can't seem to get my Custom WebControl to output a button whose click event is associated with a particular method. Here is the code I have right now that contains a panel and there is a...
0
by: Matt Howeson | last post by:
I have a problem with a usercontrol that is dynamically loaded, from a web control and is not restoring it's viewstate properly. Here's the scenario. Within our content management system, I have...
0
by: Gary Rynearson | last post by:
I have an aspx form that conatains a WebControls.Table object. I also have a class inheriting from the WebControl class. That class is instantiated using the Table as a parameter, and adds...
1
by: Dariusz Tomon | last post by:
Hi In my project I have got several webcontrol (ascx). How can I handle with the problem: I would like to have some ASPNET object (DropDownList, InputBox etc.) in one webcontrol (this...
3
by: Bob | last post by:
Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton:...
0
by: Jose Fernandez | last post by:
Hello First of all, excuse my english We all know that in a normal page with codebehind we add a dropdownlist control and we bind() it in the (!ISPOSTBACK), so, we don't need to go to database...
0
by: jimmcward | last post by:
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...
1
by: Andre | last post by:
Hi. There is a way, that I can create a dynamic ID in a WebControl. This doesn´t work, but, looks like what I want: <asp:Button ID="btnAdd<%="1"%>" runat="server" Text="Add Resposta"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.