Hi,
In the aspx i have this piece of code:
<%@ Register TagPrefix="cc1" Namespace="Aspose.AdHoc" Assembly="Aspose.AdHoc" %>
and
<P><asp:panel id="Panel1" style="POSITION: relative" runat="server" Width="672px" Height="168px">
<cc1:adhoc id="AdHoc1" runat="server"></cc1:adhoc>
</asp:panel></P>
in the codebehind i have:-
[...] Protected
WithEvents AdHoc1 As Aspose.AdHoc.AdHoc
[..]
Private Sub Page_Init(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Init
AddHandler GenereerVoorschriftButton.Button.Click, AddressOf Me.OnGenereerVoorschriftButton_Click
AddHandler CancelButton.ButtOn.Click, AddressOf Me.OnCancelButton_Click
End Sub
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Me.Page.IsPostBack Then
Me.Page.Session.Remove("SelectionWherePart")
Me.Page.Session.Remove("SelectionWherePart")
Me.Page.Session.Remove("whereplusappendix")
Me.Page.Session.Remove("SelectedRows")
Me.Page.Session.Remove("WherePlusAppendixCount")
End If
Dim lic As New Aspose.AdHoc.License
lic.SetLicense("Aspose.total.lic")
AdHoc1.Enabled =
True
Adhoc1.ShowWhereWindow="True"
Adhoc1.ShowOrderByWindow="False"
Adhoc1.ShowSelectWindow="False"
Adhoc1.ShowCancelButton="True"
Adhoc1.ShowRuleOperatorButtons="True"
AdHoc1.ShowWhereCount = "True"
Adhoc1.AdvancedStringOperands="True"
Adhoc1.DynamicWhereCompiling="True"
Dim querystringitem As String
Dim viewname As String
Dim mode As String
Dim idMailingActie As Integer
' Prevent Clicks
'Aspose.ASPXpand.WebUtil.PreventRightClick(Me.Page)
' Determine ReLoad
mode =
Me.Page.Request.QueryString.Item("mode")
idMailingActie =
Me.Page.Request.QueryString.Item("idMailingActie")
viewname =
Me.Page.Request.QueryString.Item("viewname")
Dim sqlstring As String
AdHoc1.TableName =viewname
AdHoc1.DisconnectedData =
True
sqlstring = sqlstring + "SELECT TOP 1 * from
'viewname"
Session("sqlstring") = sqlstring
AdHoc1.DataSource = SQL2DataTable(sqlstring)
AdHoc1.DataBind()
If Not IsPostBack Then
[...]
End If
when trying to select a field
a. this field does not kept focus (so it does not remains blue)
b. when pressing a button like "greater" an asp.net error message is shown:-
NullReferenceException: Object reference not set to an instance of an object.]
Aspose.AdHoc.AdHoc.SetWhrFields()
Aspose.AdHoc.AdHoc.cmdWhr1_Click(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1273
This really has some priority in our company ...
Thanks for your help. This is as always perfect ...