Calling .NET Page From A Classic ASP Page On The Same Machine?

Jun 3, 2010

I am attempting to call an ASP.NET page from a classic ASP page on the same machine. The ASP page is located in c:inetpubwwwroot. The ASP.NET page is located in C:InetpubwwwrootWebServiceWrapper

Here is the ASP code to call the page:

Dim objHttp, strQuery
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")[code]....

The ASP.NET code, which calls a web service and sets a cookie, works if I call it from the browser directly. However, using the Msxml2.ServerXMLHTTP object, it does not. The cookie is not generated and there is no error. There are no events in Event Viewer.The ASP.NET page was developed in Visual Studio 2005, .NET 2.0. Changing the POST to a GET has not helped.

View 3 Replies

Similar Messages:

Web Forms :: Redirecting An ASPX Page To A Classic ASP Page Method?

May 21, 2010

I am trying to redirect an ASPX Page to a Classic ASP Page, This is Working Fine with my Local IIS (version 5.1). OS is XPesponse.Redirect("xyz.asp?id=1234");I tried to deploy it into Windows server 2003, IIS Version 6.0 and i am getting an error"Page Cannot be Displayed. here is a problem with the page you are trying to reach and it cannot be displayed."

View 2 Replies

Web Forms :: Calling A Page And Getting The Result In The Calling Page?

Jan 3, 2011

I've a question I don't know if this is possible or not. I've tried a lot of things till now but could not accomplish on what I wanted to do.

What I want to do is call a web page from another page and some how execute either the page load event or page init event and get the result of the page in the first page.

Page A calls page B. Page B has static text and a label which is being set in page load event.

Page B - Code behind


Page B -- HTML code


Till now what I've tried is using the code below from page A. But this code just returns the Html code and nothing else.


View 3 Replies

Calling Method .net From Classic ASP

Mar 28, 2011

I am new to ASP and have just started working on a legacy ASP classic project and been given a sample that makes a remote call in it possible to call the page from ASP?Are you they compatible.My impression so far is that they aren't compatible, but perhaps. I'm wrong.I mean the .net project could be called with parameters and kept seperate I guess?Does anyone have any experience with similar problems or have any tips they can share?

View 2 Replies

Calling .NET Functions/webservices From Classic Asp?

Mar 9, 2010

