Click here to Skip to main content
15,891,905 members

Call external css to my login button

eckomma asked:

Open original thread
Am building a web application for a clinic using VS2012Express(web).
I want to change look and feel on the default log in page, so i create css for roundcorner on the Site.css file call:round-coner.When i call in in the login page.The formating still remain the same. i have testing in some other application i built using aptana studio and it working.Could some one tell me what am doing wrong.
ASP.NET
<%@ Page Title="Log in" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Practice_project.Account.Login" %>
<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
    </hgroup>
    <style type="text/css">

        </style>
        <link href="Content\Site.css" rel="stylesheet" type="text/css" />
        
        <header>
    
    
        </header>
        <section id="loginForm">
            <h2>Wel come back,Please login.</h2>
            <asp:Login runat="server" ViewStateMode="Disabled" RenderOuterTable="false">
                <LayoutTemplate>
                    <p class="validation-summary-errors">
                        <asp:Literal runat="server" ID="FailureText" />
                    </p>
                    <fieldset>
                        <legend>Log in Details:</legend>
                        <ol>
                            <li>
                                <asp:Label runat="server" AssociatedControlID="UserName">User name</asp:Label>
                                <asp:TextBox runat="server" ID="UserName" />
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="UserName" CssClass="field-validation-error" ErrorMessage="The user name field is required." />
                            </li>
                            <li>
                                <asp:Label runat="server" AssociatedControlID="Password">Password</asp:Label>
                                <asp:TextBox runat="server" ID="Password" TextMode="Password" />
                                <asp:RequiredFieldValidator runat="server" ControlToValidate="Password" CssClass="field-validation-error" ErrorMessage="The password field is required." />
                            </li>
                            <li>
                                <asp:CheckBox runat="server" ID="RememberMe" />
                                <asp:Label runat="server" AssociatedControlID="RememberMe" CssClass="checkbox">Remember me?</asp:Label>
                            </li>
                        </ol>
                        <asp:Button runat="server" CommandName="Login" Text="Log in" class="round-button" />
                    </fieldset>
                </LayoutTemplate>
            </asp:Login>
            <p>
                <asp:HyperLink runat="server" ID="RegisterHyperLink" ViewStateMode="Disabled">Register</asp:HyperLink>
                if you don't have an account.
            </p>
        </section>
    
        <section id="socialLoginForm">
            <h2>Use another service to log in.</h2>
            <uc:OpenAuthProviders  runat="server" ID="OpenAuthLogin" />
        </section>
    </asp:Content>

<pre lang="here is my CSS: .round-button {<br />
        background-color: #006699;<br />
        color: #FFF;<br />
        width: 70px;<br />
        cursor: pointer;<br />
        -moz-border-radius: 10px;<br />
        -webkit-border-radius: 10px;<br />
        -khtml-border-radius: 10px;<br />
         padding: 5px;<br />
         border-radius: 10px;<br />
    }"></pre>
Tags: ASP.NET4.0

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900