asp code

I need to know how to execute a command asp in natural to invoke a web page

Hi,

We know which will be your platform, you use NATURAL WEB INTERFACE

Hi,

If you will be using “NATURAL Web Interface” can build the page with the LINK of ASP should be in the IIS Webserver and thence by means of a button you invoke or create a javascript routine to load the HTML that invokes immediately.

Kind regards
Angel Mendoza O

thank but I need the code for execute in a dialog of natural windows

Not elegant but it works

You must create an HTM (c:\aa.htm)


<html>
<body>
  <script>
       document.location.href='http://localhost/myAsp.asp'
  </script>
</body>
</html>

AND create a program NATURAL that invokes the HTM, through the command WINCMD


define data local
1 #cmd (a100)
end-define

#cmd := 'cmd /c c:\aa.htm'

call 'wincmd' #cmd

end

that’s all

kind regard
Angel Mendoza O

:idea: You create a new dialog, and “instert ocx control” and select “Microsoft Web Browser”.

:arrow: Open from: Menu->Development Tools->Component Browser…
You find at “All ActiveX Componets” your “Microsoft Web Browser” ocx and the interface “IWebBrowser”.

:wink: There you find e.g. the Method “Navigate” where you can specify your url to the .asp page and how to code the call with Natural.

Hi Fabian,

I think the best solution from Weihnachtsb r

Thanks for the help but I need to be a code that invokes a url sending parameters. It is something like this:

http://epjb/ida/modulodeconsulta.aspx?app=1080&doctype=1160&query=1361&param
1=%&param2=%&param3=0&param4=%&param5=0&param6=01/02/2010&param7=02/02/2010

I don’t understand your problem.

I can see, your url contains all parameters.

Just call and initialize your new browser dialog from another dialog:
Add an additional parameter to your browser dialog

1 #Url (A) dynamic

Now define a user event e.g. “URL” and let your browser ocx navigate to the specific url:

PROCESS GUI ACTION <<METHOD>> WITH #OCX-BROWSE #Url #Flags null-handle #PostData null-handle 

(#Flags and #Postdata are locally defines variabled of type (A) dynamic)
open your browser dialog from another one

OPEN DIALOG "NBROWSER" NULL-HANDLE GIVING BROWSE-DIALOG 

and send the url

SEND EVENT "URL" TO BROWSE-DIALOG WITH AURL

What’s missing?