So after finally getting fed up with AjaxPro.NET and having none of my
functions work anymore Idecided to just go back to old Ajax.Net when
everythign worked.

Well now for some reason fter changing everything back, some functions
do not run anymore, it calls the serverside function (which it never
executes) then jumps right to the callback function client side. I have
put breaks in the server side code and it will not break at all. just
jumps to the client callback with a null value as the response.

Now I cannot get the <SCRIPT TAGS> to render in the html on the old
Ajax.NET either. I think something has become corrupt! I dont know what
to do all of my stuff is broken!


heres my server function

    <Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)> _
Public Function saveContact(ByVal fName As String, ByVal lName As
String, ByVal hPhone As String, ByVal wPhone As String, ByVal mPhone As
String, ByVal faxNum As String, ByVal Address As String, ByVal City As
String, ByVal Province As String, ByVal Postal As String, ByVal Country
As String, ByVal EmailAd As String, ByVal cWeb As String, ByVal Company
As String, ByVal Category As String, ByVal Notes As String, ByVal
isGlobal As String, ByVal usr1 As String, ByVal usr2 As String, ByVal
usr3 As String, ByVal usr4 As String, ByVal usr5 As String, ByVal usr6
As String, ByVal usr7 As String, ByVal usr8 As String, ByVal usr9 As
String, ByVal usr10 As String, ByVal usr11 As String, ByVal usr12 As
String, ByVal conID As String) As String

        'ByVal fName As String, ByVal lName As String, ByVal hPhone As
String, ByVal wPhone As String, ByVal mPhone As String, ByVal faxNum As
String, ByVal Address As String, ByVal City As String, ByVal Province
As String, ByVal Postal As String, ByVal Country As String, ByVal
EmailAd As String, ByVal cWeb As String, ByVal Company As String, ByVal
Category As String, ByVal Notes As String, ByVal isGlobal As String,
ByVal conID As String
        Dim dbcom As New dbCommands
        Dim mess As String
        Dim conSuccess As Boolean

        If conID <> "0" Then
            conSuccess = dbcom.Connect("packet size=4096;user
id=bizzvo;password=bizzvo;data source=einstein;persist security
info=False;initial catalog=BizzVo", mess)
            If conSuccess = True Then
                dbcom.DoNonQry("UPDATE CMContacts_" &
System.Web.HttpContext.Current.Session("CompanyID") & " SET [FirstName]
= @fName, [LastName] = @lName, [HomePhone] = @hPhone, [WorkPhone] =
@wPhone, [MobilePhone] = @mPhone, [FaxNumber] = @fax, [Address] =
@Address, [City] = @City, [Province] = @Province, [PostalCode] =
@Postal, [Country] = @Country, [EmailAddress] = @email, [Website] =
@website, [CompanyName] = @Company, [Category] = @Category, [Notes] =
@Notes, [isGlobal] = @Global, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] WHERE ID=" & conID, 
fName &
"Ä" & lName & "Ä" & hPhone & "Ä" & wPhone & "Ä" & mPhone & "Ä" &
faxNum & "Ä" & Address & "Ä" & City & "Ä" & Province & "Ä" & Postal
& "Ä" & Country & "Ä" & EmailAd & "Ä" & cWeb & "Ä" & Company & "Ä"
& Category & "Ä" & Notes & "Ä" & isGlobal & "Ä" & usr1 & "Ä" & usr2
& "Ä" & usr3 & "Ä" & usr4 & "Ä" & usr5 & "Ä" & usr6 & "Ä" & usr7 &
"Ä" & usr8 & "Ä" & usr9 & "Ä" & usr10 & "Ä" & usr11 & "Ä" & usr12,
"@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@usr12")

            Else
                dbcom.Close()
                Return mess
                Exit Function
            End If
            dbcom.Close()

            Return "Done"
        Else
            Return "No User Selected"
        End If

    End Function

heres my web.config

<configSections>
    <sectionGroup name="ajaxNet">
      <section name="ajaxConverters"
type="Ajax.AjaxConverterSectionHandler, Ajax" />
    </sectionGroup>
  </configSections>

  <ajaxNet>
        <ajaxConverters>
                <remove type="Ajax.JSON.DateTimeConverter, Ajax" />
                <add type="VBNETSample.DateTimeConverter, VBNETSample" />
        </ajaxConverters>
  </ajaxNet>

  <system.web>

    <httpHandlers>
                <add verb="POST,GET" path="vbwrapper/*.ashx"
type="Ajax.PageHandlerFactory, Ajax" />
    </httpHandlers>


heres my html

        function callback_saveContact(response)
                        {

                                if (response.error != null){
                                alert("here");
                                alert(response.value);
                                return;
                                }

                                if (response.value == "Done")
                                    {
                                        alert("Saved!");

                                        }
                                        else
                                        {
                                        alert(response.value);
                                        }


                        }

                        function saveContact()
                        {
                                        AjaxMod.saveContact(
                                        
document.getElementById("txtfName").value,
                                        
document.getElementById("txtlName").value,
                                        
(document.getElementById("txthPhone1").value +
document.getElementById("txthPhone2").value +
document.getElementById("txthPhone3").value),
                                        
(document.getElementById("txtwPhone1").value +
document.getElementById("txtwPhone2").value +
document.getElementById("txtwPhone3").value),
                                        
(document.getElementById("txtmPhone1").value +
document.getElementById("txtmPhone2").value +
document.getElementById("txtmPhone3").value),
                                        
(document.getElementById("txtFaxNumber1").value +
document.getElementById("txtFaxNumber2").value +
document.getElementById("txtFaxNumber3").value),
                                        
document.getElementById("txtAddress").value,
                                        
document.getElementById("txtCity").value,
                                        
document.getElementById("ddProvince").value,
                                        
document.getElementById("txtPostal").value,
                                        
document.getElementById("ddCountry").value,
                                        
document.getElementById("txtEmail").value,
                                        
document.getElementById("txtWebSite").value,
                                        
document.getElementById("txtCompany").value,
                                        
document.getElementById("ddCategory").value,
                                        
document.getElementById("txtNotes").value,
                                        
document.getElementById("chkGlobal").checked,
                                        
document.getElementById("txtUsr1").value,
                                        
document.getElementById("txtUsr2").value,
                                        
document.getElementById("txtUsr3").value,
                                        
document.getElementById("txtUsr4").value,
                                        
document.getElementById("txtUsr5").value,
                                        
document.getElementById("txtUsr6").value,
                                        
document.getElementById("txtUsr7").value,
                                        
document.getElementById("txtUsr8").value,
                                        
document.getElementById("txtUsr9").value,
                                        
document.getElementById("txtUsr10").value,
                                        
document.getElementById("txtUsr11").value,
                                        
document.getElementById("txtUsr12").value,
                                        SelID,
                                        callback_saveContact
                                        );

                        }

everythign worked fine until I tried to go to AjxPro.NET now everything
seems to be broken! what do i do?!!


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

Reply via email to