You must Sign In to post a response.
  • Category: ASP.NET

    How can i Remove Existing values from Textbox

    Hi all,

    I developed one website.in that am entering any values in the text box.
    it will pick up the values.but my problem was when i enter values into the text-box for next time or after log-off and log-on the window,the existing values or shown to the user.how can i remove those existing values from the text-box.

    i don't want keep existing values for any text-box what should i do..

    any one suggest me how can i solve the problem

    Thanks in advance.
  • #652550
    if your application is window application. follow the below steps
    1. Write a function that clear the controls values after the completion of process
    2. one log off you can also call that function

    if web application
    1. view state property should be false
    2. on page load you can clear the controls value.

  • #652558
    Hi,

    i tried it and it's not working still existing values are showned ..

    can u tell me how can i set the property.

  • #652592
    You can set the auto complete option of the Text box to OFF so that the entered value can be avoided.


    <asp:TextBox Runat="server" ID="Textbox1" autocomplete="off"></asp:TextBox>

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #652613
    Thanks it's working now...


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.