ASP Remote scripting cannot be stepped through using visual studio

Posted on 2014-03-07
Last Modified: 2014-03-10
I have a website that is old ASP JavaScript code.  My problem is that I cannot step into ASP classes that are executed using remote scripting.  RSEnableRemoteScripting is used at the top of the ASP file.  It is like using a COM object.  All I can see is the call into the class and the return from the class.  The website is not easy to learn.  The SQL is all created dynamically by queries tables.  I need to learn enough about the ASP code to support making changes to it.  Currently, I need to know how to add a link to a grid.  I cannot currently determine how the grid is populated currently.  In the past, I have been able to step thru C# code in Visual studio to learn what the program was doing.  I wondered if there were any free utilities that could help me diagnose what this ASP JavaScript code is doing.  Can Visual Studio be used?  Any tips are appreciated.  I cannot post any client code because it is basically a large website with many classes.
Question by:edbrinkm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 58

Expert Comment

ID: 39914203
There is no such thing as ASP JavaScript code
Is it ASP or is it JavaScript?
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39914276
Actually yes there is ASP JavaScript code, actually 'Jscript' which is Microsoft's javascript, but I don't know if it will work on IIS greater than IIS6.  Microsoft page (from 2003):

And here's a more current page:
LVL 52

Accepted Solution

Scott Fell,  EE MVE earned 500 total points
ID: 39914510
I have played with asp jscript on server 2008/iis7 and it runs.  But it is very slow compared to serverside vbscript.

When I have had to do what you are trying, I just get out a pencil/paper and start making a flow chart as I read the code.

You can get a basic understanding of asp one w3schools  ASP code is a mix of ASP and either vbscript or jscript which was Microsoft's version of serverside javascript. It is rare to see jscript anymore.  You can mix vbscript and jscript on the same page though.

ASPclassic is probably more like PHP then .NET as far as how you are programming.

>Currently, I need to know how to add a link to a grid.
I think the term grid is a .net term.  In ASP it you are just talking tables.
If you have basic html
        <td>row1 col1</td>
        <td>row1 col2</td>
        <td>row2 col1</td>
        <td>row2 col2</td>

Open in new window

It was more than likely made by looping through an array or recordset.
   <% for x = 1 to 10%>
        <td>row<%=x%> col1</td>
        <td>row<%=x%> col2</td>

Open in new window

     for x = 1 to 10
        response.write "<tr><td>row"&x&"> col1</td><td>row"&x&" col2</td></tr>"

Open in new window

If the site is using dll's then the logic is store there and you would have to have access to the originals.  That is where you could possibly use VS. But if they are 3rd party, you just have to know the api's.  Example, aspupload
The code starts with
Set Upload = Server.CreateObject("Persits.Upload")

Open in new window

When your dll's are used, you will see something similar using, Server.CreateObject.

When asking for help, we understand you can't post code and typically we don't want to see the 1000 lines of code. The best thing to do is create a sample test case using just the required code.  If that is too hard, just remove any private passwords or locations to files/db's.  Posting your code is the best way to get help.  

I would start by reading through the code and create yourself a flow chart. This will help you familiarize.  Then as you get stuck on anything, post questions here.

Spend a couple of hours to go through  It will go fast and is easy to learn especially if you already have the logic.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
window close link 7 35
Calculating percentage 2 31
SP result not being displayed 5 44
Check input text, Number 7 35
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question