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

ASP.NET

 
AnswerRe: Display The Tag value in a textbox Pin
Christian Graus12-Nov-07 17:48
protectorChristian Graus12-Nov-07 17:48 
QuestionProblems viewing filelist from folder in a gridview Pin
dreamcaster-dk12-Nov-07 10:40
dreamcaster-dk12-Nov-07 10:40 
AnswerRe: Problems viewing filelist from folder in a gridview Pin
Michael Sync12-Nov-07 14:38
Michael Sync12-Nov-07 14:38 
QuestionData list Pin
merwa12-Nov-07 5:51
merwa12-Nov-07 5:51 
QuestionLinking a document (not residing in web directory) to hyperlink Pin
Pankaj Chamria12-Nov-07 5:20
Pankaj Chamria12-Nov-07 5:20 
AnswerRe: Linking a document (not residing in web directory) to hyperlink Pin
Michael Sync12-Nov-07 7:14
Michael Sync12-Nov-07 7:14 
GeneralRe: Linking a document (not residing in web directory) to hyperlink Pin
Pankaj Chamria12-Nov-07 21:24
Pankaj Chamria12-Nov-07 21:24 
QuestionNested user controls Pin
dabs12-Nov-07 4:45
dabs12-Nov-07 4:45 
Hi,

I have a user control. It should display a list of employees in a department, but in a nested way. It is currently defined like this:

- It contains a single div.
- Inside this div there are three controls:
- A HyperLink control (showing the name of the department)
- A GridView control (listing all employees within this department)
- A Repeater control (which should display all sub-departments).

The repeater should actually contain a copy of the user control itself!, since it is really displaying the exact same information, only for subdepartments - and there could be an (theoretically) infinite amount of nested subdepartments.

Now, obviously a user control cannot directly contain a control which is an instance of itself. However, I've managed to bypass that problem by letting the repeater contain a single PlaceHolder, and then use LoadControl to load any number of the UC. This works correctly and all the data is displayed - but in the same gridview: the gridview defined in the first UC which is loaded with LoadControl. All the others are empty.

It appears that when I call e.Item.FindControl during the ItemDataBound event for the repeater, it always seems to give me the same control.

Has anyone had any similar problem - or what is more important - a solution?

Regards,
Daníel





Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!

AnswerRe: Nested user controls Pin
InsDev12-Nov-07 19:22
InsDev12-Nov-07 19:22 
QuestionNot able to create master page Pin
Poonam Gandash12-Nov-07 4:02
Poonam Gandash12-Nov-07 4:02 
AnswerRe: Not able to create master page Pin
dabs12-Nov-07 4:32
dabs12-Nov-07 4:32 
GeneralRe: Not able to create master page Pin
Poonam Gandash12-Nov-07 17:45
Poonam Gandash12-Nov-07 17:45 
GeneralRe: Not able to create master page Pin
Anurag Gandhi12-Nov-07 18:23
professionalAnurag Gandhi12-Nov-07 18:23 
QuestionBrowser detection Pin
kibromg12-Nov-07 2:18
kibromg12-Nov-07 2:18 
AnswerRe: Browser detection Pin
John-ph12-Nov-07 2:30
John-ph12-Nov-07 2:30 
AnswerRe: Browser detection Pin
Phil Osborne12-Nov-07 2:38
Phil Osborne12-Nov-07 2:38 
GeneralRe: Browser detection Pin
kibromg12-Nov-07 2:46
kibromg12-Nov-07 2:46 
GeneralRe: Browser detection Pin
Pete O'Hanlon12-Nov-07 2:54
mvePete O'Hanlon12-Nov-07 2:54 
GeneralRe: Browser detection Pin
Michael Sync12-Nov-07 14:35
Michael Sync12-Nov-07 14:35 
Questionhow can in compress form in container Pin
Harun.Net12-Nov-07 2:09
Harun.Net12-Nov-07 2:09 
AnswerRe: how can in compress form in container Pin
John-ph12-Nov-07 2:24
John-ph12-Nov-07 2:24 
GeneralRe: how can in compress form in container Pin
Harun.Net12-Nov-07 18:22
Harun.Net12-Nov-07 18:22 
Questionproblem with crystal report Pin
dandamudi padma12-Nov-07 0:51
dandamudi padma12-Nov-07 0:51 
AnswerRe: problem with crystal report Pin
John-ph12-Nov-07 1:05
John-ph12-Nov-07 1:05 
GeneralRe: problem with crystal report Pin
dandamudi padma12-Nov-07 1:10
dandamudi padma12-Nov-07 1:10 

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.