Mar 29, 2011, 12:40 PM
Dynamic User controls with window controls is not working
Hi
In my page i am calling one user control with in ext.window control. But it is not working.
First of all window is not opening also it shows javascript error like
For detailed information i added my .aspx page and .ascx page.
for reproducing above mentioned error you can download my sample project here
Thanks in advance
In my page i am calling one user control with in ext.window control. But it is not working.
First of all window is not opening also it shows javascript error like
'Inv_dsMastercolumns is undefined'
protected void Button2_Click(object sender, DirectEventArgs e)
{
Window win1212 = new Window
{
ID = "windowUserControl",
Title = "User Information",
Height = 400,
Width = 400,
Padding = 5,
Resizable = false,
Modal = true
};
var invoice = LoadControl("~/Views/Shared/UserControls/HideShow.ascx");
invoice.ID = "Inv";
win1212.ContentContainer.Controls.Add(invoice);
this.Controls.Add(win1212);
win1212.Render();
}
<ext:Button ID="btnHideshowcolumns" runat="server" Text="Hide/Show">
<DirectEvents>
<Click OnEvent="Button2_Click">
</Click>
</DirectEvents>
</ext:Button>
Due to page size i am unable share my page here. For detailed information i added my .aspx page and .ascx page.
for reproducing above mentioned error you can download my sample project here
Thanks in advance
Last edited by vs.mukesh; Mar 29, 2011 at 1:10 PM.