VB.Net 中的换行符? [英] New line character in VB.Net?

查看:82
本文介绍了VB.Net 中的换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 vb.net 的网页上打印一条消息.我试图在新行中获取消息.我尝试使用 "\r\n" 和换行符.但这会打印在页面中,而不是进入下一行.如果有其他选择,请告诉我.

I am trying to print a message on a web page in vb.net. I am trying to get the messages in new lines. I tried using the "\r\n" and the new line character. But this is getting printed in the page instead of it comming to the next line. Please let me know if there is any alternative.

推荐答案

您需要在网页上使用 HTML 来获取换行符.例如<br/>"会给你一个换行符.

You need to use HTML on a web page to get line breaks. For example "<br/>" will give you a line break.

这篇关于VB.Net 中的换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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