Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i created one application in 3-tier architecture ..so the problem is i take one checkboxlist in ui design page..so how can we send checked items into codingpage(DAL,Bal) and how can we store data in the database table..
Posted

The whole idea of a 3 tier application is that you create classes with properties in your model layer, and then you bind these properties to control on your UI Layer. When a user updates any property, it is the job of the Model Layer to then save the updates to the data base through your Data Access Layer. Therefore your checkbox should be bound to a boolean property in your class. If the user unchecks the checkbox, the boolean property should be set to false. Then when the user saves the changes, the boolean property should be saved to it's corresponding database column by the DAL.

Hope this helps
 
Share this answer
 
You need to read on what is 3-Tier architecture.

Have a look at these, explaination with samples:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]


You need to pass on the selection from UI to DAL via BL(where you can make any change if you want to). In DAL, you will work the value with database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900