Korzh.com developer tools forums :: View topic - Difficulties to run a simple web app derived from sample
Korzh.com
home : Community forums  FAQFAQ   SearchSearch  |  RegisterRegister  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Difficulties to run a simple web app derived from sample

 
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET
View previous topic :: View next topic  
Author Message
neil.young
Novice


Joined: 29 Jul 2008
Posts: 4

PostPosted: Tue Jul 29, 2008 7:25 pm    Post subject: Difficulties to run a simple web app derived from sample Reply with quote

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
View user's profile Send private message
blounty
Novice


Joined: 04 Aug 2008
Posts: 3

PostPosted: Mon Aug 04, 2008 8:23 am    Post subject: Javascript error... Reply with quote

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
View user's profile Send private message
blounty
Novice


Joined: 04 Aug 2008
Posts: 3

PostPosted: Wed Aug 06, 2008 11:21 am    Post subject: Reply with quote

This is now fixed!! KUDOS.
Back to top
View user's profile Send private message
neil.young
Novice


Joined: 29 Jul 2008
Posts: 4

PostPosted: Wed Aug 06, 2008 9:57 pm    Post subject: Reply with quote

Confirmed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group