Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCheck Aspx file integrity? Pin
robocodeboy1-Sep-10 4:43
robocodeboy1-Sep-10 4:43 
AnswerRe: Check Aspx file integrity? [modified] Pin
Not Active1-Sep-10 6:55
mentorNot Active1-Sep-10 6:55 
GeneralRe: Check Aspx file integrity? Pin
Ennis Ray Lynch, Jr.1-Sep-10 7:16
Ennis Ray Lynch, Jr.1-Sep-10 7:16 
GeneralRe: Check Aspx file integrity? Pin
Not Active1-Sep-10 7:44
mentorNot Active1-Sep-10 7:44 
GeneralRe: Check Aspx file integrity? Pin
robocodeboy1-Sep-10 7:59
robocodeboy1-Sep-10 7:59 
GeneralRe: Check Aspx file integrity? Pin
Not Active1-Sep-10 9:10
mentorNot Active1-Sep-10 9:10 
GeneralRe: Check Aspx file integrity? Pin
robocodeboy1-Sep-10 21:36
robocodeboy1-Sep-10 21:36 
QuestionChild Controls Showing as Null Pin
David Muir1-Sep-10 4:20
David Muir1-Sep-10 4:20 
Hi All,

I am currently fighting with a problem with regards to finding controls within ContentPlaceHolders.

The scenario is that I want to be able to set the class on a control with a specified ID, which is on one of the Master pages which the page inherits from. There is no limit to how many levels up the tree the control can be, and the code searches recursively until the root master page. This part I have working. Smile | :)

The issue that I am having is that I can only find a control if it is on the root master page.(I.e. not within a ContentPlaceHolder). If the control is on any other page then FindControl() does not find the control. In this example, the control would only be found if on DefaultMaster.

DefaultMaster
--> SectionMaster
--> PageMaster
--> Page.aspx

I have investigated further, and found that controls within a Content control are being retured as null, although they clearly exist. Obviously as these are null, FindControl can't find them. I have tried attempting to find a control within the content section also, but I have the same issue.

Unfortunately, if you take the above example, then my control would be in SectionMaster, as I dont have access to the root master page. (I'm using Umbraco currently for this project.)

Does anyone have any suggestions to how to get these values from content controls?

Thanks in advance,
DM.
AnswerRe: Child Controls Showing as Null Pin
Ennis Ray Lynch, Jr.1-Sep-10 7:26
Ennis Ray Lynch, Jr.1-Sep-10 7:26 
GeneralRe: Child Controls Showing as Null Pin
David Muir1-Sep-10 22:11
David Muir1-Sep-10 22:11 
QuestionASP.Net State Service doesnt exists in IIS7 Pin
indian14331-Aug-10 7:09
indian14331-Aug-10 7:09 
AnswerRe: ASP.Net State Service doesnt exists in IIS7 Pin
T M Gray31-Aug-10 11:36
T M Gray31-Aug-10 11:36 
QuestionHttpCompileException occurs at random times Pin
mark_me30-Aug-10 13:28
mark_me30-Aug-10 13:28 
QuestionSaving a user's location on a page Pin
Aptiva Dave30-Aug-10 10:06
Aptiva Dave30-Aug-10 10:06 
AnswerRe: Saving a user's location on a page Pin
Ennis Ray Lynch, Jr.30-Aug-10 10:46
Ennis Ray Lynch, Jr.30-Aug-10 10:46 
AnswerRe: Saving a user's location on a page Pin
T M Gray30-Aug-10 11:00
T M Gray30-Aug-10 11:00 
GeneraldevX link Pin
David Mujica30-Aug-10 11:06
David Mujica30-Aug-10 11:06 
GeneralRe: devX link Pin
T M Gray31-Aug-10 8:57
T M Gray31-Aug-10 8:57 
AnswerRe: Saving a user's location on a page Pin
David Mujica30-Aug-10 11:05
David Mujica30-Aug-10 11:05 
GeneralRe: Saving a user's location on a page Pin
Aptiva Dave31-Aug-10 4:35
Aptiva Dave31-Aug-10 4:35 
AnswerRe: Saving a user's location on a page Pin
NeverHeardOfMe30-Aug-10 11:59
NeverHeardOfMe30-Aug-10 11:59 
GeneralRe: Saving a user's location on a page Pin
Aptiva Dave31-Aug-10 4:39
Aptiva Dave31-Aug-10 4:39 
Questionheader, footer , page number in iTextSharp Pin
Dhyanga30-Aug-10 5:51
Dhyanga30-Aug-10 5:51 
AnswerRe: header, footer , page number in iTextSharp Pin
Not Active30-Aug-10 6:09
mentorNot Active30-Aug-10 6:09 
GeneralRe: header, footer , page number in iTextSharp Pin
Dhyanga30-Aug-10 7:08
Dhyanga30-Aug-10 7:08 

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.