Click here to Skip to main content
15,887,350 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question3 tier applications in ASP.NET Pin
DeepanjanNag2-Dec-12 10:54
DeepanjanNag2-Dec-12 10:54 
AnswerRe: 3 tier applications in ASP.NET Pin
Deflinek3-Dec-12 2:26
Deflinek3-Dec-12 2:26 
AnswerRe: 3 tier applications in ASP.NET Pin
AmitGajjar3-Dec-12 18:16
professionalAmitGajjar3-Dec-12 18:16 
Questionselect an item in gridview Pin
ptvce2-Dec-12 1:56
ptvce2-Dec-12 1:56 
AnswerRe: select an item in gridview Pin
CommDev3-Dec-12 4:41
CommDev3-Dec-12 4:41 
Questionpage life cycle in asp.net Pin
MD SAJID sajid2-Dec-12 1:42
MD SAJID sajid2-Dec-12 1:42 
AnswerRe: page life cycle in asp.net Pin
ThetaClear3-Dec-12 1:47
ThetaClear3-Dec-12 1:47 
Questiondynamic MAsterType virtualPath Pin
jojoba20111-Dec-12 18:17
jojoba20111-Dec-12 18: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 2:40
Deflinek3-Dec-12 2:40 
QuestionRetrieving the COM class factory for component ... Access is denied Pin
Super_Developer30-Nov-12 20:50
Super_Developer30-Nov-12 20:50 
GeneralRe: Retrieving the COM class factory for component ... Access is denied Pin
jkirkerx1-Dec-12 17:47
professionaljkirkerx1-Dec-12 17:47 
GeneralRe: Retrieving the COM class factory for component ... Access is denied Pin
Super_Developer1-Dec-12 19:08
Super_Developer1-Dec-12 19:08 
QuestionViews and Entity Framework 1.0 Pin
indian14330-Nov-12 15:45
indian14330-Nov-12 15:45 
QuestionNHibernate maping Pin
Manikandhar V30-Nov-12 2:58
Manikandhar V30-Nov-12 2:58 
QuestionTry Catch Pin
frostcox30-Nov-12 1:12
frostcox30-Nov-12 1:12 
AnswerRe: Try Catch Pin
Richard MacCutchan30-Nov-12 1:45
mveRichard MacCutchan30-Nov-12 1:45 
GeneralRe: Try Catch Pin
frostcox30-Nov-12 9:22
frostcox30-Nov-12 9:22 
GeneralRe: Try Catch Pin
Richard MacCutchan30-Nov-12 23:49
mveRichard MacCutchan30-Nov-12 23:49 
AnswerRe: Try Catch Pin
AmitGajjar1-Dec-12 2:34
professionalAmitGajjar1-Dec-12 2:34 
GeneralRe: Try Catch Pin
Robert Bettinelli3-Dec-12 15:20
Robert Bettinelli3-Dec-12 15:20 
GeneralRe: Try Catch Pin
frostcox5-Dec-12 8:42
frostcox5-Dec-12 8:42 
AnswerRe: Try Catch Pin
CommDev8-Dec-12 22:28
CommDev8-Dec-12 22:28 
Questionbest way to send bulk SMS Pin
Jassim Rahma30-Nov-12 1:01
Jassim Rahma30-Nov-12 1:01 
Questionhow to preview a word file before you download it? Pin
blachsmith29-Nov-12 22:59
blachsmith29-Nov-12 22:59 
QuestionCreating WCF client proxy using svcutil.exe Pin
indian14329-Nov-12 9:14
indian14329-Nov-12 9:14 

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.