473,602 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Child Neglect


Hi,

I was under the impression that, when ASP rendered a page,
it recursively traversed the hierarchy, executing all controls
in each ControlCollecti on of every control in that hierarchy.

I tried adding a Button control to a TextBox ControlCollecti on,
and it didn't execute. When I add the control to the Placeholder
ControlCollecti on (after the TextBox control is added), it executes
without any problem:
/* . . . . . . . . . . . . . . . . */
protected void create_ctrl_pai r_0x
(String text_box_id, String Btn_ID, String Btn_text)
{
ControlCollecti on crnt_ctrl = CCP_Dyn_Ctrl_Pl aceholder.Contr ols;

// Create UserTextBox TextBox control.

UserTextBox0x = new TextBox ();

// Configure the UserTextBox TextBox control.
UserTextBox0x.I D = text_box_id;

// Add UserTextBox TextBox control to the Controls collection
// of the Dyn_Control_Pla ceholder PlaceHolder control.

crnt_ctrl.Add (UserTextBox0x) ;
crnt_ctrl.Add ( new LiteralControl( "<br>XxXxXxXxXx XxXxXxX<br><br> ") );

// Create and initialize a Button.

button0x = new Button();
button0x.ID = Btn_ID;
button0x.Text = Btn_text;

// make the button a child of the text box control.
crnt_ctrl = UserTextBox0x.C ontrols;

crnt_ctrl.Add (button0x);
crnt_ctrl.Add
( new LiteralControl( "<br>========== =========<br><b r>") );
}
/* . . . . . . . . . . . . . . . . */
/* | | | | | | | | | | | | | | | | */
/* . . . . . . . . . . . . . . . . */

If this assignment statement is removed from the above:
crnt_ctrl = UserTextBox0x.C ontrols;
... it works fine. Otherwise, there is no button, as the child is neglected.

Can anyone give me an idea as to what I would have to do to make this work?

My complete code is as follows:
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<%@ Page Language="C#" AutoEventWireup ="True" %>

<html>
<head>

<script runat="server">

