Update LinkButtom in FormView Not Firing for first click

Posted on 2008-11-05
Medium Priority
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
  • 2
LVL 13

Expert Comment

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

Accepted Solution

SRO_TSG earned 0 total points
ID: 22887800
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

ID: 22898586

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

830 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