radpageview issue

2 posts, 0 answers
  1. Tendai
    Tendai avatar
    4 posts
    Member since:
    Feb 2012

    Posted 20 Feb 2012 Link to this post

    Private Sub InsertNewContactDetails()
     
            Dim iSql As String = "Insert into CompanyDetails (EmailOffice,EmailAdmin,EmailOrders,EmailAccounts,EmailOther,ContactPersonOffice,ContactPersonAdmin,ContactPersonOrders,ContactPersonAccounts,ContactPersonOther,ContactNumber,ContactNumberExtension,ContactnumberFax,ContactNumberFaxExtension,ContactNumberMobile1,ContactNumberMobile2,ContactNumberDirectNumber,ContactNumberFaxToEmail) VALUES ( ' " + txtEmailOffice.Text + " ',' " + txtEmailAdmin.Text + " ' ,' " + txtEmailOrders.Text + " ' ,  ' " + txtEmailAccounts + " ' , ' " + txtEmailOther.Text + " ',  ' " + txtContactPersonOffice.Text + " ', ' " + txtPostalAddress1.Text + " ',' " + txtPostalAddress2.Text + " ', ' " + cmbPostalAddress3.Text + "','" + cmbCategory.Text + "' ,'" + cmbClassification.Text + "')"
            Dim da As New OleDb.OleDbDataAdapter(iSql, MyConnection)
            Dim dt As New DataTable
            da.Fill(dt)
            da.Dispose()
            myDataSet()
            txtEmailOffice.Text = ""
     
        End Sub
    i've got a form that i am working on and on that form i have a radpageview control which has several pages . my text boxes are on the radpageviewpage control and my butttons are on the main form. the code to insert information on the first radpageviewpage is working well however the code to insert information on the second radpageviewpage is not accepting my code. when I use the code above I get the following error

    "Operator '+' is not defined for types 'String' and 'Telerik.WinControls.UI.RadTextBox'." 

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    682 posts
    Member since:
    Sep 2012

    Posted 21 Feb 2012 Link to this post

    Hello Tendai,

    Your question has already been answered in the other thread that you have opened about the same topic. The name of the thread is "Operator '+' is not defined for types 'String' and 'Telerik.WinControls.UI.RadTextBox' error". You can find the thread in Your Telerik Account.

    All the best,
    Ivan Petrov
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>




Back to Top