Solved

Events not appearing in codebehind file

Posted on 2011-03-18
4
228 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
Comment Utility
is the codebehind attribute set in the page directive ?
For reference please see: MSDN Page directive
0
 
LVL 7

Expert Comment

by:foobarr
Comment Utility
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
Comment Utility
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
Comment Utility
Was a corruption problem.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now