skip to main | skip to sidebar

SharePoint/MOSS, .NET, Accessibility, Usability Blog - Markus Schneider

Sunday, March 7, 2010

WebPart button event fires only once

In order to make sure a button in a WebPart (for example to export data to excel) can be clicked more than once add the following to the OnClientClick event:

buttonExportToExcel.OnClientClick = "_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;";
Posted by Qualidator at 10:27 AM

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2012 (1)
    • ►  February (1)
      • How to extract a DLL from GAC in a minute
  • ►  2011 (1)
    • ►  March (1)
      • LINQ in upgraded VB.NET project
  • ▼  2010 (3)
    • ►  December (1)
      • Load DataSet Error: Cannot add a DataRelation or C...
    • ▼  March (2)
      • Strong Name an existing assembly (dll)
      • WebPart button event fires only once
  • ►  2009 (10)
    • ►  November (2)
      • Virtual PC: Performance Issues on Notebook, Mini-P...
      • The secrets of SQL Syntax Queries for Relevant Res...
    • ►  September (2)
      • Wildcards in the CONTAINS Predicate in Windows Sha...
      • Content for this URL is excluded by the server bec...
    • ►  August (1)
      • How to copy a MS SQL database from one server to a...
    • ►  July (4)
      • SharePoint Search Queries Test Utility
      • Export MOSS (SharePoint) page library (or any othe...
      • Save/export MOSS (SharePoint) Page Library as STP
      • Explorer.exe high CPU on Windows Server 2008
    • ►  May (1)
      • SharePoint Workflows: Delay Activity not working/f...

About Me

Qualidator
View my complete profile