Click here to Skip to main content
15,917,321 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncalling a client method from master page Pin
amit_831-Sep-10 20:56
professionalamit_831-Sep-10 20:56 
AnswerRe: calling a client method from master page Pin
Anurag Gandhi1-Sep-10 23:20
professionalAnurag Gandhi1-Sep-10 23:20 
QuestionDropdown List Template field Pin
vishnukamath1-Sep-10 20:24
vishnukamath1-Sep-10 20:24 
Questionconvert html to csvexport to CSV Pin
Member 38798811-Sep-10 19:55
Member 38798811-Sep-10 19:55 
AnswerRe: convert html to csvexport to CSV Pin
T M Gray2-Sep-10 4:21
T M Gray2-Sep-10 4:21 
QuestionAccessing Parent Page Method from User Control doesnot refresh Pin
Satish_S1-Sep-10 19:29
Satish_S1-Sep-10 19:29 
AnswerRe: Accessing Parent Page Method from User Control doesnot refresh Pin
robocodeboy1-Sep-10 23:30
robocodeboy1-Sep-10 23:30 
GeneralRe: Accessing Parent Page Method from User Control doesnot refresh Pin
Satish_S2-Sep-10 2:13
Satish_S2-Sep-10 2:13 
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 

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.