Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4100156
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:31:48+00:00 2026-05-20T20:31:48+00:00

I have a normal web form with code behind, in this code behind I

  • 0

I have a normal web form with code behind, in this code behind I can instantiate a couple of classes I have in the root folder, such as:

public partial class _Default : System.Web.UI.Page

{
    Helper helper = new Helper();

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        Initialise();
    }
}

And in the Helper class:

public class Helper
{

It’s working fine but I now want to move my class files (Helper.cs for example) to the app_code folder but when I run the application I get error on

SharePoint sharePoint = new SharePoint();

public string id { get; set; }

must declare a body because it is not marked abstract or extern

What is causing this issue and how do I fix it?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:31:49+00:00Added an answer on May 20, 2026 at 8:31 pm
    public string id { get; set; }
    

    is an automatic property and these were added in C# v3.0 / .Net v3.5, so ensure you are targetting this version or higher in your project settings. If you wish to target an earlier version you’ll need to use properties with a backing field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very basic custom edit form, an aspx with code behind. It
In normal WebForms scenario, any root-relative URLs (e.g. ~/folder/file.txt) inside CSS files such as:
I have a web page that doesnt fit screen in normal resolution, so I
I have a normal textbox in my application. I can paste data to it
I have a normal asp.net page containing some code that I want to measure
Is it normal to have tests that are way bigger than the actual code
I have turned a normal PHP class into a library so I can use
i have a web form who send post variables like: <form action=teacher.php method=post> <input
I have a Web Form whose sole purpose is to redirect to other pages.
I have a web page containing a login form which loads via HTTP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.