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 6564055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:55:10+00:00 2026-05-25T13:55:10+00:00

Why do these errors occur, and how can they be fixed? Error 1 Expected

  • 0

Why do these errors occur, and how can they be fixed?

Error 1 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 9 19 EnterData

Error 2 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 11 54 EnterData

Error 3 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 25 23 EnterData

Error 4 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\DAL.cs 27 57 EnterData

Error 5 Type or namespace definition, or end-of-file expected C:\Documents and Settings\agordon\My Documents\Visual Studio 208\Projects\lomdb\EnterData\DataEntry\DAL.cs 39 9 EnterData

Error 8 The name ‘PopulateMainForm’ does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 25 53 EnterData

Error 9 The name ‘PopulateBatchTable’ does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 26 50 EnterData

Error 10 The name ‘PopulateProblemTable’ does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 27 54 EnterData

Error 11 The name ‘PopulateSpecimenTable’ does not exist in the current context C:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\lomdb\EnterData\DataEntry\WebForm1.aspx.cs 28 56 EnterData

I am keeping the IList classes in a file called DAL.cs in the same directory:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RadarGraphInsertDLL;

namespace EnterData.DataEntry
{
    public static IList<LOMDLL.Lom_Batch> PopulateBatchTable()
        {
            IList<LOMDLL.Lom_Batch> BatchTable = new IList<LOMDLL.Lom_Batch>();

            try 
            {
            
            }
            catch (Exception e)
            {

            }

            return BatchTable;
        }

        public static IList<LOMDLL.Lom_Problem> PopulateProblemTable()
        {
            IList<LOMDLL.Lom_Problem ProblemTable = new IList<LOMDLL.Lom_Problem();

            try
            {

            }
            catch (Exception e)
            {

            }

            return ProblemTable;
        }

        public static IList<LOMDLL.Lom_Specimen> PopulateSpecimenTable()
        {
            IList<LOMDLL.Lom_Specimen SpecimenTable = new IList<LOMDLL.Lom_Specimen();

            try
            {

            }
            catch (Exception e)
            {

            }

            return SpecimenTable;
        }

        public static LOMDLL.Main_Lom_Form PopulateMainForm()
        {
            //populate class
            LOMDLL.Main_Lom_Form TheForm = new LOMDLL.Main_Lom_Form();

            try
            {
                TheForm.lom_number = lom_numberTextBox.Text.ToInt();
                TheForm.identified_by = identified_byTextBox.Text;
                TheForm.occurrence_date = occurrence_dateTextBox.Text.ToDateTime();
                //TheForm.pre_contact = pre_contactTextBox.Text; //need to create this texdtbox
                //TheForm.pre_practice_code = pre_practice_codeTextBox.Text; //create this
                TheForm.report_by = report_byTextBox.Text;
                TheForm.report_date = report_dateTextBox.Text.ToDateTime();
                TheForm.section_c_comments = section_c_commentsTextBox.Text;
                TheForm.section_c_issue_error_identified_by = section_c_issue_error_identified_byTextBox.Text;
                TheForm.section_d_investigation = section_d_investigationTextBox.Text;
                TheForm.section_e_corrective_action = section_e_corrective_actionTextBox.Text;
                TheForm.section_f_comments = section_f_commentsTextBox.Text;
            }
            catch(Exception e)
            {
                
            }

            return TheForm;
        }
}
  • 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-25T13:55:10+00:00Added an answer on May 25, 2026 at 1:55 pm

    Your code isn’t valid. You cannot declare methods at namespace scope, they must reside in a class (or some other type) definition.

    namespace EnterData.DataEntry
    {
        public class Foo
        {
            public static IList<LOMDLL.Lom_Batch> PopulateBatchTable()
            {
                // code here...
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why am I getting these errors? alt text http://img39.imageshack.us/img39/2203/help.tif It says: Error: Request for
has anyone gotten these ms-access errors? what do they mean? im connecting access with
I continually get these errors when I try to update tables based on another
I've been getting these errors intermittently from sending email from my django app. I
I wrote this code I have these errors Cannot implicitly convert type x.Program.TreeNode' to
I am having trouble validating my xml schema. I get these errors on the
I am gettings these type of errors in a MFC VS6 project while linking
Many times I saw logging of errors like these: System.out.println(Method aMethod with parameters a:+a+
I'm kind of torn between these two error-handling models: Create a boolean Error and
All are from this post . What does these statement mean: error(nargchk(5, 6, nargin));

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.