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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:29:21+00:00 2026-05-27T12:29:21+00:00

I am a newborn programmer who is currently looking into the Insert, Update and

  • 0

I am a newborn programmer who is currently looking into the Insert, Update and Delete functions in ASP.NET C#. Now I got a little support from a friend who was friendly enough to write a DataAccess for me (I guess it’s a BLL) before he left for work.

I am used to using Datasets and gridviews which is all pretty straight forward, so this way of working with data is very very difficult to me.

Now, I have lots of codes in the DataAccess, but I guess this is the one I have to concentrate about:

/// <summary>
/// Used for Create/Update/Delete etc.
/// </summary>
public void Execute(string query)
{
    SqlCommand comm = GetSqlCommand(query);

    _conn.Open();
    comm.ExecuteNonQuery();
    _conn.Close();
}

And I am wondering:

  1. How do I use an Insert, Update And Delete from a DataAccess file
  2. What am I supposed to put into my .aspx page?

I hope my questions isn’t too “large” an area to explain if you know what I mean 🙂
Any help is more than appreciated guys!

Regards,
Mike

  • 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-27T12:29:22+00:00Added an answer on May 27, 2026 at 12:29 pm

    aaa hi mike,lets review on n-tier architecture :

    DB <-> DAL <-> BLL <-> PL

    the sample code you write in your question is one part of DAL layer, not BLL layer

    about first question :

    it depend on your architecture . if you have 3-tier approach , so in your aspx file just write something like this :

    new DAL().Execute("INSERT INTO TABLE TABLENAME VALUES (...)");
    

    but if you have 4-tier approach ,so you just put this(last mentioned code) code in your BLL classes and in your aspx file call a method from BLL classes.

    but i have another offer for you my friend , use newer technique such as LinQ or Entity Framework to create your DLL layer and then create a BLL layer.

    if you need more help comment me to edit my reply or post another answer for more details.

    thanks , Ali

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

Sidebar

Related Questions

this is really simple but I am sleep deprived (newborn baby) and can't seem
I have a task - add round corners to HtmlPanelGrid. Now I am trying
I'm a newborn developer for iPad, I finally finished an app and I want
I'm a new-born programmer so I am NOT experienced, nor do I understand all
Is there a way to merge two exe files into one, programmatically, so that
I have two tables: AgeMilestones //Represents available timespans Id int Description varchar //(newborn, 1
Assuming i want to open another activity from my current activity and i want
I have an activity A that launches B with an Intent. (B is a
I have an entry I need to accept a person's date of birth in.
How would you rate the efficiency of a certain design? What are your variables?

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.