DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 19 Aug 2007 15:56:01 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    pelegk1
          2    Manish Bafna
          3    Manish Bafna


GridView and html   
i have i the db html data like :
<sapn color="#aabbcc">aaa</span>
when i see it in the GridView ->html source, isee it like
<span color=.................
the thing is that u dont wnat thesource code to show <
but rather the original html code,beacuse whn  i watch at the tabblem
instead of seeing the "reslt of the html",from the above example its color,
i see only the code of the html
how can i by pass it thanks
peleg
Date:Sun, 19 Aug 2007 15:56:01 -0700   Author:  

RE: GridView and html   
Hi,
I dont think i have understood your question.But i think this is what you 
are try to do and you are getting HTML Displayed instead of Color:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
AllowSorting="True"
 AutoGenerateColumns="False" DataSourceID="SqlDataSource1" PageSize="5">
<Columns>
<asp:TemplateColumn>
 <ItemTemplate>
 <span style="margin-right:20px;"><%# Container.DataSetIndex + 1 %></span>
</ItemTemplate>
</asp:TemplateColumn>
 </Columns>
 </Columns>
</asp:GridView>
-- 
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"pelegk1" wrote:


> i have i the db html data like :
> <sapn color="#aabbcc">aaa</span>
> when i see it in the GridView ->html source, isee it like
> <span color=.................
> the thing is that u dont wnat thesource code to show <
> but rather the original html code,beacuse whn  i watch at the tabblem
> instead of seeing the "reslt of the html",from the above example its color,
> i see only the code of the html
> how can i by pass it thanks
> peleg
Date:Sun, 19 Aug 2007 21:10:01 -0700   Author:  

RE: GridView and html   
Hi,
Please ignore previous post.Try this code:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
AllowSorting="True" 
AutoGenerateColumns="False" DataSourceID="SqlDataSource1" PageSize="5"> 
<Columns> 
<asp:TemplateColumn> 
<ItemTemplate> 
<span  style="color:#0000FF;"><%# Container.DataSetIndex + 1 %></span> 
</ItemTemplate> 
</asp:TemplateColumn> 
</Columns> 
</Columns> 
</asp:GridView> 

-- 
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"pelegk1" wrote:


> i have i the db html data like :
> <sapn color="#aabbcc">aaa</span>
> when i see it in the GridView ->html source, isee it like
> <span color=.................
> the thing is that u dont wnat thesource code to show <
> but rather the original html code,beacuse whn  i watch at the tabblem
> instead of seeing the "reslt of the html",from the above example its color,
> i see only the code of the html
> how can i by pass it thanks
> peleg
Date:Sun, 19 Aug 2007 21:16:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us