473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data type for a block of text?

Hey all, I'm coming from the ColdFusion world and am pretty new to .Net2. My
issue is, I've got a page where the content (with html formatting included)
is stored in a db table field. In MS Access, the field type was Memo, in
SSExpress I'm using nvarchar(max).

When I try to display the contents/paragraphs in my aspx page (using
Gridview) , I see all the html coding & formatting characters.

Am I using the right data type? Should I be using something other than
GridView? Am I even in the right forum for this question?

Also, I'm trying to find a listing of default value & binding functions like
"GetDate()" Any links?

Thanks in advance!
Sep 13 '07 #1
1 1242
You are going to have to take control of this. Most likely, you are using an
AccessDataSource control? If so, the actually data is stored as XML, which
will escape the <, and a few other characters, to conform to XML standards.
If you actually view source, you probably see this

&lt;H1&gt;My Header&lt;/H1&gt;

instead of this

<H1>My header</H1>

You may do better with a DataReader and binding the data to the controls
yourself, rather than using the "auto binding" in .NET.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Chris G." <Ch****@discussions.microsoft.comwrote in message
news:93**********************************@microsof t.com...
Hey all, I'm coming from the ColdFusion world and am pretty new to .Net2.
My
issue is, I've got a page where the content (with html formatting
included)
is stored in a db table field. In MS Access, the field type was Memo, in
SSExpress I'm using nvarchar(max).

When I try to display the contents/paragraphs in my aspx page (using
Gridview) , I see all the html coding & formatting characters.

Am I using the right data type? Should I be using something other than
GridView? Am I even in the right forum for this question?

Also, I'm trying to find a listing of default value & binding functions
like
"GetDate()" Any links?

Thanks in advance!

Sep 13 '07 #2

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

Similar topics

2
3070
by: Citoyen du Monde | last post by:
Trying to get some ideas on a simple javascript project (to teach myself the language). I want to develop a client-side vocabulary practice application that would allow users to enter their own...
5
8320
by: javaguy | last post by:
I have a data entry web application that is formatted heavily with tables. Having learned a bit of CSS, I'm hoping to rewrite this using <div> tags. But I have run into a formatting problem that...
9
1671
by: gov | last post by:
Hi, I've just started to learn programming and was told this was a good place to ask questions :) Where I work, we receive large quantities of data which is currently all printed on large,...
10
2876
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
4
3834
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
1
2737
by: tony.fountaine | last post by:
I am working on a project to read a Bosch Measurement Data File (MDF). The file contains a number of blocks that can be read from the file using a baisc structure. For example the ID BLOCK is as...
4
2275
by: Thomas Eichner | last post by:
Hi, does anybody know a public website which offers a service that displays all data send by a browser (or an app calling the website), especially HTTP GET and POST data, browser data etc.? I...
5
1826
by: harish2rock | last post by:
Hi..Me just a beginner in c++ programming. I have come acroos a program which is as follows : I have to prepare a file which contains the information in block format. as an example, the file...
1
1697
by: selvialagar | last post by:
i have two select boxes in my form named month and year...when i selected these two things, there is a submit button called 'generate invoice'. when i click this, invoice report is generated as a...
4
2543
by: Ty | last post by:
I have a SQL server 2000 DB that Ihave copied onto my PC and am using SQL server express 2005 to view. I created a project in VB.net and am reading the data out of the DB using...
0
7093
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
7287
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,...
1
7011
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
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4689
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
3180
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
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.