Click here to Skip to main content
15,886,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: export gridview to excel in asp.net Pin
Venkatesh Mookkan11-May-10 21:32
Venkatesh Mookkan11-May-10 21:32 
GeneralRe: export gridview to excel in asp.net Pin
jadhavShubhangi11-May-10 21:39
jadhavShubhangi11-May-10 21:39 
QuestionCustom Control-DropDown+ASP.net Pin
chetan_agarwal11-May-10 19:03
chetan_agarwal11-May-10 19:03 
QuestionMenu with Ajax Pin
kushMuchaal11-May-10 19:01
kushMuchaal11-May-10 19:01 
QuestionBold Italics Subject line Pin
Civic0611-May-10 12:54
Civic0611-May-10 12:54 
AnswerRe: Bold Italics Subject line Pin
Venkatesh Mookkan11-May-10 17:50
Venkatesh Mookkan11-May-10 17:50 
AnswerRe: Bold Italics Subject line Pin
Jamil Hallal12-May-10 0:15
professionalJamil Hallal12-May-10 0:15 
QuestionPlaceHolder inside ContentPlaceHolder Pin
MWRivera11-May-10 7:25
MWRivera11-May-10 7:25 
Hi there,

I have a Master page, which has a ContentPlaceHolder for the main content of the web pages to go in. I created a webpage from the Master and between the main content tags I put a PlaceHolder control, so that I can add controls via C#. Here is the ASP code below:

<asp:Content ID="Content2" ContentPlaceHolderID="cphMainContent" Runat="Server">
            <asp:PlaceHolder ID="PlaceHolderForm" runat="server"></asp:PlaceHolder>   
</asp:Content>


The problem is when I try and access the PlaceHolder in my c# code it results in a null object. I was able to access the PlaceHolder fine until I put it in the Master page.

Does anyone know what I'm missing? How would I go about accessing the PlaceHolder inside a ContentPlaceHolder?

Thanks,
Mel
AnswerRe: PlaceHolder inside ContentPlaceHolder Pin
Not Active11-May-10 8:54
mentorNot Active11-May-10 8:54 
GeneralRe: PlaceHolder inside ContentPlaceHolder Pin
MWRivera12-May-10 8:12
MWRivera12-May-10 8:12 
GeneralRe: PlaceHolder inside ContentPlaceHolder Pin
MWRivera12-May-10 8:58
MWRivera12-May-10 8:58 
AnswerRe: PlaceHolder inside ContentPlaceHolder Pin
Peace ON11-May-10 21:13
Peace ON11-May-10 21:13 
QuestionIFrame Use Pin
Amit Patel198511-May-10 5:50
Amit Patel198511-May-10 5:50 
AnswerRe: IFrame Use Pin
Not Active11-May-10 8:52
mentorNot Active11-May-10 8:52 
AnswerRe: IFrame Use Pin
Venkatesh Mookkan11-May-10 17:54
Venkatesh Mookkan11-May-10 17:54 
GeneralRe: IFrame Use Pin
Amit Patel198511-May-10 20:16
Amit Patel198511-May-10 20:16 
QuestionRating control in asp.net Pin
trilokharry11-May-10 5:37
trilokharry11-May-10 5:37 
AnswerRe: Rating control in asp.net Pin
Sandeep Mewara11-May-10 6:27
mveSandeep Mewara11-May-10 6:27 
QuestionSaving file into database as binary Pin
Deb_2611-May-10 5:22
Deb_2611-May-10 5:22 
AnswerRe: Saving file into database as binary Pin
michaelschmitt11-May-10 6:16
michaelschmitt11-May-10 6:16 
QuestionMigrating ASP.NET 1.1 web app from IIS 6 (WinServer2003 environment) to IIS 7 (WinServer2008 environment) Pin
Tobygm11-May-10 4:38
Tobygm11-May-10 4:38 
QuestionSMTP Server Pin
Dhyanga11-May-10 3:48
Dhyanga11-May-10 3:48 
AnswerRe: SMTP Server Pin
Peace ON11-May-10 4:18
Peace ON11-May-10 4:18 
GeneralRe: SMTP Server Pin
Dhyanga11-May-10 4:28
Dhyanga11-May-10 4:28 
GeneralRe: SMTP Server Pin
Peace ON11-May-10 4:53
Peace ON11-May-10 4:53 

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.