Coding Technique in ASP.Net:


  1. When we create any web page in ASP.Net.  A web page is divided into two parts
  2. Contains designing and we have extension of .aspx
  3. [.asPx means Active Server Page that can be activated or runs on x machine or in x operating system]
  4. Second part will contain programming code and will have  default extension of .aspx.cs
  5. .aspx page is again divided in two parts
=)Design part
=)Source part
       Design part will contain physical appearance of the WebPage 
       Source part will contain the code for respective designs

   ASP.NET will supports two types of coding techniques
  • InlineCodingTechnique 
  • Code behind or OutlineCodingTechnique

1)Inline Coding Technique:
In this method both designing part & programming part, code can written in a single file i.e. in aspx file
Disadvantages of Inline coding technique
  1. Programmer need to wait until designer completes the designing so, programmer time is wasted
  2. Debugging to the programmer is difficult
  3. Security is not maintained to the programming code from the designer
  4. To overcome this draw back we use outline or Code Behind Coding Technique
2)Code behind Coding Technique
  1. In this method both designing part code & programming part code are written in two different files
  2. Designing part is written in .aspx file and programming part code is written .aspx.cs file
Advantages of Code Behind Coding Technique
  1. Programmer need not wait until the designer compete designing
  2. Debugging becomes easy to the programmer
  3. Security is maintained to the programming code from the designer




9 comments:

  1. If you want to insert a record if it does not already exists in database, you should try to select record using the key. Some developers try to insert a record without checking if it already exists. If an exception occurs, they will assume that the record already exists.

    dotnet training in chennai

    ReplyDelete
  2. It is very good blog and useful for students and developer , Thanks for sharing



    .Net Online Training Hyderabad

    ReplyDelete
  3. Great blog! Really awesome I got more information from this blog. Thanks for sharing with us.
    Regards,
    Dot Net Training in Chennai

    ReplyDelete
  4. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command

    rpa training in bangalore
    best rpa training in bangalore
    RPA training in bangalore
    rpa courses in bangalore

    ReplyDelete
  5. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    python training in chennai
    python course in chennai
    python training in bangalore

    ReplyDelete
  6. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    AWS Training in pune

    AWS Online Training

    AWS Training in Bangalore

    ReplyDelete