Call us now: 1-800-449-5093

Help! Unable to get RichLiveCombo to work with Code Behind

Last post 08-18-2006 3:33 AM by RicherComponents Support. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-16-2006 2:28 PM

    • cakumu
    • Top 500 Contributor
    • Joined on 06-03-2005
    • Posts 4

    Help! Unable to get RichLiveCombo to work with Code Behind

    I have spent two days trying to get this to work Ideeally it would be included in an ascx page. I could not get that to work so I tried this stripped down page. Same problem, no data, just the data loading message.

    Here is my aspx page.
    <%@ Register TagPrefix="richcombo" Namespace="RicherComponents.RichLiveComboControl" Assembly="RichLiveCombo" %>
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="LIVETEST.aspx.vb" Inherits="WFB.CPGI.Tracker.LiveTest" %>








    RichLiveCombo with BasicProperties.


    View
    Source







    BorderWidth="2px" BorderStyle="Solid" ForeColor="Navy">

    Selected Value :






    my asp.vb page is .

    Public Class LiveTest
    Inherits System.Web.UI.Page
    Public WithEvents RichLivecombo1 As RicherComponents.RichLiveComboControl.RichLiveCombo
    #Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    Private Sub InitializeComponent()

    End Sub

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
    'CODEGEN: This method call is required by the Web Form Designer
    'Do not modify it using the code editor.
    InitializeComponent()
    End Sub

    #End Region
    Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    Dim sURL As String = Server.MapPath("DATA/DataCustomers.mdb")
    RichLivecombo1.LoadingImagePath = "DataLoadingImages/dataloading_red.gif"
    RichLivecombo1.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" + sURL
    RichLivecombo1.SQLStatement = "SELECT * FROM Customers ORDER BY CompanyName"
    RichLivecombo1.DataTextField = "CompanyName"
    RichLivecombo1.DataValueField = "CustomerID"
    RichLivecombo1.DataMember = "Customers"
    'lblMessage.Text =RichLiveCombo1.Text
    End Sub
    Sub submit_Click(ByVal sender As Object, ByVal e As System.EventArgs)
    ' lblMessage.Text = RichLivecombo1.Text
    End Sub

    End Class
  • 08-17-2006 4:29 AM In reply to

    Re: Help! Unable to get RichLiveCombo to work with Code Behind

    Hi,

    What type of problem you are getting? Is Data not populating in Combo?

    It seems that you are trying to implement the 'Basic properties' live sample available at our site with your own database (DataCustomers.mdb).

    We implemented the same sample its working fine.

    Please check with the following steps once again to get rid of your problem:

    1) May be the path of 'Data' folder is not mapped properly.
    2) May be 'RichLiveComboProcess.aspx' page is not included to the project.
    3) Also check with the field names of the database.

    Still you are getting the same problem let us know the problem with clear steps to generate so that we can help you.

    Thanks in advance.

    Regards,
    Subhash.
  • 08-17-2006 11:34 AM In reply to

    • cakumu
    • Top 500 Contributor
    • Joined on 06-03-2005
    • Posts 4

    Re: Help! Unable to get RichLiveCombo to work with Code Behind

    The code above worked when it was all in one file in the .aspx file with the