I know that :( But I do not care about viewstate or Postback, all controls that should talk to server are in main page, not in update panel, only thing that do not work as wanted is ScriptManagers OnNavigate event. It fires too late. I need that event to handle f5, back and forward. If controls are added as fallows: protected void mi1_click(object sender, EventArgs e) { test(); } all is ok :( But in this case: public void OnNavigateHistory(object sender, HistoryEventArgs e) { test(); } it will not work :( void test() { //This line works fine in both cases. It sets couple of properties, as label texts and session variables. set_title("Test title"); //Instead of button I need my usercontrol, but even button will not show up. Button btn = new Button(); btn.Text = "I bitīt matos!!!!!!!!!!!"; PHolder.Controls.Clear(); PHolder.Controls.Add(btn); sm.AddHistoryPoint("aa", "bb"); }
It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)
modified on Friday, July 31, 2009 3:15 PM