Click here to Skip to main content
15,908,166 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with ClientScript.RegisterStartupScript( ) Pin
szukuro8-Jan-07 23:33
szukuro8-Jan-07 23:33 
Questionhow to validate textbox in datagrid Pin
chinnivinay8-Jan-07 20:47
chinnivinay8-Jan-07 20:47 
AnswerRe: how to validate textbox in datagrid Pin
varshavmane9-Jan-07 18:32
varshavmane9-Jan-07 18:32 
Questionis it better way saving multiselect option listbox Pin
mohd imran abdul aziz8-Jan-07 20:42
mohd imran abdul aziz8-Jan-07 20:42 
QuestionMultithreaded application works in VS2005, not in production Pin
travich8-Jan-07 20:24
travich8-Jan-07 20:24 
QuestionSearch Facility Pin
Bulky Fellow8-Jan-07 19:46
Bulky Fellow8-Jan-07 19:46 
QuestionChanging Master Pages Dynamically in asp.net Pin
chohanpk8-Jan-07 19:37
chohanpk8-Jan-07 19:37 
AnswerRe: Changing Master Pages Dynamically in asp.net Pin
szukuro8-Jan-07 23:22
szukuro8-Jan-07 23:22 
The tutorial is bugged in some places, especially when writing the LinkButton_Click event handler. So here's what you have to do:

1. Add two master pages to your website, for example MasterPage1.master and MasterPage2.master. Edit them a you like, but make sure they contain the same number of ContentPlaceHolders.

2. Add a webform, for example Default.aspx, and make sure "Select master page" chechkbox is clicked.

3. When asked for the master page, select one from the earlier created ones.

4. Add two LinkButtons (or regular Buttons) to Default.aspx. Set the Text property as you like, and hook them up with Click event handlers.

5. In one of the Click event handlers write the following:

Session["Master"] = "~/MasterPage1.master";
Response.Redirect(Request.Url.ToString());

while in the other change "~/MasterPage1.master" to "~/MasterPage2.master".

6. Add the following to the page:

protected void Page_PreInit(object sender, EventArgs e)
{
if (Session["Master"] != null)
this.MasterPageFile = (string)Session["Master"];
}

Now run the web site, and test the functionality by clicking the LinkButtons.

QuestionGAC information Pin
mailto_nasar8-Jan-07 19:01
mailto_nasar8-Jan-07 19:01 
AnswerRe: GAC information Pin
Vikramaditya S Shekhawat8-Jan-07 19:45
Vikramaditya S Shekhawat8-Jan-07 19:45 
QuestionCreating dynamic columns in crystal report using C# 2005 Pin
ptvce8-Jan-07 18:49
ptvce8-Jan-07 18:49 
QuestionProblem in Dyanamicaly Creating DataGrid Pin
Yuwraj8-Jan-07 18:29
Yuwraj8-Jan-07 18:29 
QuestionApplication call itself? Pin
shah zad8-Jan-07 18:04
shah zad8-Jan-07 18:04 
AnswerRe: Application call itself? Pin
led mike8-Jan-07 18:40
led mike8-Jan-07 18:40 
QuestionRe: Application call itself? Pin
shah zad8-Jan-07 18:55
shah zad8-Jan-07 18:55 
Questionrequired web.config Pin
mailto_nasar8-Jan-07 17:56
mailto_nasar8-Jan-07 17:56 
QuestionAsp.net web server Pin
dhulipudi8-Jan-07 16:32
dhulipudi8-Jan-07 16:32 
AnswerRe: Asp.net web server Pin
Venkatesh Mookkan8-Jan-07 16:43
Venkatesh Mookkan8-Jan-07 16:43 
GeneralRe: Asp.net web server Pin
dhulipudi9-Jan-07 14:41
dhulipudi9-Jan-07 14:41 
GeneralRe: Asp.net web server Pin
Venkatesh Mookkan9-Jan-07 15:33
Venkatesh Mookkan9-Jan-07 15:33 
Generalasp.net tab Pin
dhulipudi9-Jan-07 16:12
dhulipudi9-Jan-07 16:12 
GeneralRe: Asp.net web server Pin
dhulipudi10-Jan-07 15:58
dhulipudi10-Jan-07 15:58 
QuestionGoogle Maps Pin
Sam Heller8-Jan-07 13:18
Sam Heller8-Jan-07 13:18 
AnswerRe: Google Maps Pin
minhpc_bk8-Jan-07 14:15
minhpc_bk8-Jan-07 14:15 
GeneralRe: Google Maps Pin
Sam Heller8-Jan-07 23:44
Sam Heller8-Jan-07 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.