Click here to Skip to main content
12,239,992 members (67,967 online)


AnswerRe: select an item in gridview Pin
CommDev3-Dec-12 5:41
memberCommDev3-Dec-12 5:41 
Questionpage life cycle in Pin
MD SAJID sajid2-Dec-12 2:42
memberMD SAJID sajid2-Dec-12 2:42 
AnswerRe: page life cycle in Pin
ThetaClear3-Dec-12 2:47
memberThetaClear3-Dec-12 2:47 
Questiondynamic MAsterType virtualPath Pin
jojoba20111-Dec-12 19:17
memberjojoba20111-Dec-12 19:17 
I am wondering if you can set the MasterType VirtualPath dynamically in the codebehind? I have other code that dynamically changes the MasterPageFile using OnPreInit(), but it seems that the MasterType VirtualPath value has to be hard-coded into the .aspx.

What I would like to do is call a function from the master page, but since the master page is set dynamically, I can't hard-code the VirtualPath into the aspx because I'd be calling the function from the wrong master page if I do.

Anyone know if I can set the MasterType VirtualPath value dynamically in the OnPreInit()? Or can I dynamically cast "this.Master" before calling the function?

Thanks. Any help is appreciated.
AnswerRe: dynamic MAsterType virtualPath Pin
deflinek3-Dec-12 3:40
memberdeflinek3-Dec-12 3:40 
QuestionRetrieving the COM class factory for component ... Access is denied Pin
Super_Developer30-Nov-12 21:50
memberSuper_Developer30-Nov-12 21:50 
GeneralRe: Retrieving the COM class factory for component ... Access is denied Pin
jkirkerx1-Dec-12 18:47
memberjkirkerx1-Dec-12 18:47 
GeneralRe: Retrieving the COM class factory for component ... Access is denied Pin
Super_Developer1-Dec-12 20:08
memberSuper_Developer1-Dec-12 20:08 
QuestionViews and Entity Framework 1.0 Pin
indian14330-Nov-12 16:45
memberindian14330-Nov-12 16:45 
QuestionNHibernate maping Pin
Manikandhar V30-Nov-12 3:58
memberManikandhar V30-Nov-12 3:58 

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.

Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 28 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid