Problem - with WebForm Controls and StyleSheet ... !!!

Discussion in 'ASP .Net Web Controls' started by Nima Jahanshahi, Nov 12, 2003.

  1. Hi,

    Here's the problem:

    When I add some Web Form control from toolbar to the WebForm1.aspx
    which has a StyleSheet assign to it with <Link> tag that control displays
    incorrectly in Microsoft Visual Studio .NET 2003 and that's its size it's
    much bigger than set in its attributes!

    If I remove the StyleSheet from the file (remove <LINK> tag) the control
    will display correctly without any problem!

    What should I do with this???

    Here is the WebForm1.aspx contents:
    ===========================================================
    <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
    Inherits="WebApplication1.WebForm1" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <TITLE>WebForm1</TITLE>
    <META name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <META name="CODE_LANGUAGE" content="C#">
    <META name="vs_defaultClientScript" content="JavaScript">
    <META name="vs_targetSchema"
    content="http://schemas.microsoft.com/intellisense/ie5">
    <LINK href="style.css" type="text/css" rel="stylesheet"> <!-- This is the
    problem!!! -->
    </HEAD>
    <BODY ms_positioning="GridLayout">
    <FORM id="Form1" method="post" runat="server">
    <ASP:BUTTON id="Button1" style="Z-INDEX: 101; LEFT: 248px; POSITION:
    absolute; TOP: 168px" runat="server"
    text="Button"></ASP:BUTTON>
    </FORM>
    </BODY>
    </HTML>
    ==================================================================

    ThanX,

    Nima.

    P.S. Am I in the right section?
    Nima Jahanshahi, Nov 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. titof
    Replies:
    0
    Views:
    484
    titof
    Jul 24, 2003
  2. =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=

    Stylesheet referanse i stylesheet

    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=, Jul 3, 2004, in forum: XML
    Replies:
    3
    Views:
    562
    =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?=
    Jul 4, 2004
  3. Steven An
    Replies:
    1
    Views:
    490
    Martin Honnen
    Nov 23, 2004
  4. David Blickstein
    Replies:
    3
    Views:
    1,024
    David Blickstein
    Aug 2, 2005
  5. David Blickstein
    Replies:
    14
    Views:
    6,305
    Harrie
    Oct 16, 2005
Loading...

Share This Page