473,396 Members | 1,766 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.

2.0 beta 2: Disappearing Controls

Hello Fellow Masochists ;-)

In the MasterPage I've used a control (LinkButton1) in the 'header' region
to function as a tab that displays another control (LinkButton2).
LinkButton2 is located within a panel (Panel1) and I control the display of
LinkButton2 by modifying the Panel1.Visibile property.

When LinkButton2 is clicked it loads content as expected but LinkButton2
disappears after its click event is raised and the page is posted back to
get and load the content page into the MasterPage ContentPlaceHolder.

LinkButton2 appears in the Trace control tree and when displayed by the
LinkButton1 click event LinkButton2 has Render Size and View State size
values. When LinkButton2 is clicked to load the content page LinkButton2
disappears from the HTML source, it is not displayed by the UI and its
Render Size and View State values are zeroed out of the Trace control tree.

I've tried using the FindControl method and creating a Property both of
which will return values for the LinkButton2.ID and
LinkButton2.NamingContainer but I can not access or set
LinkButton2.Visibility or other properties because the control has somehow
disappeared. A similar behavior occurs with the SiteMapPath.

What could I be missing?

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
Nov 19 '05 #1
7 1091
clintonG wrote:
Hello Fellow Masochists ;-)

In the MasterPage I've used a control (LinkButton1) in the 'header'
region to function as a tab that displays another control
(LinkButton2). LinkButton2 is located within a panel (Panel1) and I
control the display of LinkButton2 by modifying the Panel1.Visibile
property.
When LinkButton2 is clicked it loads content as expected but
LinkButton2 disappears after its click event is raised and the page
is posted back to get and load the content page into the MasterPage
ContentPlaceHolder.
LinkButton2 appears in the Trace control tree and when displayed by
the LinkButton1 click event LinkButton2 has Render Size and View
State size values. When LinkButton2 is clicked to load the content
page LinkButton2 disappears from the HTML source, it is not displayed
by the UI and its Render Size and View State values are zeroed out of
the Trace control tree.
I've tried using the FindControl method and creating a Property both
of which will return values for the LinkButton2.ID and
LinkButton2.NamingContainer but I can not access or set
LinkButton2.Visibility or other properties because the control has
somehow disappeared. A similar behavior occurs with the SiteMapPath.


Without a repro, can't say. How is the LinkButton2 being added? In the
designer or dynamically? Sounds right off like the Panel is not visible any
longer, but as I say, can't say for sure without debugging.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #2
Thanks for responding.

The link buttons and panel control are defined in the MasterPage.

I have no idea how to debug this runtime anomaly other than observation
using trace which is why I've posted seeking insight from others. What
debugging approach would you suggest?

<%= Clinton Gallagher
"JIMCO Software" <co*******@jimcosoftware.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
clintonG wrote:
Hello Fellow Masochists ;-)

In the MasterPage I've used a control (LinkButton1) in the 'header'
region to function as a tab that displays another control
(LinkButton2). LinkButton2 is located within a panel (Panel1) and I
control the display of LinkButton2 by modifying the Panel1.Visibile
property.
When LinkButton2 is clicked it loads content as expected but
LinkButton2 disappears after its click event is raised and the page
is posted back to get and load the content page into the MasterPage
ContentPlaceHolder.
LinkButton2 appears in the Trace control tree and when displayed by
the LinkButton1 click event LinkButton2 has Render Size and View
State size values. When LinkButton2 is clicked to load the content
page LinkButton2 disappears from the HTML source, it is not displayed
by the UI and its Render Size and View State values are zeroed out of
the Trace control tree.
I've tried using the FindControl method and creating a Property both
of which will return values for the LinkButton2.ID and
LinkButton2.NamingContainer but I can not access or set
LinkButton2.Visibility or other properties because the control has
somehow disappeared. A similar behavior occurs with the SiteMapPath.


Without a repro, can't say. How is the LinkButton2 being added? In the
designer or dynamically? Sounds right off like the Panel is not visible
any longer, but as I say, can't say for sure without debugging.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003

Nov 19 '05 #3
clintonG wrote:
Thanks for responding.

