Call function to asp file

Last post 05-09-2009 2:15 PM by ezhillmaran. 7 replies.

Sort Posts:

  • Call function to asp file

    05-08-2009, 3:03 AM
    • Participant
      1,322 point Participant
    • ezhillmaran
    • Member since 02-15-2008, 6:09 AM
    • Chennai
    • Posts 277

     Hi to all,

      I have some functions written in asp file. I need to call those function from asp.net.


     

    thnks n regards,
    Maran.


  • Re: Call function to asp file

    05-08-2009, 4:09 AM
    • Contributor
      2,268 point Contributor
    • Kulrom
    • Member since 01-08-2009, 6:17 PM
    • Republic of Macedonia
    • Posts 413

     I would rather rewrite the function in .NET

    When you ask a question, remember to click "Mark As Answer" when you get a reply which answers your question.
    My Site: ASP.NET Source Code


    My Blog: My New VB.NET Blog
  • Re: Call function to asp file

    05-08-2009, 4:18 AM
    • Participant
      1,322 point Participant
    • ezhillmaran
    • Member since 02-15-2008, 6:09 AM
    • Chennai
    • Posts 277

     I know this could be rewritten in asp.net function. but this is shared file. something like bridget to many application. Other applications done in asp also invoking this file...

    thnks n regards,
    Maran.


  • Re: Call function to asp file

    05-08-2009, 5:00 AM
    • Contributor
      2,268 point Contributor
    • Kulrom
    • Member since 01-08-2009, 6:17 PM
    • Republic of Macedonia
    • Posts 413

    Ok you can also invoke the file from asp.net, using httpRequest/Response methods.

    However i am not very sure whether you can interact the VBScript code directly (e.g. if you want to 1st invoke the vbscript func. and then get the returning value).

    Could you post the asp function or explain what it does.

     

    When you ask a question, remember to click "Mark As Answer" when you get a reply which answers your question.
    My Site: ASP.NET Source Code


    My Blog: My New VB.NET Blog
  • Re: Call function to asp file

    05-08-2009, 5:39 AM
    • Participant
      1,322 point Participant
    • ezhillmaran
    • Member since 02-15-2008, 6:09 AM
    • Chennai
    • Posts 277

     say for example this is the function rewritten in asp file.. i want to invoke this function from asp.net

    Function getData(ByVal Id)
                Set getData= "retVal"
    End Function

    thnks n regards,
    Maran.


  • Re: Call function to asp file

    05-08-2009, 9:03 AM
    • Star
      12,348 point Star
    • Mr^B
    • Member since 02-12-2006, 11:38 AM
    • Posts 2,189
    You can't. You should re-write the function.
    MCSD.Net
  • Re: Call function to asp file

    05-08-2009, 4:42 PM
    • Contributor
      2,268 point Contributor
    • Kulrom
    • Member since 01-08-2009, 6:17 PM
    • Republic of Macedonia
    • Posts 413

     The only thing i can think of is using of Response object.

    If you just invoke the ASP classic page using httpRequest/Response methods you can get the writen values as plain text or xml.

    But in that case your VBScript code should write the value(s) down to the page. e.g.

     
    ' Just a rough example
    Function getDate(id)
         Response.Write("some value/thing/whatever")
    End Function 
     

     

     

    When you ask a question, remember to click "Mark As Answer" when you get a reply which answers your question.
    My Site: ASP.NET Source Code


    My Blog: My New VB.NET Blog
  • Re: Call function to asp file

    05-09-2009, 2:15 PM
    • Participant
      1,322 point Participant
    • ezhillmaran
    • Member since 02-15-2008, 6:09 AM
    • Chennai
    • Posts 277
    Ho! then i have to go for some other solution... anyway thanks for all your answer..
    thnks n regards,
    Maran.


Page 1 of 1 (8 items)