CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 11/14/2007 7:52:17 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 35 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
G_McPherran
Asp.Net User
Where is AspNet-Menu-Link Class Defined11/14/2007 7:52:17 AM

0/0

The "CSS Friendly" code generates links with class=AspNet-Menu-Link. I cannot find this CSS class defined anywhere in the source files. (Some classes such as hover are apparently generated dynamically but it didn't appear that the AspNet-Menu-Link class is one of the dynamically-generated ones.)

Where is the class AspNet-Menu-Link defined?

Thank You

 

bpw
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/14/2007 10:06:02 AM

0/0

It isn?t defined in my stylesheets. It is applied to links in MenuAdapter.vb (or cs) along with other classes that might not be defined:

AspNet-Menu-NonLink (I?m a span ? no <a>)
AspNet-Menu-Template (?)
AspNet-Menu-Selected (I was clicked last - current location)
AspNet-Menu-ChildSelected (one of my children, grandchildren, etc, has been selected)
AspNet-Menu-ParentSelected (my parent, grandparent, etc, has been selected)
AspNet-Menu-WithChildren (I have children, grandchildren, etc)
AspNet-Menu-Leaf (I don?t have any children)

I guess these classes are there to give us more flexibility.

The class ?AspNet-Menu-Hover? is only applied using Javascript to IE6 in ?MenuAdapter.js?.


Paul Weston
G_McPherran
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/15/2007 4:56:11 AM

0/0

Thank You.

So I infer that it is not an error if a class attribute is specified but the class is not defined. Is this part of the CSS/browser spec or just one of those de-facto features?

bpw
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/15/2007 9:49:34 AM

0/0

No, it isn?t an error. One or more of these classes is applied to the node regardless of whether the class is defined in the stylesheet.

In fact, I?ve modified my ?MenuAdapter.vb? to exclude some of these classes, as I found it impossible to use the ?ChildSelected? and ?Selected? classes without having inheritance problems (there?s probably a way of doing this, but I couldn?t find it). I now only use the ?ChildSelected? and ?Selected? classes (which I apply to the link or span rather then the list item) and the ?Leaf? class. This suits my specific requirements.


Paul Weston
G_McPherran
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/16/2007 2:31:27 AM

0/0

My main question is: does CSS allow using class="StyleXYZ" even if StyleXYZ is not defined? (I'm just not sure if regarding "error" you were addressing the Control Adapters' use of these styles or were addressing whether using an undefined class is allowed by CSS.)

Thank You

 

bpw
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/16/2007 6:34:56 PM

0/0

If you add class=?StyleXYZ? to a control and StyleXYZ has not been defined anywhere, nothing will happen ? no errors will occur.


Paul Weston
G_McPherran
Asp.Net User
Re: Where is AspNet-Menu-Link Class Defined11/17/2007 5:35:14 PM

0/0

Thanks for responding to my questions.

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006

Web:
Where is AspNet-Menu-Link Class Defined - ASP.NET Forums The "CSS Friendly" code generates links with class=AspNet-Menu-Link. I cannot find this CSS class defined anywhere in the source files. ...
aspnet webcontrols 2.0 menu control and color in that custom css class. For example, we define the following css ... menu links are still rendered with #009E40 color :( Here is how html ...
ASP.NET.4GuysFromRolla.com: Creating CSS Friendly Websites with ... Nov 29, 2006 ...
  • Products ...
    Download free ASP templates - Free ASP Templates. When the Menu control's Orientation property is Vertical the adapter wraps the menu with DIV */ /* whose class is AspNet-Menu-Vertical. ...
    ASP.NET 2.0: Enforce Web Standards For Better Accessibility The correct approach is to define a label with the "for" attribute indicating the ID .....
  • .... AspNet-Menu- ParentSelected /* a tier above this one is selected */ ...
    CodeProject: Very Compatible DHTML Menu ASP.NET User Control. Free ... 'Puclic Class DataSetHelper is as in article HOW TO: Implement a DataSet .... ' Some other variables defined in menu control's properties are defined here ...
    Context Menu on TreeView Jun 22, 2007 ... Context Menu on the nodes of Microsoft ASP.NET TreeView control. ... whether they are defined inline or via an external style sheet. ...




    Search This Site:










    which one is batter??

    sum of xml data

    asp.net vs. coldfusion

    remove(release) dll from memory?

    user control and relative/absolute links

    html email message background color

    question from a clueless asp beginner

    performing error check on date values entered in a textbox

    formview

    website administrtion tool not working

    thumbnail images from sql

    how to make disable back or forward arrow of browser

    file scripting

    multiple .net framework installations

    problem with vbscript!!

    mobile app

    filepath info...

    rename a file during upload

    dynamically load frames

    executing a remote batch file in asp.net 2.0

    php or asp.net. please help

    easy question about classes

    date (get rid of time)

    which editor to use?

    wierd visual studio problem

    calling asp.net page from asp. help me understand the problem

    big cookie problem, please help

    create subdomains with asp.net c#

    intialising arrays

    adding three textbox values??

      Privacy | Contact Us
    All Times Are GMT