Feb 03, 2010, 12:19 AM
Window autorender problem Is a bug?
Friends,
I have a window with a textfield, when a press the save button, i can get the textfield content. but, when i set de autorender property to false and i press de save button the content textfield is blank. I have the window in an user control.
Could you help me, sorry my english.
.ASCX
Thank.
I have a window with a textfield, when a press the save button, i can get the textfield content. but, when i set de autorender property to false and i press de save button the content textfield is blank. I have the window in an user control.
Could you help me, sorry my english.
.ASCX
<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
<ext:Window ID="winData" runat="server" Collapsible="false" Closable="true"
Icon="Application" Title="InformaciĆ³n Perfiles" Width="560px"
Height="452px" AutoRender="false" >
<body>
<ext:FormPanel ID="FormPanel1" runat="server" BodyStyle="padding:5px;" ButtonAlign="Right"
Frame="true" Height="370" Width="535" AutoScroll="false" AutoRender="true">
<Body>
<ext:FormLayout ID="FormLayout1" runat="server">
<ext:Anchor Horizontal="100%">
<ext:TextField ID="txtData" runat="server" FieldLabel="Nombre Perfil">
</ext:TextField>
</ext:Anchor>
</ext:FormLayout>
</Body>
</ext:FormPanel>
</body>
<Buttons>
<ext:Button ID="bSave" runat="server" Icon="Disk" Text="save" >
<AjaxEvents>
<Click OnEvent="SaveData" ></Click>
</AjaxEvents>
</ext:Button>
</Buttons>
</ext:Window>
.ASCX.CSusing System;
...
public partial class UserControls_wucDataWindow : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public void Show()
{
winCompanyProfile.Show();
}
[AjaxMethod]
public void SaveData(object sender, AjaxEventArgs e)
{
string Data = txtData.Text;
Ext.Msg.Alert("title", Data).Show();
}
}
Thank.