VS marks 'readonly'attribute as error for input tag

S

Sree

I have an aspx page created in visual studio but edited
the HTML to add some client control and client side script.

in the following code, visual studio would
mark 'readonly' and 'style' with a red underline.

<input type="text" style="border-style: solid"
maxLength="40" size="30" name="txtDisposition" readonly>


when mouse over , the tooltip would say -- Could not find
any attribute 'readonly' of element 'input' OR Could not
find any attribute 'style' of element 'input'

VS will not complain about no other elements even if i
remove style and readonly attributes from code.

also some times VS will update the style attribute to some
thing like style="top-border-style: solid;left-border-
style: solid;bottom-border-style: solid;right-border-
style: solid" (i am not being able to reproduce this
now.. so, not sure if this is exactly same)

my VS 2003 version is 7.1.3088

if i copy following html to another new aspx, VS does not
find this as a error.

<table cellSpacing="0" cellPadding="0" width="100%"
border="0">

<tr>

<td width="30%">Disposition :</td>

<td><input type="text" style="border-style: solid"
maxLength="40" size="30" name="txtDisposition"

readonly> <INPUT type="hidden"
size="" name="hidProcessName"></td>

</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top