CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    141

    Smile 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.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    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

  3. #3
    Join Date
    Jul 2006
    Posts
    141

    Re: ASP.net structure design

    Thanks mcmcom...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured