我需要在代码中添加输入文本 [英] i need add input text in code

查看:58
本文介绍了我需要在代码中添加输入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在

 <   li  >  
& nbsp;& nbsp;& nbsp;
< a < span class =code-attribute> 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 = < span class =code-string> رمزعبور onfocus = this.value =''; onblur = if(this .value ==''){this.value ='رمزعبور';} /> - %>
< span class =code-keyword>< / li >





但是在使用时输入文字不能输入任何想法

请帮帮我??

b / b










< pre lang =xml> < 表格 runat = server >
< ul >
<% - < li>
< asp:DropDownList ID = comboCompany runat = server AutoPostBack = True class = LoginCombo表单控件 value = انتخاب شرکت />
< / li > - %GT;
< li >
& nbsp;& nbsp;& nbsp;
< a < span class =code-attribute> href
= class = glyphicon glyphicon-user > < / a > < asp:TextBox < span class =code-attribute> 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 < span class =code-attribute> href = class = glyphicon glyphicon-pencil > < / a > < asp:TextBox ID = txtPass runat = 服务器 TabIndex = 2 工具提示 = رمزعبور / >

<% - < input type = < span class =code-string> password id = txtPass runat = server class = pass tabindex = 2 value = رمزعبور onfocus = this.value =''; onblur = if(this.value ==''){this.value ='رمزعبور' ;} /> - %>
< < span class =code-leadattribute> / li >

< ; li >
& nbsp;& nbsp;& NBSP;
< a < span class =code-attribute> 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 = < span class =code-string> رمزعبور onfocus = this.value =''; onblur = if(this .value ==''){this.value ='رمزعبور';} /> - %>
< span class =code-keyword>< / li >

< div >

<% - < input type = < span class =code-string> 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 < span class =code-attribute> class = 消息 >
< asp:Label < span class =code-attribute> ID = lblMessage runat = 服务器 > < / asp:标签 >
< / div >
< / div >

<% - < div class = dropbox > < a class = drop href = >انصراف< / a > ; < / div > < /跨度> - %GT;
< div < span class =code-attribute> class
= dropbox >
< asp:LinkBut​​ton < span class =code-attribute> 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 < span class =code-keyword>>

< /表格 >

< / div >


< ; / asp:Panel >

解决方案

您知道代码吗?

1.您已通过使电子nabled Property [ ^ ] false,阻止用户点击或输入。

2.你知道
$的目的吗? b $ b

<% -  ...  - %> 



https://msdn.microsoft.com/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

<%-- ... --%>


https://msdn.microsoft.com/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[^]


这篇关于我需要在代码中添加输入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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