The link buttons and panel control are defined in the MasterPage.

I have no idea how to debug this runtime anomaly other than
observation using trace which is why I've posted seeking insight from
others. What debugging approach would you suggest?


I hesitate to offer any suggestions without knowing the details of the
implementation. I generally use Windbg for debugging such things because
it's more low-level than VS.NET. However, VS.NET 2005 makes it easier.

I'm running a much later build than beta 2. Have you tried this with the
August CTP? There were some bugs in the implementation of Master Pages in
beta 2 that were corrected shortly after it was made available.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #4
No kidding? Bugs? I am shocked :-)
I'll go check MSDN Feedback for any reported bugs in MasterPages. Where did
you learn of these bugs?

<%= Clinton Gallagher
"JIMCO Software" <co*******@jimcosoftware.com> wrote in message
news:eo****************@TK2MSFTNGP14.phx.gbl...
clintonG wrote:
Thanks for responding.

The link buttons and panel control are defined in the MasterPage.

I have no idea how to debug this runtime anomaly other than
observation using trace which is why I've posted seeking insight from
others. What debugging approach would you suggest?


I hesitate to offer any suggestions without knowing the details of the
implementation. I generally use Windbg for debugging such things because
it's more low-level than VS.NET. However, VS.NET 2005 makes it easier.

I'm running a much later build than beta 2. Have you tried this with the
August CTP? There were some bugs in the implementation of Master Pages in
beta 2 that were corrected shortly after it was made available.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003

Nov 19 '05 #5
clintonG wrote:
No kidding? Bugs? I am shocked :-)
I'll go check MSDN Feedback for any reported bugs in MasterPages.


Good grief, Clinton. You're a developer. Surely you realize that there are
bugs in a beta product! :)

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #6
But I am a burnout and the truth is I didn't even think of checking MSDN
Product Feedback although I have posted quite a few suggestions and reported
several bugs myself and I don't have a good grasp on referencing controls in
the MasterPage from content pages yet which is why I haven't been able to
debug this runtime anomaly yet. Once I can get or set properties on controls
in the MasterPage I'll be able to deduce why the LinkButton controls are
being removed from the ViewState yet remain in the control tree.

BTW -- I downloaded the August CTP tonight and then promptly sent it to the
Recycle Bin after learning Microsoft has announced a RC1 that they state
will be available this month.

<%= Clinton Gallagher
"JIMCO Software" <co*******@jimcosoftware.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
clintonG wrote:
No kidding? Bugs? I am shocked :-)
I'll go check MSDN Feedback for any reported bugs in MasterPages.


Good grief, Clinton. You're a developer. Surely you realize that there
are bugs in a beta product! :)

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003

Nov 19 '05 #7
clintonG wrote:
But I am a burnout and the truth is I didn't even think of checking
MSDN Product Feedback although I have posted quite a few suggestions
and reported several bugs myself and I don't have a good grasp on
referencing controls in the MasterPage from content pages yet which
is why I haven't been able to debug this runtime anomaly yet. Once I
can get or set properties on controls in the MasterPage I'll be able
to deduce why the LinkButton controls are being removed from the
ViewState yet remain in the control tree.


I'd at least test it with the CTP release. It's considered RC0.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #8

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

Similar topics

2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
4
by: Steve | last post by:
Hi All, I've seen many postings regarding different situations where controls disappear but have never seen a decent solution. Here is the problem. I have a form onto which I am placing some...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
4
by: Frank Rizzo | last post by:
Hello, I have a form that contains the Browser control (via interop, of course) among other things. The browser control is in a Panel control. When I add other controls (such as splitter and some...
0
by: Stephen | last post by:
I am looking at web parts controls in visual web developer. There seems to be something significantly different in beta 2 about these controls. First of all, the content web part control is gone,...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
4
by: c676228 | last post by:
Hi all, the data disappearing problem occurs to all my controls even my regualr web control like asp:textbox, when I click back button in web browser from second page to first page and then click...
1
by: JDeats | last post by:
I have many labels that are disappearing from my form when the user resizes it, they seem to dissapear when certain width/height thresholds are exceeded. I have no code in place purposely trying...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...
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.