Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have problem textbox is not editable after a single click. I have to make double to click to write in it. On single click it cursor goes to upper text box. How to remove it. please help me.
Thanks in advance

[Edit]
XML
<label>
  Area(in Sq Ft)
  <asp:RequiredFieldValidator ID="RequiredFieldValidator1"  runat="server" ControlToValidate="Txtarea"
ValidationGroup="1"> <img alt=""
src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
  <asp:TextBox ID="Txtarea" runat="server">

  <br />
  Region
  <asp:TextBox ID="Txtregion" runat="server">
  Name
  <span>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtName" ErrorMessage="Enter Your Name"  ValidationGroup="1">
    <img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
    <asp:TextBox ID="TxtName" runat="server">
    Mobile No.
    <asp:TextBox ID="txtmobile" runat="server">

    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="^[0-9]{10}"
  ControlToValidate="txtmobile" ErrorMessage="Incorrect Number" ValidationGroup="1">
    <img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
    <br />
    <div style="clear: both; padding-top: 22px;">
    </div>
    <asp:Button ID="Btnsave" runat="server" Text="Send" Width="78px" Style="color: #fff;
  font-size: 12px; line-height: 15px; background: url(../images/button-1.jpg) 0 0 repeat-x #08489f;
  border-top: #339ed3 1px solid; border-right: #2881c3 1px solid; border-bottom: #1a62b1 1px solid;
  border-left: #2881c3 1px solid; display: inline-block; text-decoration: none;
  padding: 5px 21px 7px 19px; cursor: pointer;" OnClick="Btnsave_Click" ValidationGroup="1" />

    <asp:Label ID="Label1" runat="server" ForeColor="Black">
  </span>
</label>

[/Edit]
Posted
Updated 10-Sep-13 22:48pm
v3
Comments
Joezer BH 11-Sep-13 4:23am    
If you have the source code, please show it, in order to help us understand what heppens
Mohd Arif Khan 11-Sep-13 4:31am    
sir source code is

<label>
Area(in Sq Ft)
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txtarea"
ValidationGroup="1"> <img alt=""
src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
<asp:TextBox ID="Txtarea" runat="server">
 
<br />
 Region 
<asp:TextBox ID="Txtregion" runat="server">
 Name<span>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtName"
ErrorMessage="Enter Your Name" ValidationGroup="1"> <img
alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
<asp:TextBox ID="TxtName" runat="server">   
Mobile No.

<asp:TextBox ID="txtmobile" runat="server">
 
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="^[0-9]{10}"
ControlToValidate="txtmobile" ErrorMessage="Incorrect Number" ValidationGroup="1">
<img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' />
<br />
<div style="clear: both; padding-top: 22px;">
</div>
<asp:Button ID="Btnsave" runat="server" Text="Send" Width="78px" Style="color: #fff;
font-size: 12px; line-height: 15px; background: url(../images/button-1.jpg) 0 0 repeat-x #08489f;
border-top: #339ed3 1px solid; border-right: #2881c3 1px solid; border-bottom: #1a62b1 1px solid;
border-left: #2881c3 1px solid; display: inline-block; text-decoration: none;
padding: 5px 21px 7px 19px; cursor: pointer;" OnClick="Btnsave_Click" ValidationGroup="1" />

<asp:Label ID="Label1" runat="server" ForeColor="Black">
 </span></label>
lukeer 11-Sep-13 4:50am    
Code belongs in the question. Use the "Improve Question" link to do so.
Wrap code in tags like <pre lang="xml">YourCodeHere();</pre> (done).
Thomas Barbare 11-Sep-13 4:36am    
Please retag your question ASP.NET

i think that due to the improper close of the tags (asp controls) this issue might have raised.

i changed the code a bit and it worked fine for me. Check it out


XML
<label>
       Area(in Sq Ft)
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txtarea"
           ValidationGroup="1"> <img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' /> </asp:RequiredFieldValidator>
       <asp:TextBox ID="Txtarea" runat="server"></asp:TextBox>
       <br />

       Region
       <asp:TextBox ID="Txtregion" runat="server"></asp:TextBox>
       Name
       <span>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtName"
               ErrorMessage="Enter Your Name" ValidationGroup="1"> <img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' /></asp:RequiredFieldValidator>
           <asp:TextBox ID="TxtName" runat="server"></asp:TextBox>

           Mobile No.
           <asp:TextBox ID="txtmobile" runat="server"></asp:TextBox>
           <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="^[0-9]{10}"
               ControlToValidate="txtmobile" ErrorMessage="Incorrect Number" ValidationGroup="1">
                       <img alt="" src='<%=ResolveClientUrl("~/Images/erroricon.png")%>' /></asp:RegularExpressionValidator>
           <br />
           <div style="clear: both; padding-top: 22px;">
           </div>
           <asp:Button ID="Btnsave" runat="server" Text="Send" Width="78px" Style="color: #fff;
               font-size: 12px; line-height: 15px; background: url(../images/button-1.jpg) 0 0 repeat-x #08489f;
               border-top: #339ed3 1px solid; border-right: #2881c3 1px solid; border-bottom: #1a62b1 1px solid;
               border-left: #2881c3 1px solid; display: inline-block; text-decoration: none;
               padding: 5px 21px 7px 19px; cursor: pointer;" ValidationGroup="1" />
           <asp:Label ID="Label1" runat="server" ForeColor="Black"></asp:Label>
       </span>
   </label>
 
Share this answer
 
Comments
Mohd Arif Khan 11-Sep-13 5:17am    
@ Khandwawala Hatim it is also not working in my page
label tag was crating such problem, after removing it. working well :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900