SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question - Why are server controls rendered differently ???

    Hello dear folks,

    I am learning a lot in Javascript from this forum.

    I just realized that the asp server controls like <asp Label> control gets rendered out as a <span> tag.

    I know <asp Label> is a server control and not a HTML control. Does all server controls get rendered onto HTML <span> tag?

    can someone point me to any links/knowlegebase about this concept...totally surprised.
    thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by JasonsmithOO1 View Post
    Hello dear folks,

    I am learning a lot in Javascript from this forum.

    I just realized that the asp server controls like <asp Label> control gets rendered out as a <span> tag.

    I know <asp Label> is a server control and not a HTML control. Does all server controls get rendered onto HTML <span> tag?

    can someone point me to any links/knowlegebase about this concept...totally surprised.
    thanks
    If I recall correctly, when using Visual Basic, a label is just considered to be a piece of text that you place on the screen as a part of the user interface.
    HTML has a quite a different meaning and purpose for the element called label.

    There's some ASP-related info on things at Label Web Server Control Overview
    However, the people in the Classic ASP forum are likely to be able to give a better answer to your query than I am here.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks always Paul.

    Regards


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •