2010-12-06 58 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

相關問題