Thanks for the quick response!
The problem occurs with Coolite controls and with ASP.NET too!
Inside "ObjectDataSource_GetData" method you can find the problematic code. Thanks
Here is Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!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">
** * * *<ext:ScriptManager ID="ScriptManager" runat="server"/> * *
** * * *
** * * *<asp:ObjectDataSource*
** * * * * *ID="ObjectDataSource"*
** * * * * *runat="server"*
** * * * * *OnSelected="ObjectDataSource_Selected"
** * * * * *SelectMethod="ObjectDataSource_GetData"
** * * * * *TypeName="WebApplication1._Default">
** * * * * *<SelectParameters>
** * * * * * * *<asp:SessionParameter Name="categoryId" SessionField="CategoryId" /> * * * *
** * * * * * * *<asp:Parameter Name="start" Type="Int32" />
** * * * * * * *<asp:Parameter Name="limit" Type="Int32" />
** * * * * * * *<asp:Parameter Name="sort" />
** * * * * * * *<asp:Parameter Name="dir" />
** * * * * * * *<asp:Parameter Name="count" Direction="Output" Type="Int32" /> * * * * * * * *
** * * * * *</SelectParameters> **
** * * *</asp:ObjectDataSource>
** * * * * * * *
** * * *<ext:Store*
** * * * * *ID="Store"
** * * * * *runat="server"
** * * * * *OnRefreshData="Store_Refresh"
** * * * * *RemoteSort="true"
** * * * * *DataSourceID="ObjectDataSource" * * * * * *
** * * * * *AutoLoad="false">
** * * * * *<Reader>
** * * * * * * *<ext:JsonReader ReaderID="Id">
** * * * * * * * * *<Fields>
** * * * * * * * * * * *<ext:RecordField Name="Id" />
** * * * * * * * * * * *<ext:RecordField Name="Name" /> * * * * * * * * * * * *
** * * * * * * * * *</Fields>
** * * * * * * *</ext:JsonReader>
** * * * * *</Reader>
** * * * * *<Proxy>
** * * * * * * *<ext:DataSourceProxy></ext:DataSourceProxy>
** * * * * *</Proxy> * * * * * *
** * * *</ext:Store>
** * * *
** * * *<ext:Panel ID="Panel" runat="server">
** * * * * *<Body>
** * * * * * * *<ext:ContainerLayout ID="FitLayout3" runat="server"> * * * * * * * * * * * *
** * * * * * * * * *<ext:DataView runat="server"*
** * * * * * * * * * * *ID="ImageView"
** * * * * * * * * * * *Name="ImageView"
** * * * * * * * * * * *OverClass="x-view-over"
** * * * * * * * * * * *StoreID="Store"
** * * * * * * * * * * *MultiSelect="true"
** * * * * * * * * * * *ItemSelector="div.thumb-wrap" * * * * * * * * * * * * * *
** * * * * * * * * * * *EmptyText="No items to display">
** * * * * * * * * * * *<Template ID="Template1" runat="server" style="float:left">
** * * * * * * * * * * * * *<tpl for=".">
** * * * * * * * * * * * * * * **<div id={Id}>
** * * * * * * * * * * * * * * * * *{Name}
** * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * *** * * * * * * * * * * * * * * * * * **
** * * * * * * * * * * * * *</tpl>
** * * * * * * * * * * * * *<div class="x-clear">
* * * * * * * * * * * * * *
** * * * * * * * * * * *</Template>
** * * * * * * * * *</ext:DataView>
** * * * * * * *</ext:ContainerLayout>
** * * * * *</Body>
** * * *</ext:Panel> * *
** *</form>
</body>
</html>
/////////////////////////////////////////////////
//////////Default.aspx.cs////////////////////
/////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
** *public partial class _Default : System.Web.UI.Page
** *{
** * * *protected void Page_Load(object sender, EventArgs e)
** * * *{
** * * *}
** * * *public List<Item> ObjectDataSource_GetData(Guid categoryId, int start, int limit, string sort, string dir, out int count)
** * * *{
** * * * * *List<Item> Items = null; //Get All items
** * * * * *//StringBuilder tooltipScript = new StringBuilder();
** * * * * *//foreach (Item itemInfo in Items)
** * * * * *//{ * * * * * *
** * * * * *// * *tooltipScript.Append("var " + itemInfo.Name + "tooltip = new Ext.ToolTip({"
** * * * * *// * * * * * * * * * * * * * * * * *+ " * target: '" + itemInfo.Id.ToString() + "',"
** * * * * *// * * * * * * * * * * * * * * * * *+ " * html: '" + GetTooltip(itemInfo) + "'"
** * * * * *// * * * * * * * * * * * * * * * * *+ "});");
** * * * * *//}
** * * * * *//this.ImageView.AddScript(tooltipScript) //ImageView and Session are NULL
** * * * * *return Items;
** * * *}
** * * *protected void ObjectDataSource_Selected(object sender, ObjectDataSourceStatusEventArgs e)
** * * *{
** * * * * *(this.Store.Proxy[0] as DataSourceProxy).TotalCount = (int)e.OutputParameters["count"];
** * * *}
** *}
}
Thanks in advance!