Adding attribute to tag when rendered
ASP.NET
4
Posts
2
Posters
0
Views
1
Watching
-
I am wondering how to add a attribute to an ASP control so that the attribute will show up in the HTML when it is rendered
-
for some reason, i dont see it showing up when it is renedered. I am using this in a control. i did this : Me.Attributes.Add("name", "somename")
Seems like you are using VB.NET since you're using the Me keyword. I'm a C# guy, but I assume Me is a reference to the Page and as far as I know, I don't think that has an attributes collection. Maybe you could provide more information on exactly what you're tryign to do?