Solved

Events not appearing in codebehind file

Posted on 2011-03-18
4
239 Views
Last Modified: 2012-05-11
I'm having a problem with my web application that just started.  When I try to add an event to any of my controls the code is generating in my content page instead of getting added to my code behind file. When I double-click a control or click on an event in my properties list it usually opens the vb codebehind file and generates the code in that file.  

This is only happening with some of my pages.  I am using VS 2008

Any ideas on why this is happening and how to fix it?
0
Comment
Question by:imstac73
  • 2
4 Comments
 
LVL 11

Expert Comment

by:melmers
ID: 35169236
is the codebehind attribute set in the page directive ?
For reference please see: MSDN Page directive
0
 
LVL 7

Expert Comment

by:foobarr
ID: 35183243
when you created the new aspx page did you check the box where it says generate code behind file?

in your content page the very first line

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>


What does your say for the CodeBehind?
0
 

Accepted Solution

by:
imstac73 earned 0 total points
ID: 35183317
Apparently we had some gremlins on our server.  The file worked fine before with no problems.  Nothing had been changed and I had already checked the page directive and the code behind file setting and everything was good.  I think the file somehow got corrupted.  We were able to restore a previous backup of the file and now it is working again.
0
 

Author Closing Comment

by:imstac73
ID: 35221234
Was a corruption problem.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 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