Solved

ASP.NET Code Behind doesn't work

Posted on 2008-10-30
3
210 Views
Last Modified: 2013-11-07
Hi,

I have created a Webform in VS 2005 using VB ASP.NET and using a seperate code behind file and have placed these files in a folder under the root directory that I have created called "user".

However, none of the Code Behind functionality works including Page_Load.  If I move these files into the root directory it works OK. The only method I have found is to move of the Behind Code onto the Webform itself between a couple of <script runat=server> tags.

How can I get the webform in the folder to work so the functionality works like it does when in the root directory.
0
Comment
Question by:micr0Sc0pe
[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
3 Comments
 
LVL 13

Expert Comment

by:sm394
ID: 22846248
check on top of your aspx file for codefile and inherits
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
0
 

Author Comment

by:micr0Sc0pe
ID: 22846341
This line was automatically created when I setup the page.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Users.aspx.vb" Inherits="usr_Users" %>

Open in new window

0
 
LVL 13

Accepted Solution

by:
sm394 earned 125 total points
ID: 22846368
in that case i can only say try
AutoEventWireup="true"
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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