How are you adding the "VehicleDetails.VehicleMakeSelectedIndexChanged"
in the page load?
it should be like this for VB
        AjaxPro.Utility.RegisterTypeForAjax(GetType(General))
it will act like a name-space, I am a little confused and would still
like to see the html source code so I could recreate the problem. You
do not need to make a names space, basically the class you Register
becomes a name-space. The Example above I have a function called
"MakeUpdateUserProperty"
this is how I call it in javascript
"General.MakeUpdateUserProperty(strUser, arList, function(res) {
    if(res.value != null) {

    }
   }); "

vb code for General Looks Like this

Public Class General
  <AjaxPro.AjaxMethod()> Public Shared Sub MakeUpdateUserProperty(ByVal
sUser As String, ByVal arlist As ArrayList)

        If sUser = "" Or arlist.Count = 0 Then
            Exit Sub
        End If
        Dim con As SqlConnection = New
SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
        Dim cmd As SqlCommand = New
SqlCommand("sp_User_Settings_AddUpdate", con)
        Dim param As SqlParameter
        Try
            Dim iCnt As Integer = arlist.Count - 1
            Dim iV As Integer
            Dim vStr

            For iV = 0 To iCnt
                param = New SqlParameter
                cmd = New SqlCommand("sp_User_Settings_AddUpdate", con)
                vStr = Split(arlist(iV), ",")

                cmd.CommandType = CommandType.StoredProcedure

                param = cmd.Parameters.Add("@sUserName",
SqlDbType.NVarChar)
                param.Value = sUser

                param = cmd.Parameters.Add("@PropertyName",
SqlDbType.NVarChar)
                param.Value = StripHighBitCharsT(vStr(0).ToString)

                param = cmd.Parameters.Add("@PropertyValue",
SqlDbType.NVarChar)
                param.Value = StripHighBitCharsT(vStr(1).ToString)

                If con.State = ConnectionState.Closed Then
                    con.Open()
                End If

                cmd.ExecuteNonQuery()

            Next

            con.Close()

        Catch ex As Exception
            If con.State = ConnectionState.Open Then
                con.Close()
            End If

        End Try
    End Sub
End Class


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to