Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
GeneralText alignment Pin
gmeii4-Mar-05 10:33
gmeii4-Mar-05 10:33 
GeneralRe: Text alignment Pin
mav.northwind4-Mar-05 21:48
mav.northwind4-Mar-05 21:48 
Generaldatatable.datarowcollection Pin
(Steven Hicks)n+14-Mar-05 10:28
(Steven Hicks)n+14-Mar-05 10:28 
GeneralRe: datatable.datarowcollection Pin
turbochimp4-Mar-05 10:59
turbochimp4-Mar-05 10:59 
GeneralA silly socket question Pin
sameerhanda4-Mar-05 10:14
sameerhanda4-Mar-05 10:14 
GeneralRe: A silly socket question Pin
S. Senthil Kumar4-Mar-05 11:17
S. Senthil Kumar4-Mar-05 11:17 
GeneralRe: A silly socket question Pin
Sebastian Schneider7-Mar-05 1:50
Sebastian Schneider7-Mar-05 1:50 
GeneralTroubles with dynamically created WUC Pin
see074-Mar-05 9:29
see074-Mar-05 9:29 
I have a web form, which has a place holder named Example when, Page_Load happens in my web form. I’m creating dynamically a WUC named WebUserControl3 into my place holder.
WebUserControl3 has several text boxes, a button and a label, when user click button I’m executing some calculation which result I’m placing into label. But when user click button occurs Page_Load in web form that contains my place holder and I need recreate my WUC plus data was contained therein, I have tried with ViewState and Session variables but still I can’t pass data from WUC to web form to recreate WUC and its data. Obviously WUC is created again without data. Notwithstanding if I re-enter data in WUC and click button again data are displayed OK.
Why first time it isn’t working and begin second try it’s working fine?
My code is:

private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
}
else
{
Example.Controls.Clear();
Control control = this.Page.LoadControl("WebUserControl3.ascx");
Example.Controls.Add(control);
}
}

Thanks in advance

A.L.


El hombre que tiene amigos debe mostrarse amigo...
GeneralRe: Troubles with dynamically created WUC Pin
see077-Mar-05 5:54
see077-Mar-05 5:54 
GeneralRe: Troubles with dynamically created WUC Pin
see077-Mar-05 7:11
see077-Mar-05 7:11 
QuestionHow to catch system KeyDown or Mousemove events. Pin
491524-Mar-05 8:48
491524-Mar-05 8:48 
AnswerRe: How to catch system KeyDown or Mousemove events. Pin
S. Senthil Kumar4-Mar-05 9:03
S. Senthil Kumar4-Mar-05 9:03 
GeneralUsing SendMessage and PostMessage APIs Pin
Guinness4Strength4-Mar-05 8:42
Guinness4Strength4-Mar-05 8:42 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Judah Gabriel Himango4-Mar-05 12:01
sponsorJudah Gabriel Himango4-Mar-05 12:01 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Guinness4Strength5-Mar-05 8:20
Guinness4Strength5-Mar-05 8:20 
GeneralRe: Using SendMessage and PostMessage APIs Pin
mav.northwind4-Mar-05 21:52
mav.northwind4-Mar-05 21:52 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Guinness4Strength5-Mar-05 8:16
Guinness4Strength5-Mar-05 8:16 
GeneralLoading an assembly dynamically and using types/functions in it Pin
Bojan Rajkovic4-Mar-05 8:16
Bojan Rajkovic4-Mar-05 8:16 
GeneralRe: Loading an assembly dynamically and using types/functions in it Pin
S. Senthil Kumar4-Mar-05 9:08
S. Senthil Kumar4-Mar-05 9:08 
GeneralRunning an IO application on a network Pin
TOVB4-Mar-05 7:41
sussTOVB4-Mar-05 7:41 
GeneralRe: Running an IO application on a network Pin
Joel Lucsy4-Mar-05 8:40
Joel Lucsy4-Mar-05 8:40 
GeneralInstalling a service without using ServiceProcessInstaller/ServiceInstaller Pin
Lakitu4-Mar-05 5:18
Lakitu4-Mar-05 5:18 
Generalping use too long time Pin
haha200014-Mar-05 4:47
haha200014-Mar-05 4:47 
GeneralRe: ping use too long time Pin
Dave Kreskowiak4-Mar-05 7:34
mveDave Kreskowiak4-Mar-05 7:34 
GeneralRe: ping use too long time Pin
haha200014-Mar-05 15:22
haha200014-Mar-05 15:22 

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.