编程问题:在ASP.NET中如何在页面中输出空格。

 我来答
叛逆尊1340
2014-07-20 · TA获得超过143个赞
知道答主
回答量:116
采纳率:0%
帮助的人:139万
展开全部
private void CreateTreeEx(string parentNo) { ExList<string[,]> nodeLists; nodeLists = this.GetNodeInfo(parentNo); if (nodeLists != null) { string[,] nodeInfo; string Value; string Text; if (Constant.IsChinese) { for (int i = 0; i < nodeLists.Count; i++) { nodeInfo = nodeLists[i]; Value = nodeInfo[0, 0].ToString(); Text = nodeInfo[0, 1].ToString(); this.Items.Add(new ListItem(GetText(Text, parentNo), Value)); CreateChildNode(nodeInfo[0, 3].ToString()); } } else { for (int i = 0; i < nodeLists.Count; i++) { nodeInfo = nodeLists[i]; Value = nodeInfo[0, 0].ToString(); Text = nodeInfo[0, 4].ToString(); this.Items.Add(new ListItem(GetText(Text, parentNo), Value)); CreateChildNode(nodeInfo[0, 3].ToString()); } } } } const string KGString = " "; private string GetText(string text, string parentNo) { int len = parentNo.Length; int ys = len / 5; string newText = string.Empty; for (int i = 0; i < ys; i++) { newText += KGString; } newText = newText + text; return newText; }
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式