Hold on, your original post asked.
My control is not being rendered to page becouse of that (I assume).
So what is it you think isnt happening that you think should ?
--
Terry Burns
http://TrainingOn.net
"GS" <no****@nowhere.com> wrote in message news:OG*************@TK2MSFTNGP11.phx.gbl...
Control is not positioned on webpage at all. My understanding that I can load it programmatically without putting it on webpage (one reference is set at <%@ reference
Placeholder is visible. Code below works fine for TextBox control for example but not for custom control.
"Terry Burns" <me@mine.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
No, your conrol will be rendered after PreRender which happens after this event.
Have you set your control to visible
Have you positioned your control
Have you checked the Z-Order of the control
Is the PlaceHolder visible.
Have you checked that this should appear with no data in it for example ?
--
Terry Burns
http://TrainingOn.net
"GS" <no****@nowhere.com> wrote in message news:Ob**************@TK2MSFTNGP12.phx.gbl...
Hi,
I dynamicly add custom control in SelectedIndexChanged even of GridView which is firing after Page_Load. My control is not being rendered to page becouse of that (I assume). How to avoid this situation? Sample below
protected void dgrCompanies_SelectedIndexChanged(object sender, EventArgs e)
{
GoogleControl MyGoogleControl = new GoogleControl ();
PlaceHolderForMap.Controls.Add(MyGoogleControl);
}