473,395 Members | 1,386 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,395 software developers and data experts.

Viewstate and LoadControl

Hello,

I am loading a datagrig, which has a placeholder in it
dynamically with a usercontrol. The usercontrol is
actually another datagrid. Once loaded it looks like a
nested grid. Each row in the main grid contains a button
which expands the nested grid for that row on the server-
side. I am loading the usercontrol when the user has
pressed that button. Now the problem is when the user has
one grid already expanded and wants to expand another one,
then the previous grid looses his data. I think that
somehow I need to maintain the viewstate, but I am not
sure about that. Any help is very appreciated.

Thanks
Nov 19 '05 #1
1 1533
Anonymous:
I answered this in your other post, please take a peek (also, if this is
urgent, my suggestion of reusing a control is doubly valid).

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Anonymous" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
Hello,

I am loading a datagrig, which has a placeholder in it
dynamically with a usercontrol. The usercontrol is
actually another datagrid. Once loaded it looks like a
nested grid. Each row in the main grid contains a button
which expands the nested grid for that row on the server-
side. I am loading the usercontrol when the user has
pressed that button. Now the problem is when the user has
one grid already expanded and wants to expand another one,
then the previous grid looses his data. I think that
somehow I need to maintain the viewstate, but I am not
sure about that. Any help is very appreciated.

Thanks

Nov 19 '05 #2

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

Similar topics

0
by: Josema | last post by:
Hi to all, I have a webform.aspx and inside i have a dropdown list with autopostback and a place holder... Depending of the selected index that the user selects in the dropdownlist i load a...
1
by: John | last post by:
Hi all, I have a problem with viewstate being maintained. I use LoadControl to load a user control and the data is sent down to the client correctly. However, when I change some data and post...
1
by: et | last post by:
I. Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For...
7
by: John | last post by:
Hi all, I need finality on this once and for all please. I have a main page which contains a couple of placeholders and within these placeholders, depending on what the user presses, I load...
6
by: John | last post by:
Hi all, I am using dynamic user controls within my web app and these controls are loaded into placeholders via the LoadControl method. My problem is this: I have usercontrolA loaded into a...
11
by: Nad | last post by:
Hello, I have a page with two link buttons. When I click on the first one I call server.execute("target.aspx") to view target.aspx on the original page. Then I click on the second link button...
1
by: Gummy | last post by:
Hello, I am loading several user controls dynamically in OnInit() like this: ucListBoxSelections ucLocation = (ucListBoxSelections)LoadControl("UserControls/ucListBoxSelections.ascx");
2
by: Steph | last post by:
Hello, i found a bug ? or an incompetence of my share ! I've 1 aspx and 3 ascx level : as : Default.aspx : PlaceHolder1 < Page_Init : LoadControl(1.ascx) module.ascx : PlaceHolder1 <...
1
by: j-in-uk | last post by:
I have linkButtons on my page, onclick of the link button I want to load the proper usercontrol, this works fine the 1st time I click but when I click the 2nd linkButton I get "Failed to load...
1
by: jelle.huygen | last post by:
Hello, I have a problem in ASP.NET 2.0 with the viewstate of my dynamically added user control. I have reproduced the problem with a very simple user control and a very simple page. On my...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.