My button click event runs twice in my VS 2005 - need help
-
Hello, I converted a VS 2003 project to VS 2005. It works perfectly alright in VS 2003 but when I try running in VS 2005 I got strange thing going on. The code (my button click event ) runs twice? Has any one run into this kind of situation before please help. Am I missing some thing here? or do I need to set an option here? Thanks, -L
-
Hello, I converted a VS 2003 project to VS 2005. It works perfectly alright in VS 2003 but when I try running in VS 2005 I got strange thing going on. The code (my button click event ) runs twice? Has any one run into this kind of situation before please help. Am I missing some thing here? or do I need to set an option here? Thanks, -L
Is 'AutoEventWireup' set to 'true' on your web page? If so, then any event handling methods starting with "Page_..." don't need to be wired up. In VB, they don't need to the 'Handles' clause or an AddHandler statement and in C# you don't need the "+=" event wireup. Alternatively, you could just set 'AutoEventWireup' to 'false'.
David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter C++ to C# Converter: converts C++ to C# Instant C++: converts C# to C++/CLI and VB to C++/CLI Instant Python: converts C# to IronPython and VB to IronPython