what is master pages how to use it. plase give one example
in code vice

Answer Posted / subodh kumar

Master page is inbuilt functionality in .Net2.0 or above.
While in .Net1.1 you must be create custom master page
using web user controls.

If you want to display the same section on more then one
page in your application then you can use master page.
A master page have content place holder where you can put
your code for different pages.
To use master page in your web application pages, you must
be include masterpage file name in the page directive. like:
<@ page MasterPage="MyMasterpage.master" .......>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static members with example using c#.net.

484


Is string a class in c#?

472


How do I do a case-insensitive string comparison?

515


What can be done with c#?

436


What is array collection?

488






What are some of the commonly used commands in sqlcommand?

488


What are types of constructor?

471


What is different between Implicit conversion and Explicit conversion in C#?

513


Is post back c#?

493


Tell me the difference between call by value and call by reference.

532


How many types of methods are there in c#?

518


What is dto c#?

475


How to find out that the code is written as managed or un-managed code?

590


What is callback in c#?

477


Are c# constructors the same as c++ constructors?

513