Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

GridView and html

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pelegk1 - 19 Aug 2007 23:56 GMT
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
Manish Bafna - 20 Aug 2007 05:10 GMT
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>
Signature

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

> i have i the db html data like :
> <sapn color="#aabbcc">aaa</span>
[quoted text clipped - 6 lines]
> how can i by pass it thanks
> peleg
Manish Bafna - 20 Aug 2007 05:16 GMT
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>

Signature

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

> i have i the db html data like :
> <sapn color="#aabbcc">aaa</span>
[quoted text clipped - 6 lines]
> how can i by pass it thanks
> peleg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.