我需要在代码中添加输入文本

编程入门 行业动态 更新时间:2024-10-25 08:24:32
本文介绍了我需要在代码中添加输入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要在

< li > & nbsp;& nbsp;& nbsp; < a href = # class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtSecurityPass runat = server TabIndex = 3 工具提示 = رمزامنیتی 已启用 = false / > <% - < input type = password id = txtPass runat = server class = pass t abindex = 2 value = رمزعبور onfocus = this.value =''; onblur = if(this .value ==''){this.value ='رمزعبور';} /> - %> < / li >

但是在使用时输入文字不能输入任何想法 请帮帮我?? b / b < 表格 runat = server > < ul > <% - < li> < asp:DropDownList ID = comboCompany runat = server AutoPostBack = True class = LoginCombo表单控件 value = انتخاب شرکت /> < / li > - %GT; < li > & nbsp;& nbsp;& nbsp; < a href = # class = glyphicon glyphicon-user > < / a > < asp:TextBox ID = txtUserID runat = server TabIndex = 1 工具提示 = نامکاربری / > <% - < input type = text id = txtUserID runat = server class = text tabindex = 1 value = نامکاربری onfocus = this.value =''; onblur = if(this.value ==''){this.value ='نامکاربری';} /> - % > < / li > < li > & nbsp;& nbsp;& nbsp; < a href = # class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtPass runat = 服务器 TabIndex = 2 工具提示 = رمزعبور / > <% - < input type = password id = txtPass runat = server class = pass tabindex = 2 value = رمزعبور onfocus = this.value =''; onblur = if(this.value ==''){this.value ='رمزعبور' ;} /> - %> < / li > < ; li > & nbsp;& nbsp;& NBSP; < a href = # class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtSecurityPass runat = server TabIndex = 3 工具提示 = رمزامنیتی 已启用 = false / > <% - < input type = password id = txtPass runat = server class = pass t abindex = 2 value = رمزعبور onfocus = this.value =''; onblur = if(this .value ==''){this.value ='رمزعبور';} /> - %> < / li > < div > <% - < input type = text id = txtCaptcha runat = server class = form-control - %> <% - style = / * border-style * /:/ * none; border-color:inherit; border-width:* / / * medium;背景色:#233e84;红色; font-family:'Tahoma'; font-size:large; font-weight:bold; font-variant:normal;字母间距:6pt;宽度:12 * // * 0px; background-image:url('../ images / back.capcha1.jpg')* /; - %> <% - /> - %> <% - < input type = 按钮 onclick = Captcha(); value = class = form-control ref />متنراواردنمائید< asp :TextBox ID = txtCaptchaVerification runat = server cl ass = form-control cap1 > < / asp:TextBox > - %> < / div > < div class = 提交su > < asp:按钮 ID = btnLogin runat = server 文字 = تائید tabindex = 3 OnClick = btnLogin_Click / > <% - < div class = strip > < / div > - %> < div class = 消息 > < asp:Label ID = lblMessage runat = 服务器 > < / asp:标签 > < / div > < / div > <% - < div class = dropbox > < a class = drop href = # >انصراف< / a > ; < / div > - %GT; < div class = dropbox > < asp:LinkBut​​ton runat = server ID = lkbEnseraf 文字 = انصراف class = drop tabindex = 4 OnClick = lkbEnseraf_Click / > < / div > < div 类 = dropbox > & lt; asp:LinkBut​​ton runat = server ID = lkbChangePass 文字 = تغییررمزعبور class = drop tabindex = 5 / > < / div > < / ul > < /表格 > < / div > < ; / asp:Panel >

解决方案

您知道代码吗? 1.您已通过使电子nabled Property [ ^ ] false,阻止用户点击或输入。 2.你知道 $的目的吗? b $ b

<% - ... - %>

msdn.microsoft/en-us/library/4acf8afk(v = vs.85)的.aspx [ ^ ] 3.为什么使用没有任何文字或图像的超链接?

< a href =#class =glyphicon glyphicon-pencil >< / a>

我建议你放弃这个代码转储并学习正确的做法: 1. 学习HTML5和CSS3 [ ^ ] 2. 方案的ASP.NET演练 [ ^ ]

