如何通过默认值将0插入可编辑的文本框? [英] How to insert 0 to a editable textbox bydefault?

查看:99
本文介绍了如何通过默认值将0插入可编辑的文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生..

我有一个texbox即不是只读..

文本bydefault必须填0,然后用户可以改变值取决于要求...

>有谁知道怎么做?



我尝试过:



hello sir..
I have one texbox i.e not readonly..
that text bydefault has to get filled by 0 and then user may alter the value depends on the requirement...
>Does anyone know how to do this?

What I have tried:

<pre><label >
                            <asp:TextBox ID="TextBox1" runat="server"  autocomplete="off"></asp:TextBox></label>

推荐答案

你不能这样做:
<asp:TextBox ID="TextBox1" runat="server">0</asp:TextBox>


<asp:TextBox ID="TextBox1" Text="0" runat="server" autocomplete="off"></asp:TextBox>


这篇关于如何通过默认值将0插入可编辑的文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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