May 10, 2011, 7:29 AM
[CLOSED] Number Field
Hi..
im using coolite version 0.8.1.987..
i have 1 aspx and ascx page..in .ascx page i have kept one numberfield..in .ascx page i will enter dot(.) in number field and close the .ascx page(see pic1.jpeg)...now i will
click on button in .aspx page to open .ascx page,but it will display the error " Server Error in '/' Application.
--------------------------------------------------------------------------------
The Text value supplied is not a type of Double. Input string was not in a correct format. "
How to solve this problem
im using coolite version 0.8.1.987..
i have 1 aspx and ascx page..in .ascx page i have kept one numberfield..in .ascx page i will enter dot(.) in number field and close the .ascx page(see pic1.jpeg)...now i will
click on button in .aspx page to open .ascx page,but it will display the error " Server Error in '/' Application.
--------------------------------------------------------------------------------
The Text value supplied is not a type of Double. Input string was not in a correct format. "
How to solve this problem
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register src="WebUserControl1.ascx" tagname="WebUserControl1" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ScriptManager ID="sm" runat="server" ></ext:ScriptManager>
<ext:Button ID="btn" runat="server" Text="New Window">
<AjaxEvents>
<Click OnEvent="btn_Click"></Click>
</AjaxEvents>
</ext:Button>
</div>
<uc1:WebUserControl1 ID="WebUserControl11" runat="server" />
</form>
</body>
</html>
protected void btn_Click(object sender, AjaxEventArgs e)
{
WebUserControl11.show();
}
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication1.WebUserControl1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<ext:Window ID="windowForm24" runat="server" Resizable="false" ShowOnLoad="false"
Width="500" Height="200" BodyStyle="padding:5px" CenterOnLoad="true" Closable="false"
Modal="true" Title="Testing">
<Body>
<ext:NumberField ID="txt" runat="server" width="120"/>
<ext:ToolbarButton ID="btnClose" runat="server" Text="Close" Icon="Cancel">
<Listeners>
<Click Handler="#{windowForm24}.hide(null);" />
</Listeners>
</ext:ToolbarButton>
</Body>
</ext:Window>
public void show()
{
windowForm24.Show();
}
Last edited by Daniil; May 17, 2011 at 2:16 PM.
Reason: [CLOSED]