i need add input text after

<li> &nbsp;&nbsp;&nbsp; <a href="#" class=" glyphicon glyphicon-pencil"></a><asp:TextBox ID="txtSecurityPass" runat="server" TabIndex="3" ToolTip="رمز امنیتی" Enabled="false"/> <%-- <input type="password" id="txtPass" runat="server" class="pass" tabindex ="2" value="رمز عبور" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'رمز عبور';}" />--%> </li>

but when use cant type any think in input text please help me??

<form runat="server"> <ul> <%--<li> <asp:DropDownList ID="comboCompany" runat="server" AutoPostBack="True" class="LoginCombo form-control" value="انتخاب شرکت"/> </li>--%> <li> &nbsp;&nbsp;&nbsp; <a href="#" class ="glyphicon glyphicon-user"></a><asp:TextBox ID="txtUserID" runat="server" TabIndex="1" ToolTip="نام کاربری"/> <%-- <input type="text" id="txtUserID" runat="server" class="text" tabindex ="1" value="نام کاربری" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'نام کاربری';}" />--%> </li> <li> &nbsp;&nbsp;&nbsp; <a href="#" class=" glyphicon glyphicon-pencil"></a><asp:TextBox ID="txtPass" runat="server" TabIndex="2" ToolTip="رمز عبور"/> <%-- <input type="password" id="txtPass" runat="server" class="pass" tabindex ="2" value="رمز عبور" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'رمز عبور';}" />--%> </li> <li> &nbsp;&nbsp;&nbsp; <a href="#" class=" glyphicon glyphicon-pencil"></a><asp:TextBox ID="txtSecurityPass" runat="server" TabIndex="3" ToolTip="رمز امنیتی" Enabled="false"/> <%-- <input type="password" id="txtPass" runat="server" class="pass" tabindex ="2" value="رمز عبور" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'رمز عبور';}" />--%> </li> <div> <%--<input type="text" id="txtCaptcha" runat="server" class="form-control"--%> <%-- style="/*border-style*/: /*none; border-color: inherit; border-width:*/ /*medium; background-color:#233e84; color:r*//*ed; font-family: 'Tahoma'; font-size: large; font-weight: bold; font-variant: normal; letter-spacing: 6pt; width: 12*//*0px; background-image: url('../images/back.capcha1.jpg')*/;"--%> <%-- />--%> <%-- <input type="button" onclick="Captcha();" value="" class="form-control ref" />متن را وارد نمائید <asp:TextBox ID="txtCaptchaVerification" runat="server" class="form-control cap1"></asp:TextBox> --%> </div> <div class="submit su"> <asp:Button ID="btnLogin" runat="server" Text="تائید" tabindex ="3" OnClick="btnLogin_Click" /> <%-- <div class="strip"></div>--%> <div class="Message"> <asp:Label ID="lblMessage" runat="server"></asp:Label> </div> </div> <%-- <div class="dropbox"> <a class="drop" href="#">انصراف</a></div>--%> <div class="dropbox"> <asp:LinkButton runat="server" ID="lkbEnseraf" Text="انصراف" class="drop" tabindex ="4" OnClick="lkbEnseraf_Click"/> </div> <div class="dropbox"> <asp:LinkButton runat="server" ID="lkbChangePass" Text="تغییر رمز عبور" class="drop" tabindex ="5"/> </div> </ul> </form> </div> </asp:Panel>

解决方案

Do you know the code? 1. You have disabled the TextBox by making its Enabled Property[^] false which prevents the user from clicking or typing in it. 2. Do you know the purpose of

<%-- ... --%>

msdn.microsoft/en-us/library/4acf8afk(v=vs.85).aspx[^] 3. Why use hyperlink without any text or image?

<a href="#" class=" glyphicon glyphicon-pencil"></a>

I suggest you discard this code dump and learn to do the right thing right: 1. Learn HTML5 and CSS3[^] 2. ASP.NET Walkthroughs by Scenario[^]

更多推荐

我需要在代码中添加输入文本

本文发布于:2023-11-27 08:51:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637367.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!