Sign In  Sign Up Live-Chat

Control disabled !!!! problems ....

Last post 02-04-2008, 10:33 AM by aatjan2. 2 replies.
Sort Posts: Previous Next
  •  02-04-2008, 10:08 AM 111750

    Control disabled !!!! problems ....

    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 ...

     

     

     
  •  02-04-2008, 10:20 AM 111754 in reply to 111750

    Re: Control disabled !!!! problems ....

    saw allready the first error:-

     

    adhoc1.ikadjsfkjasdf = "true" should be true (stupid)

     
  •  02-04-2008, 10:33 AM 111759 in reply to 111754

    Re: Control disabled !!!! problems ....

    but this did not solve my problem ...
     
View as RSS news feed in XML