<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" title="Untitled Page" StylesheetTheme ="StyleSheet.css" %>
<
asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 300px; position: absolute;top: 600px"
Text="Welcome To My Website">asp:Label> <h1 class ="center" > testing h1><p class ="center">testingp> asp:Content>stylesheet code:
/////////////////////////////////
body {}
h1
,h2,h3,h4,h5,h6{
color :Red }p.right
{ text-align :right}p.center
{ text-align :center }.center
{ text-align :center }
when i run this application ,i geeting this error
Parser Error Message: Theme 'StyleSheet.css' cannot be found in the application or global theme directories.
Source Error:
Line 1: <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" title="Untitled Page" StylesheetTheme ="StyleSheet.css" %>
Line 2:
Niradhip ChakrabortyPosted Apr 25, 2008, 4:18 PM
create a user control folder named as Usercontrols
Inside that create a page with .ascx extension.
Say BOttom1.ascx
Now in your aspx page where u want to use this default page give a reference as follows:
<%@ Register Src="../UserControls/Bottom1.ascx" TagName="Bottom" TagPrefix="uc2" %>
refer it again inside your body of html where u want to use it as follows:
jeevan mummadiPosted Apr 24, 2008, 12:42 AM
i got this,
thank u james..
and one more question..
how to create the default skin,how to acess the default skin in our application.
plz help me....
Niradhip ChakrabortyPosted Apr 23, 2008, 1:38 PM
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" title="Untitled Page" StylesheetTheme ="StyleSheet.css" %>
Dont use StylesheetTheme ="StyleSheet.css" inside page directives
If u want to use stylesheet use it in following way.
create a folder for stylesheet(say name as StyleSheet) under that create a stylesheet template
(say name as Website.css) create the class as per your requiremant inside template. say:
.text3
{
PADDING-RIGHT: 10px;
PADDING-LEFT: 5px;
FONT-WEIGHT: normal;
FONT-SIZE: 12px;
RIGHT: 0px;
LEFT: 0px;
PADDING-BOTTOM: 3px;
WIDTH: 0px;
CLIP: rect(0px auto auto auto);
COLOR: #000000;
BOTTOM: 0px;
PADDING-TOP: 5px;
FONT-FAMILY: "Trebuchet MS", Tahoma, Arial, Helvetica;
TOP: 0px;
HEIGHT: 0px;
TEXT-ALIGN: left;
TEXT-DECORATION: none
}
Now u want to use class text3 in your web page.
tag.As follows:Follow the steps given below:
Refer the stylesheet folder in your html page of website under
Now u can use the text3 class which u have created under stylesheet as follows