C#equiv of Chr(13) [英] C# equiv of Chr(13)

查看:95
本文介绍了C#equiv of Chr(13)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Lo,


在以前版本的应用程序中,我使用replace将多行文本

框转换为更容易放入数据库的东西,当我需要显示数据时,我用了

replace(chr(13),"< br>")。


我'我正在开发这个应用程序的新版本,我正在使用C#/ .NET。

显然我正在使用旧的数据库,但我无法找到怎么做

replace(chr(13),"< br>")。


基本上,C#中的Chr(13)是什么:o)


干杯

Dan

Lo,

In a previous version of an app, I used replace to convert multiline text
boxes to something easier to put in a database, and then i used
replace(chr(13), "<br>") when i needed to show the data.

I''m now working on a new version of this app, and im using C# / .NET.
Obviously I''m using the old database, but I cant find out how to do
replace(chr(13), "<br>").

Basically, what''s Chr(13) in C# :o)

Cheers
Dan

推荐答案

Dan,

我认为你在寻找\ n。


-Chris
http://weblogs.austinspad.com/caustin

Dan Nash < da*@musoswire.co.uk>在留言中写道

新闻:F3 ********************************** @ microsof t.com ...
Dan,

I think you are looking for "\n".

-Chris
http://weblogs.austinspad.com/caustin

"Dan Nash" <da*@musoswire.co.uk> wrote in message
news:F3**********************************@microsof t.com...
Lo,

在以前版本的应用程序中,我使用replace将多行文本
框转换为更容易放入的内容我需要显示数据时使用
replace(chr(13),"< br>")。这个应用程序的新版本,我正在使用C#/ .NET。
显然我正在使用旧数据库,但我无法找到如何做
替换(chr(13)," < br>")。

基本上,C#中的Chr(13)是什么:o)

干杯

Dan
Lo,

In a previous version of an app, I used replace to convert multiline text
boxes to something easier to put in a database, and then i used
replace(chr(13), "<br>") when i needed to show the data.

I''m now working on a new version of this app, and im using C# / .NET.
Obviously I''m using the old database, but I cant find out how to do
replace(chr(13), "<br>").

Basically, what''s Chr(13) in C# :o)

Cheers
Dan



试试System.Environment.NewLine


Karl


- -

我的ASP.Net教程
http:// www .openmymind.net /

" Dan Nash" < da*@musoswire.co.uk>在留言中写道

新闻:F3 ********************************** @ microsof t.com ...
Try System.Environment.NewLine

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Dan Nash" <da*@musoswire.co.uk> wrote in message
news:F3**********************************@microsof t.com...
Lo,

在以前版本的应用程序中,我使用replace将多行文本
框转换为更容易放入的内容我需要显示数据时使用
replace(chr(13),"< br>")。这个应用程序的新版本,我正在使用C#/ .NET。
显然我正在使用旧数据库,但我无法找到如何做
替换(chr(13)," < br>")。

基本上,C#中的Chr(13)是什么:o)

干杯

Dan
Lo,

In a previous version of an app, I used replace to convert multiline text
boxes to something easier to put in a database, and then i used
replace(chr(13), "<br>") when i needed to show the data.

I''m now working on a new version of this app, and im using C# / .NET.
Obviously I''m using the old database, but I cant find out how to do
replace(chr(13), "<br>").

Basically, what''s Chr(13) in C# :o)

Cheers
Dan



大家好


这些都不奏效。我想我需要实际放入ascii char 13,但

我不知道怎么做。在数据库中,它看起来像一个小方框!我想用< br>替换它是



任何想法?

" Chris Austin" ;写道:
Hi guys

Neither of those work. I think I need to actually put the ascii char 13, but
im not sure how to do it. In the db it looks like a little square box! It''s
that I want to replace with <br>.

Any ideas?
"Chris Austin" wrote:
Dan,

我认为你正在寻找\ n。

-Chris http://weblogs.austinspad.com/caustin

丹纳什 < da*@musoswire.co.uk>在消息中写道
新闻:F3 ********************************** @ microsof t.com。 ..
Dan,

I think you are looking for "\n".

-Chris
http://weblogs.austinspad.com/caustin

"Dan Nash" <da*@musoswire.co.uk> wrote in message
news:F3**********************************@microsof t.com...
Lo,

在以前版本的应用程序中,我使用replace将多行文本框转换为更容易放入数据库的东西,以及然后当我需要显示数据时,我使用了
replace(chr(13),"< br>")。

我正在研究新版本的这个应用程序,我正在使用C#/ .NET。
显然我正在使用旧的数据库,但我无法找到如何做
替换(chr(13),< br> 基本上,C#中的Chr(13)是什么:o)

干杯

Dan
Lo,

In a previous version of an app, I used replace to convert multiline text
boxes to something easier to put in a database, and then i used
replace(chr(13), "<br>") when i needed to show the data.

I''m now working on a new version of this app, and im using C# / .NET.
Obviously I''m using the old database, but I cant find out how to do
replace(chr(13), "<br>").

Basically, what''s Chr(13) in C# :o)

Cheers
Dan




这篇关于C#equiv of Chr(13)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