Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3499180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:34:49+00:00 2026-05-18T12:34:49+00:00

I’ve got an issue involving a website that I have been using VS 2008

  • 0

I’ve got an issue involving a website that I have been using VS 2008 for, until a few months ago when I bought VS 2010. I did not ‘upgrade’ the website — VS 2010 asked me if I wanted to, and I said ‘no’. I ran into a problem the first time I tried to use VS 2010 to edit this website — found a work-around that has been working for the past 3 months. But now, all of a sudden, the work-around seem to be failing.

When working on a website from the design window (either 2008 or 2010), you can double-click, for example, a button and it will open the code-behind for the button’s on-click event.

For some reason that I have not figured out yet, VS 2010 decides to make a brand-new event sub, in addition to the one I’ve already got. For example, I’ve got a button with an on-click event (Created in VS 2008) like this:

Protected Sub btn_next_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_next.Click
...
End Sub

As soon as I open the website in VS2010, and double-click the button in the design window, it creates a brand new event (duplicating all of the code inside the ‘sub / end sub’) like this:

Protected Sub btn_next_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_next.Click
...
End Sub

(notice that in the duplicate event sub it changes the name of the sub by adding a ‘1’)

If I delete the duplicate sub, it just comes back next time I double-click the button in the designer.

Not to mention, if I delete the duplicate sub and try to build the website, I get an error telling me it can’t find ‘Sub btn_next_Click1…’. (I’ve verified that the button’s markup does not have an ‘onclick=…’ attribute that would force it to look for this specific sub.

Finally, If I leave the duplicate sub there…the event is handled twice (the original sub runs once, and the duplicate sub runs once, since they both ‘handle’ the same event).

My work-around was to delete the original sub. That seemed to work for a time. But ever since I re-published the app yesterday, the duplicate sub has started running twice, even though the original sub has been deleted. I’ve verified this by adding stops in the debugger, and then stepping-through each line. This work-around, which has worked for a few months, all of a sudden isn’t working. Whatever I’ve done to cause it, I can’t see it.

BTW — the ‘re-publish’ I’m referring two was for a different page int he website. The page that’s got the problem I’m talking about in this post hasn’t been modified for months, and has been working fine all this time.

Any experience with this? Am I going to have to re-code my app from scratch in VS 2010?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:34:50+00:00Added an answer on May 18, 2026 at 12:34 pm

    I don’t think this is related to moving from 2008 to 2010. I get this from time to time as a result of edits that confuse the IDE.

    The answer is to delete the original. The reason a “1” is appended is because one without the “1” exists. Deleting the original fixes that.

    If that causes errors, you may need to edit the designer code directly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.