How do I get an ASP.NET (C#) textbox to update the number added on a button click.  I have to click button twice.

Posted on 2012-09-05
Last Modified: 2012-09-13
I have a textbox that contains the quantity of the item.  I set the auto postback to true, but when I change the value or number in the box,  the value does not update until the button is clicked a second time

Thanks for any help!
Question by:bmanmike39
    LVL 22

    Accepted Solution

    If you have taken, Button control and fired its Button_Click() event in code behind, then it is not needed to set autopostback ="true".
    Because by default, button click fires server side event.
    LVL 20

    Expert Comment

    Where is not updating?

    Hav u checked the


    in the pageload event?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now