473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Call .aspx file from .asp

Hi Team,

Can we call ".aspx" files from ".asp" ? How ?

Thanks in advance
Nov 18 '05 #1
4 1779
It depends what you mean by "call"

If it is just a link to it, yes, href it to the aspx page.

Otherwise it would be easier to call a web service.

Gerald

"Vinod" <vi***@apt-esolutions.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
Hi Team,

Can we call ".aspx" files from ".asp" ? How ?

Thanks in advance

Nov 18 '05 #2
Hi Vinod,

Following your email, find a way to do that.
Never tried with webservices, but you should be able to use this function
with a webservice.

Look for it at msdn.:

Sub grabPageContent(sPageToFlattenUrl, sFlattenedPageUrl)
Dim oXml
Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
if instr(1,sPageToFlattenUrl,"http://") = 0 then
sPageToFlattenUrl = "http://" & Request.ServerVariables("HTTP_HOST") &
sPageToFlattenUrl
end if
oXml.Open "GET", sPageToFlattenUrl, False
oXml.Send
Dim sContent = oXml.responseText
Set oXml = Nothing
End Sub

Gerald

"Gerald" <ge*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
It depends what you mean by "call"

If it is just a link to it, yes, href it to the aspx page.

Otherwise it would be easier to call a web service.

Gerald

"Vinod" <vi***@apt-esolutions.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
Hi Team,

Can we call ".aspx" files from ".asp" ? How ?

Thanks in advance


Nov 18 '05 #3
Hi Vinod,

You should always do a reply to group.
So everybody can benefit from your problem.

Here is a link that does it all:
http://groups.google.com/groups?hl=e...en%26num%3D100

Gerald

"Gerald" <ge*****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi Vinod,

Following your email, find a way to do that.
Never tried with webservices, but you should be able to use this function
with a webservice.

Look for it at msdn.:

Sub grabPageContent(sPageToFlattenUrl, sFlattenedPageUrl)
Dim oXml
Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
if instr(1,sPageToFlattenUrl,"http://") = 0 then
sPageToFlattenUrl = "http://" & Request.ServerVariables("HTTP_HOST") &
sPageToFlattenUrl
end if
oXml.Open "GET", sPageToFlattenUrl, False
oXml.Send
Dim sContent = oXml.responseText
Set oXml = Nothing
End Sub

Gerald

"Gerald" <ge*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
It depends what you mean by "call"

If it is just a link to it, yes, href it to the aspx page.

Otherwise it would be easier to call a web service.

Gerald

"Vinod" <vi***@apt-esolutions.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
Hi Team,

Can we call ".aspx" files from ".asp" ? How ?

Thanks in advance



Nov 18 '05 #4
Hi Gerald,

I just tryed the mentioned Link. But it won't work in my case.
My Code Given Below:
Dim oXml
dim url
Dim sContent

url = "http://..../..../Infows.asmx/"
url = url & "DoBudgetSearch?intVillaOnly=1"

Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
oXml.Send

sContent = oXml.responseText

Response.Write sContent

Set oXml = Nothing
The above works OK. But in my case, I have only ".wsdl" file in my url.
e.g. url = "http://..../..../Infows.wsdl/"

Please suggest whether any method is there to directly pass values to a
"wsdl" file & get the out put, other than using "SOAP object".

Thanks in Advance

-Vinod

"Gerald" <ge*****@hotmail.com> wrote in message
news:eu**************@TK2MSFTNGP09.phx.gbl...
Hi Vinod,

You should always do a reply to group.
So everybody can benefit from your problem.

Here is a link that does it all:
http://groups.google.com/groups?hl=e...readm=402401c1
da23%24c8e5d2e0%24a4e62ecf%40tkmsftngxa06&rnum=2&p rev=/groups%3Fq%3Dcalling%
2Bwebservice%2Bfrom%2Basp%26ie%3Dutf-8%26oe%3Dutf-8%26hl%3Den%26num%3D100
Gerald

"Gerald" <ge*****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi Vinod,

Following your email, find a way to do that.
Never tried with webservices, but you should be able to use this function with a webservice.

Look for it at msdn.:

Sub grabPageContent(sPageToFlattenUrl, sFlattenedPageUrl)
Dim oXml
Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
if instr(1,sPageToFlattenUrl,"http://") = 0 then
sPageToFlattenUrl = "http://" & Request.ServerVariables("HTTP_HOST") &
sPageToFlattenUrl
end if
oXml.Open "GET", sPageToFlattenUrl, False
oXml.Send
Dim sContent = oXml.responseText
Set oXml = Nothing
End Sub

Gerald

"Gerald" <ge*****@hotmail.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
It depends what you mean by "call"

If it is just a link to it, yes, href it to the aspx page.

Otherwise it would be easier to call a web service.

Gerald

"Vinod" <vi***@apt-esolutions.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
> Hi Team,
>
> Can we call ".aspx" files from ".asp" ? How ?
>
> Thanks in advance
>
>



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tiraman | last post by:
Hi , I have 3 files , middle.aspx file include the header.aspx and footer.aspx files . in each of the include files there is a function and from some reason the call to the Footer() function...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
4
by: abcd | last post by:
I am novice asp.net programmer. I have xyz.js file which has resuable functions. I have asp.net form abcd.aspx and the code behind file abcd.aspx.cs, I want to put a 'Help' button when clicked...
2
by: Bon | last post by:
Hello all How to call VB .NET components from user control? My folder structures are: the upper folder called Bon and then there are two sub-folders. One is called UserControls which is used...
4
by: verci | last post by:
Hi guys, I'm running asp.net 2.0. Does anyone know how to fire or call a javascript function from inside my (VB.aspx) code without assigning it to a control attribute? thank you
1
by: Mike | last post by:
I have an web page (page1.aspx) that has a method in the code behind that I want to call from another page. Is this possible to do? The method resides in the page1.aspx.cs file, its a public...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
0
by: sancti | last post by:
hi , I am developing a webpage.I want to call a function from .aspx.cs file to .aspx file. i.e I have to pass the parameter from .aspx.cs file to the function which is in .aspx file.How can i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.