473,761 Members | 5,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Panel control is quite enough ?

Hi,

am a biginner in .net designing.Does the panel control is enough to act
as a container .Because if , i design my controls in textboxes rows&
cols , i heared that the aclignment won't change in run time across the
browsers.

is it true? if the panel provides guaruntee that it keeps the controls
alignment same in runtime across the browsers, i can very well use the
panel control instead of tables ,to make it easier to control in server
side.
Please give u r comments
Regards
a drop in the ocean.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
2 1422
ASP.net server controls allows adaptive rendering, which means the HTML
markup of a server control can vary from browser to browser. I did a simple
test of a Panel server control and looked at the HTML source of Internet
Explorer 6 and Firefox 1.0 (Mozilla).

If you are using the .NET Framework 1.1, a Panel server control will render
the contents of a Panel surrounded by a <div> element (for example, if you
have this:

<asp:Panel runat="server">
Test
</asp:Panel>

the HTML in IE will be:

<div>

Test

</div>

The extra whitespace shouldn't matter with your styling.) However, if that
same page is viewed in the newest Firefox, the .NET 1.1 Framework renders
this:

<table cellpadding="0" cellspacing="0" border="0" width="100%"><t r><td>

Test

</td></tr></table>

I found it very strange the developers of .NET would do this, but you have
to remember that .NET 1.x came out several years ago, before Firefox was
even thought of. Needless to say, anything you have inside the Panel server
control will remain intact. It's just what's surrounding it that changes
from browser to browser.

If you're curious, I also tried this with the latest 2.0 build of the .NET
framework. Both browsers rendered the <div> way.

Happy coding,
Johann MacDonagh
"Raghu Raman" <ra************ @rediffmail.com > wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

am a biginner in .net designing.Does the panel control is enough to act
as a container .Because if , i design my controls in textboxes rows&
cols , i heared that the aclignment won't change in run time across the
browsers.

is it true? if the panel provides guaruntee that it keeps the controls
alignment same in runtime across the browsers, i can very well use the
panel control instead of tables ,to make it easier to control in server
side.
Please give u r comments
Regards
a drop in the ocean.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2


Hi Johann ,

Thx for that.U r article shows that , all the inner control alignment
will remain intact .So i can very well use asp panel instead of html
.table.

U 've also said that the <div> will also be included.yes it is.

But could u pls tell me how to get the scroll bars in the panel controls
Thanks a lot
A drop in the ocean.
Raghu

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

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

Similar topics

1
2532
by: Emma Middlebrook | last post by:
Hi, I've created a form that has basic navigation functionality. There is a panel on the main form that contains several UserControl form objects. I've added all the forms to the control collection and can quite happily navigate through displaying the panels as and when I need them. The issue I have is that when the user clicks on one of my buttons on the navigation form it will do 1 of two operations based on
9
3187
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected... So the behavour is similar to a tab control. The user is expected to fill out required data on each of the panels before pressing a submit button which is visible from all panels. Problem I have is validating the data entered by the user. I...
11
1901
by: BoloBaby | last post by:
OK, check this out... I have a form with a panel control and button on it (outside the panel control). I have two event handlers - one handles the click event of the button on the form. The other handles a custom "CardInserted" event for a class I wrote that watches for smart cards to be inserted into an attached smart card reader.
12
4836
by: Peter | last post by:
Using .NET 1.1 Window Forms I would like to place over 400 pictures on a panel control one after another one so user can scroll through them, but each picture is up to 200 pixels in height that's over 80,000 pixels in total, but panel control can go up to only 32767 pixels. How can I allow a user to scroll through all of the 400 pictures? Thanks
8
5369
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In this code there is a panel panel1, that I populate with a lable in the foreground. Then when I click on "button1" a backgroundworker thread in async mode is started. When the backgoundworker thread completes the thread returns a panel to populate...
7
1854
by: John Morgan | last post by:
I have done a fair amount of programming of ASP.NET 1.1 without poroblem I am now involved in my first project with ASP.NET 2.0 and I am having difficulties with understanding the compilation or 'build' arrangement or perhaps I am overlooking something else. I am developing a project using the IIS local host configuration. My actual problem is :
1
2310
by: Frank Burleigh | last post by:
A while ago I installed Net 2.0 to our Server 2003 web machine, but the Control Panel folder icon for configuring Net 2.0 never made it to the Control Panel folder. Thinking this might indicate a botched install, I used the install.exe found in 2.0's "Microsoft .net framework 2.0" directory to repair the install. No change I can see. I can find the application exe whose icon is missing from control panel easily enough, but I wonder...
5
6124
by: sklett | last post by:
I know that Panel (and most of it's derivitives) don't raise keyboard events. I *really* need to catch keyboard events though so I've been googling the topic and have found quite a few suggestions. The one suggestion I've found that makes the most sense isn't working for me and after this most recent failure I'm really at a loss! ;0) I'm overriding WndProc and checking the Message.Msg property for the WM_KEYUP message. If anyone has...
14
2426
by: Adam Sandler | last post by:
I have a class with a method which returns a panel. The panel was not created with the visual editor, I coded it by hand -- because some of the content on the panel can be dynamic and thus I chose to do it that way. At any rate, I have an event handler for a button which instantiates an object of that class I mentioned and calls the method to return the panel. I put the panel on form1 like so: // it's really not called 'Class', I...
0
10111
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8770
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.