PC Review


Reply
Thread Tools Rate Thread

p class in datagrid

 
 
damezumari
Guest
Posts: n/a
 
      30th Jan 2006
I use visual studio 2003 and win2000.

I use a datagrid in a web form. I would like to give a p tag a special
format using a class called 'question'. I am not able to get it to
work.How do I refer to the class in the css file?

<HEAD>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<link rel="stylesheet" type="text/css" href="mainframe.css" />
</HEAD>
<body>
<div id="ans"><asp:datagrid id="DataGrid1" ShowHeader="False"
GridLines="None" AutoGenerateColumns="False" Height="152px"
Width="216px" runat="server" CSSClass="DataGrid">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<p class="question"><%# DataBinder.Eval(Container.DataItem, "question")
%></p>
<p><%# DataBinder.Eval(Container.DataItem, "answer") %></p>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid></div>
</body>

Regards,

Jan Nordgreen

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can it possible redefine class with subclass when inherit base class with sub class? ABC Microsoft C# .NET 4 11th Jan 2006 12:13 AM
error LNK2019: unresolved external symbol "public: static class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > danip Microsoft VC .NET 0 5th Dec 2005 11:01 AM
Getting a reference to the base class of a base class from an inherited class Edward Forgacs Microsoft C# .NET 1 24th Apr 2004 11:06 AM
Pass an instantiated base class to a new class that inherits the same class -- Possible?? Brad Navarro Microsoft C# .NET 3 9th Jan 2004 02:07 AM
activex ,money tree dialer,RdxE Class,updaate class,YInstStarter Class damaged RUSSELL Windows XP Performance 1 23rd Nov 2003 03:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.