Jump to content

Recommended Posts

I am going crazy here....

 

AND SORRY FOR THE LONG EMIAL

 

I have apache 2.2.8(win32) installed on my local machine.

I am runngin some application called GeoMoose...mostly Java Script.

What I am doing (trying to do) is pass a value to an ASP or ASP.Net (ASP.Net preferbably) page from GeoMoose

 

I can get this to work on IIS from our server but have APache installed locally

It works untill I try and get it to run from Apache....

 

 

I create a link from the GeoMoose Application

 

ASP PAGE:

<td align="Left">Get XY:</td>

<td><INPUT type="button" value="APACHE GeoMoose ASP" onClick="window.open('http://localhost/geomoose/maplibraryTestingCDrive.asp?PID=[PID]','mywindow','width=1100,height=800')"</td>           

</tr>

<tr></tr>

<tr></tr>

<tr></tr>

 

 

ASP.NET PAGE:

<td align="Left">Get XY:</td>

<td><INPUT type="button" value="Geomoose ASPNET" onClick="window.open('http://localhost/geomoose/ASP_NET_1.aspx?PID=[PID]','mywindow','width=1100,height=800')"</td>           

</tr>

<tr></tr>

<tr></tr>

<tr></tr>

 

 

I am getting mixed results between the two...

 

ASP

When I run the ASP code I get the page to popup...

it puts the title where it should be

Creates the textbox

But inside the textbox it just repeats the query string...and then just outsiide the box it finshes the query string with ">

So I am assuming it cant read ASP or there is a syntax error

 

ASP.NET

When I run the ASP.NET code I get the page to popup

It places the Title in the Page correctly.

But there is nothing on the page...

No textboxes etc.

 

 

Again I am running from an Apache Service 2.2.8.

 

Does anyone know what can be goin on?

 

Can it run ASP and ASP.NET

Why would the query break and jsut repeat inthe text box under ASP

Why is there no textbox in the ASP.NET code

 

One more thing... when I right click the ASP.Net page and click open with IE I get an error...

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

 

 

ERROR:

--------------------------------------------------------------------------------

 

A name was started with an invalid character. Error processing resource 'file:///C:/ms4w/apps/GeoMOOSE/webdocs/ASP_NET_1.as...

 

<%@ Page Language="VB" %>

-^

 

 

 

 

 

 

 

ASP code:

 

<% LANGUAGE=VBScript %>   
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="style.css">
</HEAD>

		<form>
	First name: 
	<input type="text" name="name" value="<%=request.querystring("PID")%>">
	</form> 

 

 

 

ASP.NET CODE.

 

<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    
    Sub Page_Load()
        TextBox1.Text = Request.QueryString.Item("PID")
        TextBox2.Text = Request.QueryString.Item("PID")
        TextBox3.Text = Request.QueryString.Item("PID")
    End Sub
    
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>PUSH VALUES</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <asp:Label ID="Label1" runat="server" Height="32px" Text="THIS IS WHAT I AM TRYING TO WRITE AND SHOW IN THE ASP.NET PAGE" Width="553px"></asp:Label><br />

        <asp:TextBox ID="TextBox3" runat="server" BackColor="#66CC66" ForeColor="#339966"></asp:TextBox><br />

        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />

        <asp:TextBox ID="TextBox2" runat="server" OnTextChanged="TextBox2_TextChanged"></asp:TextBox><br />

    </div>  
  
    </form>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/97237-asp-and-aspnet/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.