View Single Post
  #1 (permalink)  
Old Aug 3rd, 2006, 09:49
Polly Anna Polly Anna is offline
New Member
Join Date: May 2006
Location: UK
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Using CSS Rule together with CSS Class in server side controls

Hi,
I design my web site in Dreamweaver and then use Web Developer 2005 Express for the dynamic stuff. I then amalgamate all the work I have done in Dreamweaver into 2005 Express.

However with the new server side controls I do not know how to add a CSS class together with a CSS rule.

In the normal client side control in Dreamweaver I have -

<input name="txtPassword" type="password" class="Input" id="SpacerBottom" />

In the server side controls the ID keyword is used now -

<asp:TextBox ID="txtPassword" runat="server" Style="z-index: 107" CssClass="Input" ></asp:TextBox>

I have tried to use the name="txtPassword", but it ignores this.

I would really like to know how I can use a class and an id selector with the new server side controls and would really appreciate some help on this.

Many thanks,
Polly Anna
Reply With Quote