I was writing it with coolite.ProgramThe Windows Control is displayed in JS, but the window control cannot be displayed in Ajax mode. I checked and tested all the control properties related to the window control, and did not find any problems, but there was an error in source code mode. The source code of my window control is as follows:
Code < Ext: Window ID = "Receivwemployeedetails" Runat = "Server" Icon = "Group" Title = "Employee details"
Width = "400" Height = "400" Modal = "True" Showonload = "False" >
< Body >
< Ext: fitlayout ID = "Fitlayout1" Runat = "Server" >
< Ext:
Tabpanel ID = "Tabpanel1" Runat = "Server" Activetabindex = "0" Border = "False" Deferredrender = "False" >
< Tabs >
< Ext:
Tab Runat = "Server" ID = "Tabuserinfo" Title = "User Info" Icon = "Group" Bodystyle = "Padding: 5px ;" >
< Body >
< Ext:
Formlayout ID = "Formlayout1" Runat = "Server" >
< Ext:
Anchor >
< Ext:
Textfield ID = "Txbuid" Runat = "Server" Fieldlabel = "Uid" Width = "250" Disabled = "True" />
</ Ext: Anchor >
< Ext: Anchor >
< Ext: textfield ID = "Txbuname" Runat = "Server" Fieldlabel = "Uname" Width = "250" />
</ Ext: Anchor >
</ Ext: formlayout >
</ Body >
</ Ext: Tab >
</ Tabs >
</ Ext: tabpanel >
</ Ext: fitlayout >
</ Body >
</ Ext: Window >
AboveCodeThe section marked with an underscore will prompt: "It is not a known element. The possible cause is a compilation error on the website .". After consideration, it is estimated that this error is caused. Remove fitlayout from the above Code to solve the problem. The modified code is as follows:
Code < Ext: Window ID = "Receivwemployeedetails" Runat = "Server" Icon = "Group" Title = "Employee details"
Width = "400" Height = "400" Modal = "True" Showonload = "False" >
< Body >
< Ext: tabpanel ID = "Tabpanel1" Runat = "Server" Activetabindex = "0" Border = "False" Deferredrender = "False" >
< Tabs >
< Ext: Tab Runat = "Server" ID = "Tabuserinfo" Title = "User Info" Icon = "Group" Bodystyle = "Padding: 5px ;" >
< Body >
< Ext: formlayout ID = "Formlayout1" Runat = "Server" >
< Ext: Anchor >
< Ext: textfield ID = "Txbuid" Runat = "Server" Fieldlabel = "Uname" Width = "250" />
</ Ext: Anchor >
< Ext: Anchor >
< Ext: textfield ID = "Txbuname" Runat = "Server" Fieldlabel = "Uname" Width = "250" />
</ Ext: Anchor >
</ Ext: formlayout >
</ Body >
</ Ext: Tab >
</ Tabs >
</ Ext: tabpanel >
</ Body >
</ Ext: Window >