|
-
July 17th, 2007, 07:26 PM
#1
ASP.net structure design
Hi, I am a new bee in asp.net.I am going to use VB2005,C# to develop the asp project.
I have few question to ask here.
1.How do i maintain the repeated code?
2.What is the core structure flow in asp.net
3.Does anyone has any recommended web site and e book?
Thanks.
-
July 18th, 2007, 12:41 PM
#2
Re: ASP.net structure design
1. To Maintain code you re-use, create a separate class for the code. For example, if you have a function that calculates a total cost based on a product, price, and quantity you could create a class called CalculatePrice.cs. You can create a new object of the CalculatePrice.cs class and pass it the "product", "price", and "quantity", and the class would do all the math and return you the total cost.
2. What exactly do you mean what is the core structure flow in asp.net? Basically every aspx page is a front end page (like a web page) and .cs files are either the code behind files for each page or classes that help do "something" (see example above) for the web application. The App itself can be structured however you want it, with folders, sub folders, it all depends on what kind of site your building
3. Good web sties are this one, 4guysfromrolla.com, asp.net. Dont know of any e-books off hand.
hth,
mcm
rate my posts!
mcm
-
July 20th, 2007, 06:56 PM
#3
Re: ASP.net structure design
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|