Search code examples
asp.netvisual-studio-2008gridviewinternet-explorer-7buttonfield

GridView ButtonField postback not working in IE7?


I have an ASP.Net Web Site with GridView control that in turn contains a ButtonField column. It's supposed to do a postback when this ButtonField is clicked, but that doesn't happen if I click on the button from within the Internet Explorer window that Visual Studio opens while debugging. I can get it to successfully postback when I bring up and click on the ButtonField from an externally-invoked Internet Explorer window or a Firefox window, but never from the window Visual Studio produces.

I'm using:

  • Windows Vista Home Premium
  • Visual Studio 2008, running as Administrator
  • Internet Explorer 7.0.6000.16809
  • Firefox 3.0.6

Solution

  • I've determined the problem is due to running Visual Studio 2008 as Administrator under Windows Vista. Doing so causes some kind of issue with Javascript that prevents GridView ButtonFields from issuing postbacks. Contrary to Microsoft's advice for the previous version of Visual Studio (2005), debugging with Visual Studio 2008 running under Windows Vista requires that the IDE not be run using "Run as Administrator".