I am using one webservice, which is for .NET platform, for address validation.Its running successfully on .NET (C#). However, I also want to use the same service from classic asp (legacy code) pages. Would appreciate if someone could give a clue how togo about it? Here are some ideas that I came up with and would appreciate if you could add to it

View 2 Replies

Calling Classic Asp Function That Creates Hash Value

Mar 7, 2010

I've a pre-supplied public function in classic asp that creates a hash value - it is pretty complex and I'd rather not convert it to .net if at all possible (mainly as I don't understand half of what it does!) I'm running it under IIS7 on VWD2008 express. How would you call a function in that asp file? do you have to redirect or as it is #included into the file, is there an eaiser way? At the moment the complier does not spot the function and says it is not declared.

View 2 Replies

Web Forms :: Calling Javascript Method During Page Load From Content While Using Master Page

Mar 30, 2010

I want to call a javascript method during page load. I am using application.master of the sharepoint server 2007 as the master page . In the content page i want to call a custom method named OnLoadFun() during loading the content page. I have written the function inside script tag in the PlaceHolderAdditionalPageHead id section of the content page.


How do i call the OnLoadFun method so the i is being called onload time. i tried putting window.onload=OnLoadFun surrounded by script tag within the PlaceHolderMain content section.

View 1 Replies

Web Forms :: Calling Page In Div - The State Information Is Invalid For This Page And Might Be Corrupted

Aug 5, 2013

I am using Jquery Load and calling a page in a div.

Now while doing postback m getting this errorĀ The state information is invalid for this page and might be corrupted.

SO what might be the possible solution for the same.or is this error due to some other thing.

All this error am getting while doing postback.and when i refresh the page and do the same thing again it works absolutely fine.

View 1 Replies

Web Forms :: Calling A Function On Master Page From A Content Page?

Jun 26, 2010

i have this function on my master page, i want to call it from one of my content page, what should i do?

function showAddress() {
var txtAddress = document.getElementById('txtAddress');
var address = txtAddress.value;
function (point) {
if (!point) {
alert(address + " not found");
else {
map.setCenter(point, 15);
var marker = new GMarker(point);

View 5 Replies

Retrieve Data From Classic Asp From Page?

Jul 29, 2010

I have an asp page with an input/text field and an anchor/href that links to an aspx page. What I want is to populate the label control on my aspx page with the value entered in the input/text field. How would I do that?

View 1 Replies

How To Call A Classic Page From A MVC Action

Apr 21, 2010

I am using StructureMap with ASP.NET MVC. I have a requirement where I need to show a ReportViewer and for that I am using a classic ASP.NET page. The problem is when I am trying to redirect from the action I am getting following issue:

The IControllerFactory 'StructureMapControllerFactory' did not return a controller for the name 'Reports.aspx'.

View 2 Replies

Include Classic File In Asp Page?

Jan 31, 2011

I would like to include the asp clasic file in page. I am looking for something similar to :

<!-- #include file="inc.config.asp" -->

View 6 Replies

Classic ASP Error - The Page Cannot Be Found?

Jan 6, 2011

I know i'm not in the right spot to post this. I hope someone experienced this before and can help.I have an old classic asp website. I try to run it with localhost/foldname/default.asp but it gives me 404 error:


a) I'm running XP 64 bitsb) Classic ASP is checked in Add/Remove Windows Component
c) "Active Server Pages" is set to Allowed in IIS Web Service Extension
d) .asp is mapped in the Application ConfigurationNo luck so far!!! Accessing a HTML file within the same folder work, but not the ASP page.

View 1 Replies

Web Forms :: Which Is The Method Providing The Web Page Calling Another Web Page

Feb 3, 2010

let us say 'default.htm' (.aspx is not possible due to whatever reason) is "calling" 'start.aspx' as following:

<a href="start.aspx"></a>

now i would like to have a method in 'start.aspx' letting me know, from which page 'start.aspx' had been "called" (in my sample this would be 'default.htm'). what would the c#-code look like?

View 9 Replies

VS 2008 - Calling Content Page Sub From Master Page?

Apr 27, 2010

I want to know if there is a way to call a content page Sub routine from a master page. Is this possibile or I must create a class?

View 16 Replies

Calling Page Methods Of UserControl / Page Using MSAJax?

Apr 9, 2010

Is it possible to call usercontrol methods/events using MSAJAX. I wanted to update my usercontrol by calling one of its events when a property from its parent page changes.

View 2 Replies (classic ASP Page) Connects To The MySQL Server

Apr 9, 2010

I have a classic ASP page that connects to the mySQL server with the following code:

Set oConnection = Server.CreateObject("ADODB.Connection")
Set oRecordset = Server.CreateObject("ADODB.Recordset")
oConnection.Open "DRIVER={MySQL ODBC 3.51 Driver};; PORT=3306; DATABASE=xxx; USER=xxx; PASSWORD=xxx; OPTION=3;"
sqltemp = "select * from userinfo WHERE emailAddress = '" & theUN & "'"
oRecordset.Open sqltemp, oConnection,3,3
if oRecordset.EOF then

However, i am unable to find anything to connect to mySQL in ASP.NET (VB.NET). I have only found this peice of code that does not seem to work once it gets to the "Dim conn As New OdbcConnection(MyConString)" code:

Dim MyConString As String = "DRIVER={MySQL ODBC 3.51 Driver};" & _
";" & _
"DATABASE=xxx;" & _
"UID=xxx;" & _
"PASSWORD=xxx;" & _
Dim conn As New OdbcConnection(MyConString)
Dim MyCommand As New OdbcCommand
MyCommand.Connection = MyConnection
MyCommand.CommandText = "select * from userinfo WHERE emailAddress = '" & theUN & "'""
I have these import statements also:
<%@ Import Namespace=System %>
<%@ Import Namespace=System.IO %>
<%@ Import Namespace=System.Web %>
<%@ Import Namespace=System.ServiceProcess %>
<%@ Import Namespace=Microsoft.Data.Odbc %>
<%@ Import Namespace=MySql.Data.MySqlClient %>
<%@ Import Namespace=MySql.Data %>
<%@ Import Namespace=System.Data %>
The error is as follows:
Compiler Error Message: BC30002: Type 'OdbcConnection' is not defined.
Source Error:
Line 121: "OPTION=3;"
Line 122:
Line 123: Dim conn As New OdbcConnection(MyConString) '<--error line
Line 124: conn.Open()
Line 125:


Dim MyConString As String = "DRIVER={MySQL ODBC 3.51 Driver};" & _
";" & _
"DATABASE=xxx;" & _
"UID=xxx;" & _
"PASSWORD=xxx;" & _
Dim conn As OdbcConnection = New OdbcConnection(MyConString)
Dim MyCommand As New OdbcCommand
MyCommand.Connection = conn
'MyCommand.CommandText = "INSERT INTO tablename VALUES("val1","val2","val3")"
Dim MyConString As String = "DRIVER={MySQL ODBC 3.51 Driver};" & _
";" & _
"DATABASE=xxx;" & _
"UID=xxx;" & _
"PASSWORD=xxx;" & _
Dim conn As New MySqlConnection(MyConString)
Dim MyCommand As New MySqlCommand
MyCommand.Connection = conn
'MyCommand.CommandText = "INSERT INTO tablename VALUES("val1","val2","val3")"

View 3 Replies

C# - Can Post Values To Classic ASP Page When Debugging

Jun 21, 2010

I have a classic ASP page that requires two values from a form. These values are posted to the ASP page from another pages form. I would like to pass these values to the ASP page without the need for a form for testing. Is this possible?This is what the asp page looks like:

var someID = new String( Request.Form("someID") );
var anotherID = new String( Request.Form("anotherID") );

Ideally I would like to have VS pass values to 'someID' and 'anotherID' when debugging is started.

View 4 Replies

Web Forms :: Duplicating Behaviour From A Classic Asp Page

Jun 2, 2010

Many years ago I built a website for a customer in classic asp that uses RomanCart as the payment gateway. This has worked very well, but ive now been given the task of rebuilding the site under .net 3.5 the old site used a submit button that set the action to the romancart url and setup some hidden field values. I want to duplicate this behaviour in the .aspx page from the onclick event of a button. Heres the origianl code from the classic asp page.Can Anyone give some some pointers in converting this to c#?

View 13 Replies

Calling An ASPX Page Into A Main Page?

Oct 28, 2010

I have a simple website that I'm building (practicing). In the main page, I'm using <div> to format my page.However, I have another page that I wish to load into/or view in the Main page. Can I do this without using a MasterPage?

View 10 Replies

Page Layout Is Not Displaying Properly In QA Machine But Is Displaying Correctly In Dev Machine

Apr 21, 2010

ASP.Net Page layout is not displaying properly in QA machine but is displaying correctly in Dev Machine. What could be the issue? We are using ASP.Net 2.0

View 1 Replies

AJAX :: Is It Possible To Use A Classic Asp Page To Return Parameters Back The Same As A .NET Web Service

Jun 2, 2010

I have site that I need to have a vendor send an Http Post to us, using querystring parameters, then I have to look up some data and return a few results and parameters back to them. Can this be done using CLASSIC ASP? I ask this because I am still in a learning phase with .NET and have limited resources available to set up a web service.

View 2 Replies

Security :: How To Have A Page Do Single Sign On To An Iframed Classic Login Form

Jan 15, 2010

I have this .net page that is iframing a page that requires username and password. Does any one know if a way i can provide this page the username and password behind the scenes and autologin the user (from thier eyes at least)?

The calling page is a ..NET page but the page that I am iframing in is a classic ASP page.

I was told that i may have to do something like create a security auth ticket and pass the token which I am not sure how to do or even start

View 1 Replies

Set Previously Selected Radio Button Checked In Classic After Page Is Postbacked?

Jun 9, 2010

I have never worked on classic ASP and unfortunately i am supposed to modify an old classisc ASP web site.

ASP.Net ViewState does take care of maintaining control's sate automatically. How do i do it in classic ASP ?

I have two radio buttons and a text box placed on my ASP page, when user types in something in the text box based on radio button selection we display different search results. Now what i need is to keep the previously selected radio button as checked after the page is postbacked. How do i do that ?

View 1 Replies

Using Ajax Script To Load Content From An Aspx Page On Another Server Than The Page Calling The Content

Mar 22, 2010

I'm using this Ajax script [URL] to load content from an aspx page on another server than the page calling the content. So far I've learned that this is a no go. The problem seems to be that when using an absolute link to content the script fails as apposed to using a relative link.

I've searched the web for about 10 hours now, and I still haven't found what I'm looking for.

View 2 Replies

Copyrights 2005-15, All rights reserved