I want to display the attributes inline.
like below
http://img860.imageshack.us/i/attribute.jpg/
I know it is in product attribute module productattributes.ascx.cs
Even though if i remove the * and <br/> in the created codes it is not working
if (attribute.IsRequired)
attributeTitle.Text = "<span>*</span> ";
//text prompt / title
string textPrompt = string.Empty;
if (!string.IsNullOrEmpty(attribute.TextPrompt))
textPrompt = attribute.TextPrompt;
else
textPrompt = attribute.ProductAttribute.LocalizedName;
attributeTitle.Text += Server.HtmlEncode(textPrompt);
attributeTitle.Style.Add("font-weight", "bold");
//description
if (!string.IsNullOrEmpty(attribute.ProductAttribute.LocalizedDescription))
attributeTitle.Text += string.Format("<br/><span>{0}</span>", Server.HtmlEncode(attribute.ProductAttribute.LocalizedDescription));
bool addBreak = true;
switch (attribute.AttributeControlType)
{
case AttributeControlTypeEnum.TextBox:
{
addBreak = false;
}
break;
default:
break;
}
if (addBreak)
{
attributeTitle.Text += "<br />";
}
Am i missing something here
thanks in advance