Showing posts with label attribute. Show all posts
Showing posts with label attribute. Show all posts

Wednesday, March 28, 2012

TableCell: BackColor Property But No BackGround Property?

I am using an ASP:Table Control to make a table. I know that the HTML TD tag
has a background attribute and a bgcolor attribute. The TableCell has a
BackColor property, which is the equivelant of the HTML bgcolor attribute,
but what can I use as an equivelant for the HTML background attribute?
Thanks.
--
Nathan Sokalski
njsokalski@dotnet.itags.org.hotmail.com
http://www.nathansokalski.com/I would have to look but my first thought is this. The control will render
whatever attribute you add. So you can add it declaratively with
attribute="value" syntax or on in the code you can add it through the
Attributes collection on the control.

C#
control.Attributes.Add("Name", "Value");

I think you can do this too, because I think it is a NameValueCollection
which means it handles the add automatically.
control.Attributes["Name"] = "Value";

"Nathan Sokalski" wrote:

> I am using an ASP:Table Control to make a table. I know that the HTML TD tag
> has a background attribute and a bgcolor attribute. The TableCell has a
> BackColor property, which is the equivelant of the HTML bgcolor attribute,
> but what can I use as an equivelant for the HTML background attribute?
> Thanks.
> --
> Nathan Sokalski
> njsokalski@.hotmail.com
> http://www.nathansokalski.com/
>

Tuesday, March 13, 2012

TargetSchema meta tag and TargetSchema attribute

When creating a new .aspx page, VisualStudio creates a meta tag called"vs_targetSchema" that holds the following value:"http://schemas.microsoft.com/intellisense/ie5". When creating a new.ascx page, VisualStudio create a "TargetSchema" attribute within the@dotnet.itags.org.Control directive which holds this same value.
If I'm building an application that I want to be browser-independant,should I eliminate this meta tag and attribute, should I add additionalmeta tags and attributes, or will any of these actions make adifference?
Thanks in advance for your help!
Hi there,
Just add following in your web.config file.. This should do the job for you.
<browserCaps>
tagwriter=System.Web.UI.HtmlTextWriter
</browserCaps>
Regards,

Thanks a lot for your reply ... I'm going to read up on browerCaps.

However, I'd still like specific information concerning my questions about the TargetSchema metatag and @.Control attribute. I'd appreciate any help.

Thanks again.