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

Panel or DIV?

Hi,

Isn't an ASP.NET Panel similar to a HTML DIV?
Can I apply css classes to a panel?

What are the differences between an ASP.NET Panel and a DIV?

When should I use one or the other?

I have been working in web design for sometime and I am used to XHTML
and CSS as well as some server languages. However some of the ASP.NET
tags seem to be something similar to the XHTML tags.

Thanks,
Miguel

Nov 19 '05 #1
2 2246
Yes it is a panel.

However, if you set the targetSchema to something that is not compatible
with CSS 2.0, like InternetExplorer 3.2/Netscape 3, then many of the
properties for the css classes won't work.

S. L.

"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi,

Isn't an ASP.NET Panel similar to a HTML DIV?
Can I apply css classes to a panel?

What are the differences between an ASP.NET Panel and a DIV?

When should I use one or the other?

I have been working in web design for sometime and I am used to XHTML and
CSS as well as some server languages. However some of the ASP.NET tags
seem to be something similar to the XHTML tags.

Thanks,
Miguel

Nov 19 '05 #2
Greetings Miguel,

Yes this a touchy issue... I tend to go with the philosophy of "relative
acceptance" of browser standards... I like my work to be corss-browser
compliant... but I've adopted the approach of being compliant within a
couple versions of the main/dominant browsers... for example I no longer
code to be compliant Netscape 4.7... I try to be compliant with a 2 versions
of the popular browsers...

It would be a lot easier if the browser makers would stick to the
standards... but they don't want to... so we have to continue to monitor
trends and code accordingly...

This is just my input I wish you good luck...

Chris
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
Yes it is a panel.

However, if you set the targetSchema to something that is not compatible
with CSS 2.0, like InternetExplorer 3.2/Netscape 3, then many of the
properties for the css classes won't work.

S. L.

"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi,

Isn't an ASP.NET Panel similar to a HTML DIV?
Can I apply css classes to a panel?

What are the differences between an ASP.NET Panel and a DIV?

When should I use one or the other?

I have been working in web design for sometime and I am used to XHTML and
CSS as well as some server languages. However some of the ASP.NET tags
seem to be something similar to the XHTML tags.

Thanks,
Miguel


Nov 19 '05 #3

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

Similar topics

3
by: Fabrizio | last post by:
Hi, There is any chance to insert a control like a text box in a panel choosing the absolute position? When I try to insert a label , the panel positions the control on a locked position. Thanks...
9
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......
2
by: Peteroid | last post by:
When the application I'm working on is run it creates a panel with a Paint event customized to draw primitives (circles, rectangles, etc.), places the panel on a form, and then launches the form....
1
by: clintonG | last post by:
I'm having a problem maintaining state with a Panel control in a MasterPage and I need help thinking through this process. The basic structure of the HTML in the Master looks like this... ...
3
by: John Salerno | last post by:
I'm using the sample code of the file 'simple.py' and trying to make a single window with a panel in it, but I keep getting an error. Here's my code: (I know I might need something else, like a...
10
by: markwalker84 | last post by:
Hello everyone! Got a bit of a problem... Two of the panels on my program contain a number of check boxes. The exact number of which is determined by a pair of variables. I have recently...
8
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...
11
by: dongarbage | last post by:
Hi there, I'm very much a C# novice. How do you do freehand drawing on a panel with a mouse in c#? Thanks, Don
3
by: zhaodapu | last post by:
I derived a panel class: public class DeskPanel : System.Windows.Forms.Panel Now I want to use the visual designer to add controls in MyPanel class. But I noticed that the visual designer...
3
by: Gandalf | last post by:
why when I try to insert gridSizer to a panel which already inside another panel the gridSizer doesn't work? this is the code: panel3= wx.Panel(self, -1, (0, 60), size=(400, 240) ,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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.