Click here to Skip to main content
15,885,885 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm doing a webform, where i need to select a row from a table eg an ip 10.0.0.*. That * would be the editable part in the textbox "tb_ip" which the "10.0.0." would be in gray and the last digit of the ip editable and black..

This is my code:
ASP.NET
<div class="diver">
                <asp:Label ID="Label2" runat="server" Text="Seleccione grupo IP"></asp:Label></div>
            <div class="diver">
                <asp:DropDownList ID="DropDownList3" runat="server">
                </asp:DropDownList>
            </div>
            <div class="diver">
                <asp:Label ID="Label4" runat="server" Text="Asigne una IP"></asp:Label> </div>
            <div class="diver">
                <asp:TextBox ID="tb_ip" runat="server"></asp:TextBox></div>


Thank you !
Posted

1 solution

You cannot. You may choose to create two separate text boxes, on of them read-only. Also, just think about it: if what you wanted was possible, how confusing and irritating it could be for your customers. You need to think about better UI design, not unnatural tricks.
—SA
 
Share this answer
 
v2
Comments
ronalboard 20-Aug-14 12:06pm    
Hi, thank you for your response. Would be better if I use this kind of solution? http://www.codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit
Sergey Alexandrovich Kryukov 20-Aug-14 12:46pm    
It totally depends on your goals (which I don't know) and is a separate unrelated question. If you need auto-complete, use it, why not?
I answered your original question...
—SA

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