| View previous topic :: View next topic |
| Author |
Message |
neil.young Novice
Joined: 29 Jul 2008 Posts: 4
|
Posted: Tue Jul 29, 2008 7:25 pm Post subject: Difficulties to run a simple web app derived from sample |
|
|
Hi,
I'm appearing difficulties to run a simple web app (XP, IE 6 SP2, VS 2005 SP2). The app uses the global.asax as provided in the non-ajax sample.
On click of either button I'm getting a JavaScript error, breaking here
"__doPostBack('QueryColumnsPanel1$ar$e0', '1')"
with "
This line seems strange to me, because the same call in the source of the original looks like this:
"href="javascript:__doPostBack('QueryColumnsPanel1:r0:e2','')""
Here is my default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Korzh.EasyQuery.WebControls.CLR20" Namespace="Korzh.EasyQuery.WebControls"
TagPrefix="keqwc" %>
<!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>Unbenannte Seite</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<keqwc:QueryColumnsPanel ID="QueryColumnsPanel1" runat="server">
</keqwc:QueryColumnsPanel>
<keqwc:QueryPanel ID="QueryPanel1" runat="server">
</keqwc:QueryPanel>
</div>
</form>
</body>
</html>
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
QueryPanel1.Model = (Korzh.EasyQuery.DataModel)Session["DataModel"];
QueryPanel1.Query = (Korzh.EasyQuery.Query)Session["Query"];
QueryColumnsPanel1.Model = QueryPanel1.Model;
QueryColumnsPanel1.Query = QueryPanel1.Query;
}
}
Global.asax:
void Session_Start(object sender, EventArgs e)
{
string path = AppDomain.CurrentDomain.BaseDirectory;
path += "data\\NWind1.xml";
Korzh.EasyQuery.DataModel model = new Korzh.EasyQuery.DataModel();
model.LoadFromFile(path);
Session["DataModel"] = model;
Korzh.EasyQuery.Query query = new Korzh.EasyQuery.Query();
//query.Formats.EOL = Korzh.EasyQuery.EOLSymbol.None;
query.Model = model;
query.Formats.DateFormat = "#yyyy-MM-dd#";
query.Formats.DateTimeFormat = "#yyyy-MM-dd hh:mm:ss#";
query.Formats.QuoteBool = false;
query.Formats.QuoteTime = false;
query.Formats.SqlQuote1 = '[';
query.Formats.SqlQuote2 = ']';
query.Formats.SqlSyntax = Korzh.EasyQuery.SqlSyntax.SQL2;
query.Formats.TimeFormat = "#hh:mm:ss#";
Session["Query"] = query;
}
The javascript error is: line 343, char 11: Expected object.
Any help appreciated. |
|
| Back to top |
|
 |
blounty Novice
Joined: 04 Aug 2008 Posts: 3
|
Posted: Mon Aug 04, 2008 8:23 am Post subject: Javascript error... |
|
|
Hi, I am getting the exact same error when following the quick start guide. Is there any chance of some support on this issue so i can progress and hopefully purchase this product...
regards |
|
| Back to top |
|
 |
blounty Novice
Joined: 04 Aug 2008 Posts: 3
|
Posted: Wed Aug 06, 2008 11:21 am Post subject: |
|
|
| This is now fixed!! KUDOS. |
|
| Back to top |
|
 |
neil.young Novice
Joined: 29 Jul 2008 Posts: 4
|
Posted: Wed Aug 06, 2008 9:57 pm Post subject: |
|
|
| Confirmed. |
|
| Back to top |
|
 |
|