/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- */
/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- */
// protected class sys_obj_class
public class sys_obj_class
{
private Page this_page01;
public Page Get_this_page01
{ get { return this_page01; } }

private PlaceHolder Obj_Dyn_Ctrl_Pl aceholder;
public PlaceHolder Get_Obj_Dyn_Ctr l_Placeholder
{ get { return Obj_Dyn_Ctrl_Pl aceholder; } }

private Label Obj_Dyn_Label01 ;
public Label Get_Obj_Dyn_Lab el01
{ get { return Obj_Dyn_Label01 ; } }
public sys_obj_class
(PlaceHolder Dyn_Ctrl_Placeh older, Label Dyn_Label)
{
this_page01 = Dyn_Ctrl_Placeh older.Page;
Obj_Dyn_Ctrl_Pl aceholder = Dyn_Ctrl_Placeh older;
Obj_Dyn_Label01 = Dyn_Label;
}
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
public void Page_Init (object sender, EventArgs e)
{
int ndx = 2;

Dyn_Control_Pla ceholder.Contro ls.Add
( new LiteralControl( "<br>||| added 1 on init |||<br><br>") );
}
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
protected void Page_Load (Object sender, EventArgs e)
{
PlaceHolder plc_hldr = (PlaceHolder) FindControl ("Dyn_Control_P laceholder");
Label lbl_msg01 = (Label) FindControl ("Message01" );
sys_obj_class sys_obj = new sys_obj_class (plc_hldr, lbl_msg01);

ctrl_pair_creat ion_01 ccp1 = new ctrl_pair_creat ion_01 (sys_obj);

ccp1.create_ctr l_pair_01 ();
}
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
protected class base_create_ctr l_pair
{
protected TextBox UserTextBox0x;
protected Button button0x;
protected PlaceHolder CCP_Dyn_Ctrl_Pl aceholder;
protected Label Dyn_Lbl_msg01;

/* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= *
<<< constructor >>>
* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */
protected base_create_ctr l_pair (sys_obj_class sys_obj)
{
CCP_Dyn_Ctrl_Pl aceholder = sys_obj.Get_Obj _Dyn_Ctrl_Place holder;
Dyn_Lbl_msg01 = sys_obj.Get_Obj _Dyn_Label01;
}
/* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */
/* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */

protected void init_single_lin e_text_box (TextBox new_TextBox, int col_sz)
{ new_TextBox.Col umns = col_sz; }

/* . . . . . . . . . . . . . . . . */
protected void create_ctrl_pai r_0x
(String text_box_id, String Btn_ID, String Btn_text)
{
ControlCollecti on crnt_ctrl = CCP_Dyn_Ctrl_Pl aceholder.Contr ols;

// Create UserTextBox TextBox control.

UserTextBox0x = new TextBox ();

// Configure the UserTextBox TextBox control.
UserTextBox0x.I D = text_box_id;

// Add UserTextBox TextBox control to the Controls collection
// of the Dyn_Control_Pla ceholder PlaceHolder control.

crnt_ctrl.Add (UserTextBox0x) ;
crnt_ctrl.Add ( new LiteralControl( "<br>XxXxXxXxXx XxXxXxX<br><br> ") );

// Create and initialize a Button.

button0x = new Button();
button0x.ID = Btn_ID;
button0x.Text = Btn_text;

// make the button a child of the text box control.
crnt_ctrl = UserTextBox0x.C ontrols;

crnt_ctrl.Add (button0x);
crnt_ctrl.Add
( new LiteralControl( "<br>========== =========::::<b r><br>") );
}
/* . . . . . . . . . . . . . . . . */
/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- *
<<< Button Click Handlers >>>
* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- */
private String submit_click_st r01 = "The TextBox";

private String submit_click_st r02
= " control above is dynamically generated. <br> You entered: ";

public void Submit_Click (Object sender, EventArgs e)
{ // Retrieve the UserTextBox TextBox control from the
Dyn_Control_Pla ceholder
// PlaceHolder control.
TextBox TempTextBox = (TextBox)
CCP_Dyn_Ctrl_Pl aceholder.FindC ontrol("UserTex tBox1");

// Display the Text property.
Dyn_Lbl_msg01.T ext = submit_click_st r01 + '1' + submit_click_st r02 +
TempTextBox.Tex t;
}
/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- */
/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- */

}
/* - - - - - - - - - - - - - - - - - - - - - - */
/* END: protected class base_create_ctr l_pair */
/* - - - - - - - - - - - - - - - - - - - - - - */

/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */
protected class ctrl_pair_creat ion_01 : base_create_ctr l_pair
{
private sys_obj_class lcl_sys_obj;

// constructor
public ctrl_pair_creat ion_01 (sys_obj_class sys_obj) : base (sys_obj)
{ lcl_sys_obj = sys_obj; }

/* . . . . . . . . . . . . . */
public void create_ctrl_pai r_01 ()
{ create_ctrl_pai r_0x
("UserTextBox1" , "DButton01" , "Submit 01");

button0x.Click += new EventHandler (Submit_Click);

if (!lcl_sys_obj.G et_this_page01. IsPostBack)
init_single_lin e_text_box (UserTextBox0x, 22);
}
/* . . . . . . . . . . . . . */
}
/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */
/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */

</script>
</head>

<body>

<form runat="server">

<h3> Control Init </h3>

Enter some text and click the Submit button. <br><br>

<asp:PlaceHolde r ID="Dyn_Control _Placeholder" runat="server"/>

<asp:Label ID="Message01" runat="server"/>

</form>

</body>
</html>

<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>

THANKS!!!

- wASP
Aug 8 '05 #1
2 1260
This is general mechanism but keep in mind that you have still to do
something that has a meaning. A Form can have childs controls inside this
form but what would be the meaning of having a button "inside" a textbox ?

Use "view source" on your HTML page but eihter this is not processed at all
or ASP.NET renders a button tag inside your input tag but has it has no
meaning the browser might well not render this at all...

--
Patrice

"wASP" <wylbur[at]ev1[dot]net> a écrit dans le message de
news:54******** *************** *********@4ax.c om...

Hi,

I was under the impression that, when ASP rendered a page,
it recursively traversed the hierarchy, executing all controls
in each ControlCollecti on of every control in that hierarchy.

I tried adding a Button control to a TextBox ControlCollecti on,
and it didn't execute. When I add the control to the Placeholder
ControlCollecti on (after the TextBox control is added), it executes
without any problem:
/* . . . . . . . . . . . . . . . . */
protected void create_ctrl_pai r_0x
(String text_box_id, String Btn_ID, String Btn_text)
{
ControlCollecti on crnt_ctrl = CCP_Dyn_Ctrl_Pl aceholder.Contr ols;

// Create UserTextBox TextBox control.

UserTextBox0x = new TextBox ();

// Configure the UserTextBox TextBox control.
UserTextBox0x.I D = text_box_id;

// Add UserTextBox TextBox control to the Controls collection
// of the Dyn_Control_Pla ceholder PlaceHolder control.

crnt_ctrl.Add (UserTextBox0x) ;
crnt_ctrl.Add ( new LiteralControl( "<br>XxXxXxXxXx XxXxXxX<br><br> ") );
// Create and initialize a Button.

button0x = new Button();
button0x.ID = Btn_ID;
button0x.Text = Btn_text;

// make the button a child of the text box control.
crnt_ctrl = UserTextBox0x.C ontrols;

crnt_ctrl.Add (button0x);
crnt_ctrl.Add
( new LiteralControl( "<br>========== =========<br><b r>") );
}
/* . . . . . . . . . . . . . . . . */
/* | | | | | | | | | | | | | | | | */
/* . . . . . . . . . . . . . . . . */

If this assignment statement is removed from the above:
crnt_ctrl = UserTextBox0x.C ontrols;
... it works fine. Otherwise, there is no button, as the child is neglected.
Can anyone give me an idea as to what I would have to do to make this work?
My complete code is as follows:
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<%@ Page Language="C#" AutoEventWireup ="True" %>

<html>
<head>

<script runat="server">

/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
*/ /* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
*/ // protected class sys_obj_class
public class sys_obj_class
{
private Page this_page01;
public Page Get_this_page01
{ get { return this_page01; } }

private PlaceHolder Obj_Dyn_Ctrl_Pl aceholder;
public PlaceHolder Get_Obj_Dyn_Ctr l_Placeholder
{ get { return Obj_Dyn_Ctrl_Pl aceholder; } }

private Label Obj_Dyn_Label01 ;
public Label Get_Obj_Dyn_Lab el01
{ get { return Obj_Dyn_Label01 ; } }
public sys_obj_class
(PlaceHolder Dyn_Ctrl_Placeh older, Label Dyn_Label)
{
this_page01 = Dyn_Ctrl_Placeh older.Page;
Obj_Dyn_Ctrl_Pl aceholder = Dyn_Ctrl_Placeh older;
Obj_Dyn_Label01 = Dyn_Label;
}
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
public void Page_Init (object sender, EventArgs e)
{
int ndx = 2;

Dyn_Control_Pla ceholder.Contro ls.Add
( new LiteralControl( "<br>||| added 1 on init |||<br><br>") );
}
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
protected void Page_Load (Object sender, EventArgs e)
{
PlaceHolder plc_hldr = (PlaceHolder) FindControl ("Dyn_Control_P laceholder"); Label lbl_msg01 = (Label) FindControl ("Message01" );
sys_obj_class sys_obj = new sys_obj_class (plc_hldr, lbl_msg01);

ctrl_pair_creat ion_01 ccp1 = new ctrl_pair_creat ion_01 (sys_obj);
ccp1.create_ctr l_pair_01 ();
}
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */

/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - - - - - - - */
protected class base_create_ctr l_pair
{
protected TextBox UserTextBox0x;
protected Button button0x;
protected PlaceHolder CCP_Dyn_Ctrl_Pl aceholder;
protected Label Dyn_Lbl_msg01;

/* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= * <<< constructor >>>
* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */ protected base_create_ctr l_pair (sys_obj_class sys_obj)
{
CCP_Dyn_Ctrl_Pl aceholder = sys_obj.Get_Obj _Dyn_Ctrl_Place holder; Dyn_Lbl_msg01 = sys_obj.Get_Obj _Dyn_Label01;
}
/* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */ /* =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#=#=#=#=#=#=#= #=#=#=#=#=#=#=# =#= */
protected void init_single_lin e_text_box (TextBox new_TextBox, int col_sz) { new_TextBox.Col umns = col_sz; }

/* . . . . . . . . . . . . . . . .. */ protected void create_ctrl_pai r_0x
(String text_box_id, String Btn_ID, String Btn_text)
{
ControlCollecti on crnt_ctrl = CCP_Dyn_Ctrl_Pl aceholder.Contr ols;
// Create UserTextBox TextBox control.

UserTextBox0x = new TextBox ();

// Configure the UserTextBox TextBox control.
UserTextBox0x.I D = text_box_id;

// Add UserTextBox TextBox control to the Controls collection
// of the Dyn_Control_Pla ceholder PlaceHolder control.

crnt_ctrl.Add (UserTextBox0x) ;
crnt_ctrl.Add ( new LiteralControl( "<br>XxXxXxXxXx XxXxXxX<br><br> ") );
// Create and initialize a Button.

button0x = new Button();
button0x.ID = Btn_ID;
button0x.Text = Btn_text;

// make the button a child of the text box control.
crnt_ctrl = UserTextBox0x.C ontrols;

crnt_ctrl.Add (button0x);
crnt_ctrl.Add
( new LiteralControl( "<br>========== =========::::<b r><br>") ); }
/* . . . . . . . . . . . . . . . .. */


/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
* <<< Button Click Handlers >>>

* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
*/ private String submit_click_st r01 = "The TextBox";

private String submit_click_st r02
= " control above is dynamically generated. <br> You entered: ";
public void Submit_Click (Object sender, EventArgs e)
{ // Retrieve the UserTextBox TextBox control from the
Dyn_Control_Pla ceholder
// PlaceHolder control.
TextBox TempTextBox = (TextBox)
CCP_Dyn_Ctrl_Pl aceholder.FindC ontrol("UserTex tBox1");

// Display the Text property.
Dyn_Lbl_msg01.T ext = submit_click_st r01 + '1' + submit_click_st r02 + TempTextBox.Tex t;
}

/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
*/
/* -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
*/
}
/* - - - - - - - - - - - - - - - - - - - - - - */
/* END: protected class base_create_ctr l_pair */
/* - - - - - - - - - - - - - - - - - - - - - - */

/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */
protected class ctrl_pair_creat ion_01 : base_create_ctr l_pair
{
private sys_obj_class lcl_sys_obj;

// constructor
public ctrl_pair_creat ion_01 (sys_obj_class sys_obj) : base (sys_obj) { lcl_sys_obj = sys_obj; }

/* . . . . . . . . . . . . . */
public void create_ctrl_pai r_01 ()
{ create_ctrl_pai r_0x
("UserTextBox1" , "DButton01" , "Submit 01");

button0x.Click += new EventHandler (Submit_Click);

if (!lcl_sys_obj.G et_this_page01. IsPostBack)
init_single_lin e_text_box (UserTextBox0x, 22);
}
/* . . . . . . . . . . . . . */
}
/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */
/* /|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\_/|\ */

</script>
</head>

<body>

<form runat="server">

<h3> Control Init </h3>

Enter some text and click the Submit button. <br><br>

<asp:PlaceHolde r ID="Dyn_Control _Placeholder" runat="server"/>

<asp:Label ID="Message01" runat="server"/>

</form>

</body>
</html>

<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>
<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>-<+>

THANKS!!!

- wASP

Aug 9 '05 #2
On Tue, 9 Aug 2005 15:06:12 +0200, "Patrice" <no****@nowhere .com> wrote:
This is general mechanism but keep in mind that you have still to do
something that has a meaning. A Form can have childs controls inside this
form but what would be the meaning of having a button "inside" a textbox ?

Use "view source" on your HTML page but eihter this is not processed at all
or ASP.NET renders a button tag inside your input tag but has it has no
meaning the browser might well not render this at all...


I understand now.

THANKS Patrice!

- wASP
Aug 9 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9115
by: ahaideb | last post by:
I have a table (relation) in my database: --------------- | parent | child | --------------- | 1 | 2 | | 1 | 3 | | 2 | 4 | | 2 | 5 | | 3 | 6 |
8
4925
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender, System.EventArgs e) { MessageBox.Show("keyboard button pressed!"); } Following is the code to load the frmTestBaby
3
1838
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then reopen the form again by clicking the button control from the parent - the Page_Load function is not called. parent.aspx <script block> function UpdD(title) { var iParms=new Object(); iParms.DlgTitle=title+"Driver Profile"; iParms.DlgW="320px";...
4
1068
by: wASP | last post by:
Hi, I was under the impression that, when ASP rendered a page, it recursively traversed the hierarchy, executing all controls in each ControlCollection of every control in that hierarchy. I tried adding a Button control to a TextBox ControlCollection, and it didn't execute. When I add the control to the Placeholder ControlCollection (after the TextBox control is added), it executes without any problem:
10
4006
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the application. What should happen, is that the main MDI form should close, taking the child forms with it. There is code to loop through the child forms, remove the controls on each of them, and then close the form, but this code should execute only...
5
3528
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I do the update the changed parentid in the child table fails to change. No error is given its just that the change is not written to the Database. When I step through the records for the child table the one I would expect to be changed has a row...
0
2282
by: Scott H. | last post by:
I have an MDI parent form that creates mdi child forms each of which are represented by a tab item. I use a third party control to generate the tabbed MDI child forms. Each tab or MDI child form displays information regarding a specific asset that is determined by an asset number. The asset numbers are entered through a global tool bar. I can enter an asset number and then display several MDI child forms. For example: I can display...
4
3559
by: Richard Lewis Haggard | last post by:
What is the mechanism by which a child window can notify its parent that it has been clicked on? -- Richard Lewis Haggard www.Haggard-And-Associates.com
12
6221
by: Phil | last post by:
I can check for MdiChildren.Length=0, but which event handler should I put this in to detect when a child window is closed? TIA Phil.
4
8240
by: jewel87 | last post by:
Hi everyone! I'm writing some code in C under UNIX, which should give some output like this: PARENT: pid = 10063 CHILD: my pid = 10064 CHILD: my parent's pid = 10063 CHILD: Sleeping... PARENT: my child's pid = 10064 PARENT: Waiting for the child to exit... CHILD: Done sleeping... PARENT: child is dead.
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1254
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.