Solved

ASP.NET Code Behind doesn't work

Posted on 2008-10-30
3
211 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

Independent Software Vendors: 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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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