borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to encrypt forms data ?)Next Topic (store proceudre related question ?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : how to attach style sheet dynamically to any server control in asp.net ?
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon how to attach style sheet dynamically to any server control in asp.net ?

please guide me with code.

05-07-2004 at 06:07 AM
View Profile Send Email to User Show All Posts | Quote Reply
zimcoder
Level: VB Lord


Registered: 27-10-2003
Posts: 225
icon Re: how to attach style sheet dynamically to any server control in asp.net ?

It is very easy to associate a style sheet with a server control in asp.net.

If for instance i have a datagrid i can associate it to a cascading style sheet class this

//declare the datagrid
DataGrid MyDataGrid = new DataGrid()

//associate the datagrid to a class in your style sheet

MyDataGrid.CssClass = "grids"

Make sure you have the appropriate reference to the style sheet in your page via <style> tags or any othe way of including style sheets.

____________________________
BrainBench ADO.NET and ASP.NET Certified Developer

27-07-2004 at 08:13 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : how to attach style sheet dynamically to any server control in asp.net ?
Previous Topic (how to encrypt forms data ?)Next Topic (store proceudre related question ?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder