我对Button文本有疑问 [英] I have question about the Button text

查看:69
本文介绍了我对Button文本有疑问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Asp.net按钮中添加多个文本?怎么做?



我需要一个chage我的buttion文本.data gridview选择索引更改活动。



EX-

数据网格值= true

Button1 text = INACTIVE



数据网格值= False

Button1 text = ACTIVE



Livewise。

I Want to Add Mutiple text in Asp.net Button?How to do it??

I need a chage My buttion text .data gridview selected index change event.

EX-
Data grid value= true
Button1 text=INACTIVE

Data grid value= False
Button1 text=ACTIVE

Livewise.

推荐答案

我不确定。但当我搜索它时,我找到了一些答案。



您可能需要一些文本,它会在按钮上逐行显示。

所以,请尝试以下代码。

I am not sure. But when I googled about it, I found some answer.

You may want some text, which will come line by line on the button.
So, try the below code.
<asp:Button ID="btn" runat="server" Text="Line one&#13;&#10;Line two&#13;&#10;Line three" style="text-align:center" />





按钮上的文字如下所示。





The text on button will come like below.

Line one<br />
Line two<br />
Line three





参考 -

1. 多行按钮文本 [ ^ ]

2. 多行HTML按钮 [ ^ ]。



谢谢......



Refer -
1. MULTIPLE LINE BUTTON TEXT[^]
2. Multiline HTML buttons[^].

Thanks...


这篇关于我对Button文本有疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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