Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
hi!
 
i'm having two different master pages but both master page having same type of sub page ..
 
anyone can answer me that we can u same form to the different master page...
 
if possible means let me know how to use it...
 
please its urgent
Posted 26-Dec-11 1:42am
Edited 26-Dec-11 2:28am
v2
Comments
archanakumari at 26-Dec-11 6:50am
   
You can Use Same SubPage.Same like that which your using Sub page in first Master Page.
Anuja Pawar Indore at 26-Dec-11 7:28am
   
Urgent is not required
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Google is your friend - ESPECIALLY if it's "urgent".
 
Working with master pages programatically[^]
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use variable in place of defining master page name and set the value of that variable at page load event of page. You can change theme and skins also using same technique.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You can create a User Control for that from and then use it on both the form.
 
If you like my solution just tell me i'll tell you the full solution.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 26 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100