Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Attributes to Elements in VS.NET IDE?

Status
Not open for further replies.

JustBarno

Programmer
Jun 21, 2004
46
US
Is it possible to add attributes (ie: leftMargin, bgcolor, class) to elements (<body>,<td>,<table>) in the VS.NET IDE?

I'd like to eliminate the warnings caused by the attributes not being found.

Thanks,

-Justin
 
haha, thanks for the tip, but I wasn't talking about adding them in my code. I mean add them to the editor so that they don't get underlined in my code and add a huge list of warnings in the "task list" window.
 
Here ya go:

Code:
<!--markup-->
<body id="Body" runat="server">

//code-behind
protected HtmlGenericControl Body;

...

Body.Attributes.Add( "bgcolor", "red" );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top