?
Solved

ASP.NET Code Behind doesn't work

Posted on 2008-10-30
3
Medium Priority
?
212 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 500 total points
ID: 22846368
in that case i can only say try
AutoEventWireup="true"
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

800 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