473,466 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can we use html Tag in GridView

ad
I want to change some color of words in a GridView.
So I add some Html tag to the words in a Gridview like:

<font color='Red'>MyTest Words</font>

But the it did not change the color but jset how the Html tag around it.

If we can use html tag in the content of GirdView?
Apr 24 '06 #1
1 1443
"ad" <fl****@wfes.tcc.edu.tw>'s wild thoughts were released
on Tue, 25 Apr 2006 05:33:25 +0800 bearing the following
fruit:
I want to change some color of words in a GridView.
So I add some Html tag to the words in a Gridview like:

<font color='Red'>MyTest Words</font>

But the it did not change the color but jset how the Html tag around it.

If we can use html tag in the content of GirdView?


Yes you can, but I think you need to post more to determine
why it'n not working for you.

I added your example in my RowDataBound event in the grid
I'm working on now, and I see nice red text as expected.

Jan Hyde (VB MVP)

--
Rich foods are like destiny. They, too, shape our ends. (Art. Moger)

Apr 25 '06 #2

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

Similar topics

0
by: Joey | last post by:
Hello all, I am trying to read a directory listing into a string and then use that data, along with some other data, to create HTML for display in a gridview row. A sample item in the string...
0
by: peter.moss | last post by:
Right, I thought the idiots at MS had sorted this one out in 2.0 but alas - no such bloomin' luck. If I reset the style on my GridView control and just give it a CssClass (trying to be all nice,...
0
by: Steinbrenner | last post by:
I have tried to upgrade my code to use a gridview instead of a datagrid. My datasource is a dataset, and the dataset contains embedded HTML (i.e., <HRand <BRtags). The datagrid would interpret...
2
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
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...
19
by: ThatsIT.net.au | last post by:
I come from a classic asp background, but have started using ASP.NET about 12 months ago, but I'm still not sure about the pros and cons of using controls v HTML spat out from code as you would in...
2
by: =?Utf-8?B?R2lyaXNo?= | last post by:
Hello All, I am displaying a report in a gridview and also in a separte html table. When the user clicks a print button, I print the report (from gridview or from html table). But I want to repeat...
13
by: frankiefrank | last post by:
I have an aspx with a gridview (paged and sorted) and I want to display it in a new page - typical Print Preview situation. Initially the GridView was "simple" (no paging) and I wrote a...
0
by: =?Utf-8?B?QW5keSBpbiBTb3V0aCBKZXJzZXk=?= | last post by:
I want to use a RadioButtonList Control(HTML) in a GridView control. I can see the RadioButtonList control with each row in the GridView with the code: <asp:GridView ID="GridView1"...
1
by: Stimp | last post by:
Hi all, I want to override the GridView control so that the only html output in the <tabledeclaration is: <table id="tableID"> I don't want the "border" or "rules" or "style" attributes to...
3
by: cmrhema | last post by:
I am converting an html into pdf, I have observed that the pdf is getting generated but not properly. i.e. the Datalist2 and the gridview2 present inside the Datalist2 is not getting populated....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.