views:

271

answers:

3

Here's the source of a blank .acsx file I created called LogOnBox.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LogOnBox.ascx.cs" Inherits="ECommerce.Views.Shared.LogOnBox" %>

I want to drag some labels, and textboxes etc and give them style using a CSS file. How can I associate a CSS to an acsx file?

A: 

Just reference the css file in the header of the page containing the user control.

Brownman98
+1 to counter the downvote. This is true no matter how you look at it.
Arve Systad
+1  A: 

The CSS is associated to the page, and not the control specifically. But you can use the CSS in the control when the page has referenced it.

Arjan Einbu
So how do you suggest I apply an html id to a part of my webcontrol?
Sergio Tapia