hey all i am wrkin on a website using asp.net (vs.net) and i have made a menu using css in an html file.. the css in saved seprately from the html file... is there a way by which i can include the html menu in my aspx page... like asp has #include command.. wht command does asp.net uses.. ??
i thought css files were included using the <link rel="stylesheet" href="style.css" type="text/css"> is it done differently in aspx? btw y not just google it .
pairbrother is correct. That is the way to include a css file in aspx files. If you need to use vs.net to add the link do the following: 1: Open the aspx file in Design view 2: Go to Format > Document Styles … 3: In the resulting dialogue box, click the Add Style Link 4: In the resulting Select Style Sheet dialogue box, select the style sheet you want to link and press ok. Check the aspx file in HTML view to make sure that the link was added correctly.
For later reference, you should be using a Master Page (If in 2.0) - It acts like a global wrapper, where you can throw your header and footer. (They also have a code-behind so you hvae a nice hook for global functionality here)