Master page is one of the great features of ASP.NET added with the ASP.NET 2.0. Using Master pages, we can give our web pages consistent look and maintainable user interfaces. A Master page can give your pages a definite look that you want for all the Web pages created in ASP.NET 2.0 or latest version of ASP.NET. After this, you need to create Content Page by right clicking on Master Page. The entire Content page created in this way will have a defined look that you have used in Master page.
Generally, A Professional Web Site has a customized look in the web pages. For Example- A customized Menu in the left side or after the title or Company’s Logo, Content in the Middle part and a copyright or all the pages information of the site in small font on the bottom. You just need to change the content part of every web page according to the name and behavior of the pages.
With the advent of Master Pages in ASP.NET 2.0, It has become easier for ASP.NET Web Developer to use same template in every pages.
Steps to Use Maser page in ASP.NET Website:
1.Open ASP.NET 2.0
2.File -> New Web Site. Select ASP.NET Web page and give the Name and Location of it where you want save it.
3. Go in Solution Explorer and right click on the Web Site and select Add New Item. A dialogue box will appear. Select Master Page and give the name of it. Keep in mind the Extension of it always should be .Master.
4.Now the Master page has been added. Design it according to you want keep each and every pages of that website. Now right click on Master Page and click on Add Content Page. You will notice the entire content page have the same look you have designed in Master Page.
Wednesday, April 7, 2010
Sunday, April 4, 2010
Major Differences between Typical ASP and ASP.NET?
There are so many differences between Typical ASP and ASP.NET. Some of them are as follows:
ASP:
1. ASP is restricted to use Scripting Languages only. Mainly
VBScript and JavaScript are used with ASP.
2. Messy Coding. Because ASP is written with HTML on the
same Page.
3. No set of Control Box. Need to write all the code manually.
4. It is very complex to design a Web Page in ASP. Need to write
all the code manually.
5. It has limited development tools and debugging tools. So using ASP we
can not develop Web Pages rapidly.
6. Limited OOPS Support
7. Limited Session and Application State Management.
8. It has Poor Error Handling System
9. There is no in-built support for XML.
ASP.NET:
1. ASP.NET supports more than 200 Programming Languages with it.
Mainly Visual VB.NET, Visual C#, Visual J# and Visual C++ are
used with it.
2. Coding is Clean and Clear. Because HTML Part, Designing part and
Programming part are separate.
3. It has a set of Control Box that can be drag and drop without writing
extra ASP.NET Coding.
4. Easy Designing of Pages. There is no need to write even a single line
of code for designing a simple page.
5. Less Coding.
6. It is completely Objected Oriented.
7. It supports complete Session and Applicatin State Management.
8. Error Handling is Easy.
9. It fully supports XML file.
ASP:
1. ASP is restricted to use Scripting Languages only. Mainly
VBScript and JavaScript are used with ASP.
2. Messy Coding. Because ASP is written with HTML on the
same Page.
3. No set of Control Box. Need to write all the code manually.
4. It is very complex to design a Web Page in ASP. Need to write
all the code manually.
5. It has limited development tools and debugging tools. So using ASP we
can not develop Web Pages rapidly.
6. Limited OOPS Support
7. Limited Session and Application State Management.
8. It has Poor Error Handling System
9. There is no in-built support for XML.
ASP.NET:
1. ASP.NET supports more than 200 Programming Languages with it.
Mainly Visual VB.NET, Visual C#, Visual J# and Visual C++ are
used with it.
2. Coding is Clean and Clear. Because HTML Part, Designing part and
Programming part are separate.
3. It has a set of Control Box that can be drag and drop without writing
extra ASP.NET Coding.
4. Easy Designing of Pages. There is no need to write even a single line
of code for designing a simple page.
5. Less Coding.
6. It is completely Objected Oriented.
7. It supports complete Session and Applicatin State Management.
8. Error Handling is Easy.
9. It fully supports XML file.
Saturday, April 3, 2010
What is ASP.NET?????????????
ASP.NET is a easy to learn, very powerful and very flexible server side technology. Which can be used for developing any kind of pages i.e. Static pages as well as Dynamic Pages.
It suppors more than 200 languages to develop any kind of Web Pages. But commonly 4 langues are used with ASP.NET, which are:
1. Visual C#
2. Visual VB.NET
3. Visual C++ and
4. Visual J#
It suppors more than 200 languages to develop any kind of Web Pages. But commonly 4 langues are used with ASP.NET, which are:
1. Visual C#
2. Visual VB.NET
3. Visual C++ and
4. Visual J#
Subscribe to:
Comments (Atom)
