i write the below code for creating user control .but giving me an error. the following code i wrote in ascx file
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UcMarquee.ascx.cs" Inherits="UcMarquee" %>
and the following code in code cs file
public string direction
{
get { return marquee1.Attributes["direction"]; }
set { marquee1.Attributes["direction"]=value; }
}
public Color backcolor
{
get { return Color.FromName(marquee1.style["background-color"]);}
set { marquee1.style["background-color"]:value.Name; }
}
public FontUnit FontSize
{
get { return lbl.FontSize; }
set { lbl.FontSize = value; }
}
public string Text
{
get { return lbl.Text; }
set { lbl.ForeColor = value; }
}
public Color ForeCore
{
get { return lbl.ForeColor; }
set { lbl.ForeColor = value; }
}
Raja TPosted Sep 5, 2015, 9:48 PM
You could not use double quotes within double quotes so use combination of single and double quotes.
Change
To
More details check out
http://stackoverflow.com/questions/15278616/the-server-tag-is-not-well-formed-error
http://stackoverflow.com/questions/4162081/the-server-tag-is-not-well-formed-whats-wrong