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

Panel Control "Object reference..."

I'm at my wits end trying to figure out this stupid error.

<asp:Panel ID="pnlDep" runat="server">
<asp:Label ID="lblDep" runat="server" Text="Department:
" />
</asp:Panel>
<asp:Panel ID="pnlMaj" runat="server">
<asp:Label ID="lblMaj" runat="server" Text="Major: " />
</asp:Panel>

Now every other time I've used a panel I can reference it in my
codebehind without saying me.pnl = new Panel() but with this
particular instance I have to. Also along with this problem I add a
control to this panel and it doesn't show on the page, only the Labels
I added manually.
Jan 23 '08 #1
0 972

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

Similar topics

0
by: George Ter-Saakov | last post by:
I have a composite control. Which has 2 parts. Under some conditions first part must be shown sometimes another. So naturally I used 2 Panel object. And hide one of them. The problem is that...
9
by: vvenk | last post by:
Hello: I was planning to use the panel to create a dockable container at the bottom of the screen that will display user preferences. I would like it to behave the following way: 1. It...
1
by: TheSteph | last post by:
Hi ! I would like to create a UserControl that act as a « Collapsible Panel ». So I have a UserControl with two panels : a "Header panel" at the top, and a "Container Area Panel"...
2
by: Alex Maghen | last post by:
I need to be able to get a reference to a Control on an ASPX Page by the exact ID that I gave that control at Design-Time. Let's say I created an ASPX that had a control: <asp:TextBox...
1
by: Rotsey | last post by:
Hi, I am using VS2005. I have created a user control with some properties. I am trying to pass the user control object to a method in a another class. But I cannot see the user control...
9
Denburt
by: Denburt | last post by:
If you are in the VBA section of a form and want to refer to a control on that form then the quickest most efficient way of achieving a connection to this control would be the most direct Me!NewData....
0
by: JasenC | last post by:
I've just upgraded from VS 2003 to VS 2005 and I've downloaded the latest service pack. However when I try to add a button to my form in design mode I keep getting this error. "A circular...
1
by: nassersh | last post by:
I am using a bound control to embed word documents within an access form. I have created two buttons on the form One to embed aand display and one to close. I embed one doc and then save the doc...
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: 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
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
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...

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.