Solved

Events not appearing in codebehind file

Posted on 2011-03-18
4
242 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Title # Comments Views Activity
Database Connections Not being returned to Connection Pool 7 41
FInd Image Control Gridview 3 35
VB.Net - BackgroundWorker running multiple 5 47
ModalPopup  question 22 38
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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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