Click here to Skip to main content
15,920,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to get Client Confirmation Pin
Christian Graus3-Jan-08 16:49
protectorChristian Graus3-Jan-08 16:49 
GeneralRe: How to get Client Confirmation Pin
ram19743-Jan-08 18:14
ram19743-Jan-08 18:14 
GeneralCheckBox List Does not show previous page checked Items Pin
ctrlnick3-Jan-08 12:27
ctrlnick3-Jan-08 12:27 
GeneralRe: CheckBox List Does not show previous page checked Items Pin
Christian Graus3-Jan-08 13:16
protectorChristian Graus3-Jan-08 13:16 
GeneralRe: CheckBox List Does not show previous page checked Items Pin
ctrlnick3-Jan-08 13:56
ctrlnick3-Jan-08 13:56 
GeneralRe: CheckBox List Does not show previous page checked Items Pin
Christian Graus3-Jan-08 14:23
protectorChristian Graus3-Jan-08 14:23 
GeneralRe: CheckBox List Does not show previous page checked Items Pin
ctrlnick4-Jan-08 6:19
ctrlnick4-Jan-08 6:19 
GeneralAdding UserControl to Page Pin
Stevo Z3-Jan-08 11:49
Stevo Z3-Jan-08 11:49 
Hi,

I have one default.aspx page and many .ascx user controls that are displayed inside default.aspx page. There is always only one .ascx user control in the default page (placeholder) at one time. This page is added dynamicly in Page_Load of the default.aspx :

protected void Page_Load(object sender, EventArgs e)
{
   this.LoadContent();
}

public void LoadContent()
{
   this.placeholderContent.Controls.Clear();
   this.placeholderContent.Controls.Add(this.LoadControl([...some mechanism how to get right file...]));
}


during Page_Load of currently loaded user control, it might happen that depending on user action this control requires to be changed to different .ascx user control, so LoadContent (in default.aspx) is called to dump current control and load new one.

Problem occurs that when a new control is loaded after an old control was dumped, events (button clicks) of new added control are not registred properly. When a button on new control is clicked, it doesn't invoke the registered event during next postback. Event's start working from second postback on... (if the user control doesn't change)

thanx for help!

zilo

GeneralRe: Adding UserControl to Page Pin
Christian Graus3-Jan-08 13:18
protectorChristian Graus3-Jan-08 13:18 
GeneralRe: Adding UserControl to Page Pin
Stevo Z3-Jan-08 21:42
Stevo Z3-Jan-08 21:42 
GeneralRe: Adding UserControl to Page Pin
Stevo Z4-Jan-08 10:23
Stevo Z4-Jan-08 10:23 
GeneralRe: Adding UserControl to Page Pin
Urs Enzler3-Jan-08 14:09
Urs Enzler3-Jan-08 14:09 
GeneralRe: Adding UserControl to Page Pin
Stevo Z3-Jan-08 21:42
Stevo Z3-Jan-08 21:42 
GeneralRe: Adding UserControl to Page Pin
Stevo Z4-Jan-08 10:21
Stevo Z4-Jan-08 10:21 
GeneralRe: Adding UserControl to Page Pin
ChrisKo4-Jan-08 11:37
ChrisKo4-Jan-08 11:37 
GeneralRe: Adding UserControl to Page Pin
Stevo Z5-Jan-08 22:48
Stevo Z5-Jan-08 22:48 
GeneralXML Bulk Insert Question Pin
archangel7173-Jan-08 6:25
archangel7173-Jan-08 6:25 
QuestionRandom Form Pin
Mr. Wonderful3-Jan-08 6:13
Mr. Wonderful3-Jan-08 6:13 
GeneralRe: Random Form Pin
Christian Graus3-Jan-08 10:38
protectorChristian Graus3-Jan-08 10:38 
GeneralDisable radio button Pin
kjosh3-Jan-08 5:49
kjosh3-Jan-08 5:49 
GeneralRe: Disable radio button Pin
Not Active3-Jan-08 6:26
mentorNot Active3-Jan-08 6:26 
Questionfiltering data into two dropDown List accrosse two pages or More ! [modified] Pin
Mr. Wonderful3-Jan-08 5:42
Mr. Wonderful3-Jan-08 5:42 
QuestionQuestion about listing directories from client machine [modified] Pin
TechnoSpike3-Jan-08 4:41
TechnoSpike3-Jan-08 4:41 
GeneralRe: Question about listing directories from client machine Pin
Colin Angus Mackay3-Jan-08 5:08
Colin Angus Mackay3-Jan-08 5:08 
GeneralRe: Question about listing directories from client machine Pin
TechnoSpike3-Jan-08 5:34
TechnoSpike3-Jan-08 5:34 

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.