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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TableCell Borders

Status
Not open for further replies.

anilv

Programmer
Feb 18, 2003
4
IN
Hello, can any body give me the solution that How to add border to a particularly to a TableCell in <asp:table> web server control
 
Could you set it this way?

<ASP:TABLECELL BORDERSTYLE=Solid >

There is also a bordercolor.
 
To add HTML attributes to Web Controls (c#) use...

WebControlID.Attributes.Add(attributename,attribute);

ie,
Label1.Attributes.Add(&quot;style&quot;,&quot;align: centre&quot;);

in the page behind file, (.cs). This also allows you to add client side events like adding a clint side onclick event to run a bit of javascript...

NB: Pardon my inevitable syntax errors as I'm a wee bit tired, and I'm not from a web development backgound I'm just settling into one and my HTML syntax knowledge is crappy

Hope this helps

Rhys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top