Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Layers

Layers

Scheduled Pinned Locked Moved ASP.NET
questioncsharplearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kenexcelon
    wrote on last edited by
    #1

    I am learning a new way of setting up ASP .NET projects. So far, I've been using a structured approach as I am learning. However, now I am setting up projects using 3 layers, bl, dl, and dal. My question is, how would you databind a gridview going through all the layers? Any good examples? I couldn't really find any. Thanks

    D 1 Reply Last reply
    0
    • K kenexcelon

      I am learning a new way of setting up ASP .NET projects. So far, I've been using a structured approach as I am learning. However, now I am setting up projects using 3 layers, bl, dl, and dal. My question is, how would you databind a gridview going through all the layers? Any good examples? I couldn't really find any. Thanks

      D Offline
      D Offline
      Deepak the Cool
      wrote on last edited by
      #2

      You can create like this BO [Business Object] BLL [Business Logic Layer] DAL [Data Access Layer] Now First we define the BO Here you can create some property according to need.. Now You can create your BO,BLL class objects into your UI code behind... Now you assign the BO property BO oBO=new BO; myBLL oMyBLL=new myBLL(); oBO.PropertyName=ControlName.Text; dataset ds=oMyBLL(BO oBO); Now refer to you BLL Create a class in you BLL folder which has the paratemer of BO public dataset class myBAL(BO oBo) { } and this BO class call the DAl like this public dataset class myBAL(BO oBO) { return oDAL.YourSelectMethod(BO oBO) } Now DAL CLASS is like this public dataset Class myDAL(BO oBO) { // Your Code for select is here } above is the secenirio That will be some error.. Hope you solve it into you level. Here I given only example

      Deepak :) Smile a Lots,Its Costs Nothing

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups