Jun 13, 2011, 8:14 PM
Cannot get TextField values.
Hi all,
I've been playing with ext.net and I've got the following issue when I'm tryed to get the TextField value on the server side:
Markup:
<ext:Window ID="Window1" runat="server" Closable="false" Movable="false" Height="120"
Icon="Lock" Title="Iniciar sesión" Width="300" Padding="5" Layout="form">
<Items>
<ext:TextField ID="TxUser" runat="server" FieldLabel="Usuario"
AllowBlank="false" BlankText="Required" Text="" />
<ext:TextField ID="TxPassword" runat="server" InputType="Password"
FieldLabel="Password" AllowBlank="false" BlankText="Required."/>
</Items>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Login" Icon="Accept">
<DirectEvents>
<Click OnEvent="Button1_Click">
<EventMask ShowMask="true" Msg="Checking..." MinDelay="1000" />
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Window>
C#:
protected void Button1_Click(object sender, DirectEventArgs e) {
MessageBox msg = new MessageBox();
msg.Alert("Data", String.Format("User: {0} | Password: {1}", TxUser.Text, TxPassword.Text)).Show();
}
When I ran the project I get this message:
User: | Password:
So, my question's, How do I to get the TextField value in c# code, say, trying to authenticate over aspnet membership...
I'll really appreciate your help,
Regards,
I've been playing with ext.net and I've got the following issue when I'm tryed to get the TextField value on the server side:
Markup:
<ext:Window ID="Window1" runat="server" Closable="false" Movable="false" Height="120"
Icon="Lock" Title="Iniciar sesión" Width="300" Padding="5" Layout="form">
<Items>
<ext:TextField ID="TxUser" runat="server" FieldLabel="Usuario"
AllowBlank="false" BlankText="Required" Text="" />
<ext:TextField ID="TxPassword" runat="server" InputType="Password"
FieldLabel="Password" AllowBlank="false" BlankText="Required."/>
</Items>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Login" Icon="Accept">
<DirectEvents>
<Click OnEvent="Button1_Click">
<EventMask ShowMask="true" Msg="Checking..." MinDelay="1000" />
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Window>
C#:
protected void Button1_Click(object sender, DirectEventArgs e) {
MessageBox msg = new MessageBox();
msg.Alert("Data", String.Format("User: {0} | Password: {1}", TxUser.Text, TxPassword.Text)).Show();
}
When I ran the project I get this message:
User: | Password:
So, my question's, How do I to get the TextField value in c# code, say, trying to authenticate over aspnet membership...
I'll really appreciate your help,
Regards,