473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Aug 19 '07 #1
2 3745
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
Aug 20 '07 #2
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
Aug 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
8
by: Mike Kelly | last post by:
I've chosen to implement the "optimistic concurrency" model in my application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to my main tables. I read the value of the column in my...
2
by: MRW | last post by:
Hello! I don't know if this is possible, but I have two tables in a one-to-many relationship. I want one record to be displayed in a GridView from table1 with a blue background, followed by all...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
0
by: =?Utf-8?B?cGI2NDgxNzQ=?= | last post by:
We have been having this problem for months and always assumed it was because of our somewhat complicated setup. I have just spent almost all of today making this into a simple example that can be...
4
by: Tomasz | last post by:
Hello Developers, Here is interesting problem I just came across: how do I wire a GridView control programmatically? Here is my sample code using Object Data Source: protected void...
5
by: =?Utf-8?B?QWRhciBXZXNsZXk=?= | last post by:
Hi All, I have a GridView inside the EditItemTemplate of a FormView. Both FormView and GridView are data bound using an ObjectDataSource. When the FormView's ObjectDataSource object has a...
2
by: Blasting Cap | last post by:
I've got a gridview (that I converted over from a datagrid, which had been working properly), that is doubling up the number of rows returned. When it was running as a datagrid, the same code sent...
0
by: lamolap | last post by:
i have 1 gridview , a dropdownlist inside a gridview and a commandfield of (edit, update and cancel) my gidview looks like this Edit Surname Initials ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.