hi,
How can I retrieve the Control (wucState.ascx) from the Placeholder at the
even: btn_Click:
//declaration at page
protected wucState WucState1; -- my control
....
private void Page_Load(objec t sender, System.EventArg s e)
{
....
WucState1 = Page.LoadContro l("wucState.asc x") as wucState;
plhState.Contro ls.Add(WucState 1);
....
}
....
private void btn_Click(objec t sender, System.EventArg s e)
{
WucState1 = (wucState)plhSt ate.Controls[0]; // ERROR !!!!!! CANNOT FIND
THE CONTROL
....
}
any idea ? please with code sample.
thanx,
Oren
How can I retrieve the Control (wucState.ascx) from the Placeholder at the
even: btn_Click:
//declaration at page
protected wucState WucState1; -- my control
....
private void Page_Load(objec t sender, System.EventArg s e)
{
....
WucState1 = Page.LoadContro l("wucState.asc x") as wucState;
plhState.Contro ls.Add(WucState 1);
....
}
....
private void btn_Click(objec t sender, System.EventArg s e)
{
WucState1 = (wucState)plhSt ate.Controls[0]; // ERROR !!!!!! CANNOT FIND
THE CONTROL
....
}
any idea ? please with code sample.
thanx,
Oren
Comment