Update LinkButtom in FormView Not Firing for first click

Posted on 2008-11-05
Last Modified: 2012-05-05
Dear Experts.

I have a formview with one LinkButton to perform Save Updates (CommandName='Update') for Edit Template.  I find it will not fire when I click it the first time.

Your help is appreciated.
Question by:SRO_TSG
    LVL 13

    Expert Comment

    Are you adding the event handler  in code behind. check if it is added everytime. You may be adding it on postback

    Accepted Solution

    Dear Expert.

    I "kind of" found and fixed the problem.  I added some codes for fixed-header grid.  It has one line "Page.EnableViewState = false;" . Then the 1st click does not work.

    I just commented it out and it seems fine now.  I added the linkbutton in the FormView.  There is no clicking event "specfically" declared for that.  Because the command name is "Update", I guess it fires the Update Command automatically.   Why the viewState will be affected by this..?  Thanks!


    Author Comment


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    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.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    731 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

    15 Experts available now in Live!

    Get 1:1 Help Now