2010-12-06 55 views
0

我想在insert blank characters的字符串中移动到next linealign right在Html编辑器中的ajax控件,它应该在我的下面的代码中硬编码。在html编辑器中添加空格和新行asp.net ajax

我的代码是

Editor1.Content = "No. J/" + DropDownList3.SelectedItem + "-" + TextBox1.Text + "-" + tyear + "/" + "  " + "/" + year + DateTime.Now.Day+"/"+DateTime.Now.Month+"/"+DateTime.Now.Year; 

我想是

我想要5个空格后

.... + tyear + "/" + " ....

Move to next/new line after 
....." + "/" + year +.... 

应用左对齐到这整个 内容

回答

3

要空格添加到 关键字。普通空格将被HTML分析器忽略为空格。

+0

如何在我的C#代码中编写它? – Ninad 2010-12-06 07:13:51

相关问题