473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

html tag, runat server - cant find required properties!!???

hi there,

i have a <TD id="cell1" runat="server"> tag in my page which i want to set
either a backgroundImage or a Class, but neither of these properties appear
in the VB code when i type "cell1."

Any help on this issue?

thanks,
Paul.
Nov 18 '05 #1
2 1132
cell1.Attributes("style") = "background-color:black;"

etc etc.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Milsnips" <mi******@hotmail.com> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
hi there,

i have a <TD id="cell1" runat="server"> tag in my page which i want to set
either a backgroundImage or a Class, but neither of these properties
appear
in the VB code when i type "cell1."

Any help on this issue?

thanks,
Paul.

Nov 18 '05 #2
Class attribute is exposed as CssClass property. For the b/g image, I
believe you have to use the Attributes collection: TableCell.Attributes.Add
("backgroundimage", "bg.gif")

"Milsnips" <mi******@hotmail.com> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
hi there,

i have a <TD id="cell1" runat="server"> tag in my page which i want to set
either a backgroundImage or a Class, but neither of these properties appear
in the VB code when i type "cell1."

Any help on this issue?

thanks,
Paul.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gary Bagen | last post by:
Hello, I am working on a page transition scheme and was wondering what the quickest way is to find out which ASP.NET controls need to be inside a form with runat=server. I've determined that...
2
by: ola | last post by:
Please Help. I get this error in one of my files Control 'AdminTabControl1_lnk0' of type 'LinkButton' must be placed inside a form tag with runat=server.
9
by: Jay | last post by:
Where is there a good article/description on why everything is runat=server. I just can't seem to grasp why ALL tags (even table tags) are runat server in dotnet. Thank You
1
by: Martin | last post by:
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I...
2
by: trinitypete | last post by:
Hi all, I have searched this error but none of the posts seem to reflect my situation. I have a base aspx page that all other pages inherit from. I know than none of the HTML is inherited only...
7
by: Tom wilson | last post by:
I'm trying to create dynamic controls in ASP.Net. It's driving me nuts. I keep getting the error: Control '16' of type 'RadioButton' must be placed inside a form tag with runat=server. Dim...
0
by: Just D. | last post by:
All, What's the easiest way to create a Virtual Directory with required properties like: 1) delete all Start File names but insert only one required 2) one of the sub Directories should be...
4
by: Alex Maghen | last post by:
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I...
6
by: Klaas | last post by:
I want the backgrond of my whole page in gradient. In the source tab I have: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.