Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Text Box Server Control Not Formated According to SKinFile

Posted on 2006-04-25
4
Medium Priority
?
339 Views
Last Modified: 2012-05-05
Hi,

I'm using ASP.NET 2005 with VB.NET.

I created a SkinFile called SkinFile.skin and it's located in the App_Themes directory as follows:
<asp:TextBox runat="server" BorderColor="LightGray" BackColor="White" BorderWidth="1px">
</asp:TextBox>

<asp:DropDownList runat="server" BackColor="White" ForeColor="Black">
</asp:DropDownList>

The first text box called txtGeneratorName displays the SkinFile.skin format, but the other text box server controls do not display the Skinfile.skin format. Instead the BackColor is yellow for my text box server controls.  I modified my Web.Config file as follows:
<pages theme="SkinFile">

I also added Theme=”SkinFile” within my Web Page.

My Web Page Source File is as follows:
<%@ Page Language="VB" Theme="SkinFile" MasterPageFile="~/MasterDemo.master" AutoEventWireup="false" CodeFile="frmGenerator.aspx.vb" Inherits="frmGenerator" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: right">
        <table border="0">
            <tr>
                <td style="width: 114px; height: 26px;">
                    Generator Name:</td>
                <td style="width: 100px; height: 26px;">
                    <asp:TextBox ID="txtGeneratorName" runat="server" Width="312px"></asp:TextBox></td>
                <td style="width: 189px; height: 26px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtGeneratorName"
                        ErrorMessage="Required Field"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 114px">
                    Address 1:</td>
                <td style="width: 100px">
                    <asp:TextBox ID="txtAddress1" runat="server" Width="312px"></asp:TextBox></td>
                <td style="width: 189px">
                    <asp:RequiredFieldValidator ID="rfvGenerator" runat="server" ControlToValidate="txtAddress1"
                        ErrorMessage="Required Field"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 114px">
                    Address 2:</td>
                <td style="width: 100px">
                    <asp:TextBox ID="txtAddress2" runat="server" Width="312px"></asp:TextBox></td>
                <td style="width: 189px">
                </td>
            </tr>
            <tr>
                <td style="width: 114px; height: 37px;">
                    City:</td>
                <td style="width: 100px; height: 37px;">
                    <asp:TextBox ID="txtCity" runat="server" Width="312px"></asp:TextBox></td>
                <td style="width: 189px; height: 37px;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCity"
                        ErrorMessage="Required Field"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 114px">
                 State:</td>
                <td style="width: 100px" align="left">
                    <asp:DropDownList ID="ddlStates" runat="server">
                        <asp:ListItem>CA</asp:ListItem>
                        <asp:ListItem>AL</asp:ListItem>
                        <asp:ListItem Value="AZ">AZ</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="width: 189px">
                </td>
            </tr>
            <tr>
                <td style="width: 114px">
                    Zip Code:</td>
                <td style="width: 100px">
                    <asp:TextBox ID="txtZip" runat="server"></asp:TextBox></td>
                <td style="width: 189px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtZip"
                        ErrorMessage="Required Field"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 114px">
                    Phone Number:</td>
                <td style="width: 100px">
                    <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox></td>
                <td style="width: 189px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPhoneNumber"
                        ErrorMessage="Required Field"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="width: 114px">
                    Phone Extension:</td>
                <td style="width: 100px">
                    <asp:TextBox ID="txtPhoneExt" runat="server"></asp:TextBox></td>
                    <td style="width: 189px">
                    </td>
            </tr>
            <tr>
                <td style="width: 114px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 189px">
                </td>
            </tr>
            <tr>
                <td style="width: 114px">
                    <asp:Button ID="btnSave" runat="server" Text="Save" /></td>
                <td style="width: 100px">
                    <asp:Label ID="lblStatus" runat="server" Text="Ready" Width="240px"></asp:Label></td>
                <td style="width: 189px">
                </td>
            </tr>
            <tr>
                <td style="width: 114px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 189px">
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    </div>
   
   
</asp:Content>

Any Suggestions?
Thanks,
Denise
0
Comment
Question by:DeniseGoodheart
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
the_paab earned 1500 total points
ID: 16541635
I think that yellow background can cause using of "automatic fill function" for input fields. Do you use the Google Toolbar or something similar?
0
 

Author Comment

by:DeniseGoodheart
ID: 16548848
Hi,

No I don't use the Google Toolbar and I have no .css files within my solution directory.

Thanks,
Denise
0
 

Author Comment

by:DeniseGoodheart
ID: 16798512
...Oh well, the answer remains a mystery.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question