473,396 Members | 2,037 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.

Switching View inside MultiView control

I have a MultiView control with 2 Views in it. In the first View I have
a form which contains sereral input controls and a custom UserControl.
In this custom UserControl I have a button which causes a postback.
When the click event gets handled I am grabbing the MultiView instance
from a parent control (using a recusive method).

When i change the active View on this MultiView control nothing
happens. The second time you click the button a a error message pops up
saying the viewstate is invalid. I think this happens because the
MultiView is done loading and setting a new active view doesn't cause a
'reload'. How can I force a reload of this MultiView control so the new
active View will be visible instead of the current View?

I tried the databind method on the MultiView but that doesn't change
the output. Also using an event based approach doesn't work. Any
thoughts?

Thnx in advance

Jul 17 '06 #1
2 2651
I'm really stuck with this atm. Does anybody have some
suggestions,remarks etc.

Jul 20 '06 #2
Solved it myself. The problem occured because I used Atlas and a custom
control which hadn't got a a container element with the control id as
attribute. What happened was that Atlas tried to update the control in
another update panel which corrupted the viewstate and didn't show up
the screen.

The container element is default a span element in ASP.net. Since a
span elements around a table isnot valid html I overrided
RenderBeginTag and RenderEndTag and left the methods empty so no span
was generated. Solved this by overriding only the RenderBeginTag and
rendered a div begin tag.

Jul 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cetin | last post by:
Hi, I have a problem with the MultiView control. Hopefully you can help me. I made a asp page with a MultiView on it. The MultiView has three views (with some controls). I made a method that...
3
by: phalanx_28 | last post by:
How would I go about configuring my Menu and MultiView controls to display a different .aspx file for each View I have? In other words, I have 5 "tabs" and each "tab" has it's own .aspx file...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
0
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi folks, Bit of a newbie to ASP.NET but starting to get the swing of things - but have come upon a stumbling block. I'm developing an entire site in ASP.NET v3.5 AJAX. I've got a MultiView and...
1
by: Nathan Sokalski | last post by:
When I include a MultiView control in my application, I receive the following error: MultiView cannot have children of type 'Label'. It can only have children of type View. I receive the...
4
by: cvijaykrishna | last post by:
hi, i am having an apllication which has a multiview if i check one checkbox in a view other checkboxin another view should get checked . i am using server side script and getting it but for...
1
by: pbd22 | last post by:
Hi. In view "firstView" I have some HTML. When I transition to "secondView", the "firstView" HTML is still there when I view source even though the "secondView" HTML has been rendered on the...
2
by: pbd22 | last post by:
Hi. Has anybody seen this? I have three views in a multivew: <asp:MultiView runat="server" ID="multiView" ActiveViewIndex="0"> <asp:View runat="server" ID="loginView"> and so on.
0
by: wfsmith | last post by:
I have a page with a MultiView control and 6 Views. Each view has a User control that contains various form controls (dropdowns, textboxes and CascadingDropDown Ajax.Net controls). When the...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.