"Failed to create an Asp object for: test1.asp" issue in asp file RRS feed

  • Question

  • Hi,

       I was the below error in working asp files.

        "Failed to create an Asp object for: test1.asp"

         Description: we have two asp page test1 and test2. In test2 page we are creating an object for test1 page and passing the whole asp page(contains scripts) as an object and fetch the data.the main aim of doing this is to avoid post back in asp.  we are using script library and remote scripting for manipulationg the page as an object and fetching the data from the database.

    Please find sample piece of code for the process:


    function temp()


    aspobject = RSGetAspObject("Test1.asp")

    var co= aspobject.Method1(parm1, parm2)


    RSGetAspObject is pre defined method which is used in script library


    function Method1(parm1, parm2)


    var v1=new string();

    v1.value=" Select * from Client where name=" + parm1 +";

    return v1



    This is how the code work.Please provide a suggestion.



    Thursday, December 20, 2012 9:26 AM