473,386 Members | 1,810 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,386 software developers and data experts.

database storing > as it's html equivalent

While i save a record the database stores the character > as it's html
equivalent which is >. But when i update that record it saves the character
as > itself. Why would this happen?
--
Thanks
Prisy
Nov 17 '05 #1
2 1119
Prisy,

That doesn't sound like a database error, rather, it sounds like you are
getting in HTML encoding, and storing the record as that, not decoding the
string before you place it in the database.

Where are you getting the string from?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Prisy" <Pr***@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
While i save a record the database stores the character > as it's html
equivalent which is >. But when i update that record it saves the
character
as > itself. Why would this happen?
--
Thanks
Prisy

Nov 17 '05 #2
Hi Nicholas,

Thank you for your quick response. I figured out the answer to the problem.
The value is from a text area. Originally my code was as follows:

name = txtName.Value;

Instead either of the below will work:

name = txtName.InnerText;
or
name = Server.HtmlDecode(txtName.Value);

--
Thanks
Prisy
"Nicholas Paldino [.NET/C# MVP]" wrote:
Prisy,

That doesn't sound like a database error, rather, it sounds like you are
getting in HTML encoding, and storing the record as that, not decoding the
string before you place it in the database.

Where are you getting the string from?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Prisy" <Pr***@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
While i save a record the database stores the character > as it's html
equivalent which is >. But when i update that record it saves the
character
as > itself. Why would this happen?
--
Thanks
Prisy


Nov 17 '05 #3

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

Similar topics

1
by: Roderik | last post by:
Hi, When developing a website in general when should I choose to put content in a database. For menu options, settings, and listings like products it seems to be clear for me to put them in. But...
3
by: Mark | last post by:
I have a website with an increasing amount of articles and news reports and so I am thinking of moving away from storing each article as a seperate page to having a single page and storing articles...
12
by: bissatch | last post by:
Hi, Is it possible for me to store HTML tags inside XML nodes? I need some way to share news headlines. Because the headlines differ in their presentsation, it would be very difficult to store...
8
by: Gail Zacharias | last post by:
I am investigating the possibility of using pgsql as the database in an application. I have some unusual requirements that I'd like to ask you all about. I apologize in advance if my terminology is...
2
by: Jagdip Singh | last post by:
Hi all, I uninstalled db2 without dropping old instance. I have one database which i want to access again through new db2 i installed. I opted for fresh db2 directory while installing instead...
26
by: Jimmy | last post by:
ill have a database with 1 table and 3 fields: ID FIRSTNAME LASTNAME (the ID field will be the auto incrementing index) there might be 10 records in the DB, there might be 10,000. i...
36
by: pearl146 | last post by:
Hi, I have some database files (.MDF, .LDF,...) on the server. When I try to delete them, the warning "Cannot delete file: There has been a sharing violation. The source or destination file may...
2
by: zek2005 | last post by:
Hi! I have a value loaded in a database as following: &lt;p&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;test 2&lt;/ strong&gt;&lt;em&gt;&lt;strong&gt;questions&lt;img alt=&quot;&quot;...
13
by: Jonathan Wood | last post by:
I'd like to build a Website that contains many articles. Two basic approaches are to either store the articles in aspx files, possibly indexed by the database, or to store the article text in the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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,...

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.