Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default <span> attributes

    Hi,

    I noticed that client-side validation (in IE6) is done with <span>
    tags that have the same attributes as in original aspx code
    (controlToValidate and others...). I noticed that, when i save
    generated html as a new document with html extension and open it in
    Visual Studio.NET, the same VS.NET that created them doesn't
    recognised those span atributtes (ie.5 shema is used) and marks them
    with underline!
    How is it possible that VS.NET doesn't recognize its own creation?

    Also, i couldn't find any javascript that actually makes validator's
    text visible on submit.
    Is it done by some javascript code that is inserted in page with some
    included .js file or is this functionality included in <span> tag?

    Thanks, Ante
    Ante Perkovic Guest

  2. Similar Questions and Discussions

    1. Row Span in a grid?
      How can I have a column that would span 2 rows. For instance, I have 2 rows of data, the user may fill out one or both rows, then do a calculation...
    2. DataGrid (body only) contained in <span>...</span> tags
      Hi, I have a DataGrid control that displays many records. As such, I have been given a requirement to contain only the body of my DataGrid...
    3. <span>'s
      Hi, I have a link on an asp page. When the user clicks on this link I make a <span> visible. Within my span I have a series of textboxes. ...
    4. <SPAN> Tag
      I know this is not FW related, it's just a quicky anyway: I noticed that Dreamweaver sometimes applies the <SPAN> tag to my text. But at other...
    5. DIV vs SPAN
      In my quest to get my page working I'm noticing I have a choice of either <DIV> or <SPAN> tags. I'd like to use nested layers and am wondering will...
  3. #2

    Default Re: <span> attributes

    ..Net uses HTML and .Net syntax standards. These extended attributes are not
    really part of either world.

    ..Net uses the fact that you can define your own attributes. The development
    environment may underline the "offending" attribute, but you can still use
    them.

    Check out <Center>...</center> same thing - it doesn't "like" it, but you
    can use it. Think of it as a little warning, not as an error.


    "Ante Perkovic" <anteperkovic@vip.hr> wrote in message
    news:f7ead98e.0307041130.3f4a0ff9@posting.google.c om...
    > Hi,
    >
    > I noticed that client-side validation (in IE6) is done with <span>
    > tags that have the same attributes as in original aspx code
    > (controlToValidate and others...). I noticed that, when i save
    > generated html as a new document with html extension and open it in
    > Visual Studio.NET, the same VS.NET that created them doesn't
    > recognised those span atributtes (ie.5 shema is used) and marks them
    > with underline!
    > How is it possible that VS.NET doesn't recognize its own creation?
    >
    > Also, i couldn't find any javascript that actually makes validator's
    > text visible on submit.
    > Is it done by some javascript code that is inserted in page with some
    > included .js file or is this functionality included in <span> tag?
    >
    > Thanks, Ante
    >

    David Waz... Guest

  4. #3

    Default Re: <span> attributes

    [email]anteperkovic@vip.hr[/email] (Ante Perkovic) wrote in
    news:f7ead98e.0307041130.3f4a0ff9@posting.google.c om:
    > Hi,
    >
    > I noticed that client-side validation (in IE6) is done with
    > <span> tags that have the same attributes as in original aspx
    > code (controlToValidate and others...). I noticed that, when i
    > save generated html as a new document with html extension and
    > open it in Visual Studio.NET, the same VS.NET that created them
    > doesn't recognised those span atributtes (ie.5 shema is used)
    > and marks them with underline!
    > How is it possible that VS.NET doesn't recognize its own
    > creation?
    Ante,

    controlToValidate is not a standard attribute of the <SPAN> tag. A
    browser will ignore any invalid HTML it sees. VS.NET doesn't know
    that the controlToValidate attribute was added to the <SPAN> tag by
    an ASP.NET validator, so it sees controlToValidate as invalid and
    underlines it.
    > Also, i couldn't find any javascript that actually makes
    > validator's text visible on submit.
    > Is it done by some javascript code that is inserted in page with
    > some included .js file or is this functionality included in
    > <span> tag?
    ASP.NET pages include a JavaScript file located on the server at:

    C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22

    The script's name is WebUIValidation.js. Code in the script
    shows/hides the error text from a validator by setting the <SPAN>
    tag's style.display property:

    [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/[/url]
    display.asp


    Hope this helps.

    Chris.
    -------------
    C.R. Timmons Consulting, Inc.
    [url]http://www.crtimmonsinc.com/[/url]
    Chris R. Timmons Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139