Solved

Events not appearing in codebehind file

Posted on 2011-03-18
4
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 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