URL For Server Page

I'm developing a Web App using C#. I want a page in the app to refer to
another page in the app. I tried to create a web request with the page
address below:

pageAddress = "http://~/clientDBQuery.aspx";
WebRequest request = WebRequest.Create (pageAddress);

and got the following error:

Exception Details: System.UriFormatException: Invalid URI: The hostname
could not be parsed.

What is the syntax for referring to a page on the current site so I don't
have to change it when it's published?

When I used the following page address:

pageAddress = "http://clientDBQuery.aspx";

I didn't get the parsing error but the debugger didn't stop on a break point
I set in the LoadPage method. This seems to occurr because it goes to a page
on my ISP which doesn't exist.

What's the right way to handle this situation?

View Replies


ADVERTISEMENT

How To Read An SQL Server Into A ASP Page And Then Change, Add, Delete And Write It Back To SQL Server

I need to read a SQL Server table into a Web Page and within the Web
Page to permit my users to make changes to the records, delete or add
new records and then save the entire contents back to the SQL Server
table back.

The functionality I am looking is almost the same as In the SQL
Enterprise Manager whereby I can choose a table open the table and
then return all rows and I can maintain the same and save it back to
the SQL Server table. I want almost a similar web interface to such a
functionality.

Even if not a generic functionality as the SQL Enterprise Manager
table maintenance appreciate if somebody can share the code with a
sample how I can do it in ASP pages + T-SQL if need be.

View Replies View Related

Page Execution :: Page Interpreted By Web Server?

Is ASP page compiled or interpreted by the web Server and what about the internet explorer how it deal with HTML and other realted pages?

View Replies View Related

Server Page

I have a server page that has served an HTML page with a "Cancel" button on it, BUT this server page has not completed and is running a 15-30 second process before it completes. I want the browser user to be able to terminate the page before the server process has finished.

What I tried was an onClick event that issue a "location.href..." in hopes that this would load this referenced page, etc. but I have found that the browser waits until the server process had compled before executing the "location.href". is there some way that I can "signal" the server to stop processing so that I can go to the "location.href" page; or is there some other way?

View Replies View Related

Including A Page From Another Server?

How would I go about displaying a plain text page that is located on a
website that is not my own? For example... my site is www.x.com and
www.y.com has a news article at http://www.y.com/article1.asp and i want to
"include" this file on a page located on my site (www.x.com).

View Replies View Related

Talking To Another Server From ASP Page

I have a set of ASP pages. The pages are hosted on IIS as a seperate application with their own global.asa. I have another web server (custom made by our development team) running on another port (say 6550) on the same machine where IIS is running. This web server is running inside a Win32/MFC DLL. I am looking for a way to achieve the following.

1. A user opens one of the ASP pages hosted on IIS in his browser.

2. On the server side IIS starts processing the ASP script.

3. The ASP script needs to pass the query string parameters to my DLL. My DLL will perform some operations and change some internal data values and will inform the ASP script about the success or failure.

4. The ASP script will send a response back to the user browser depending on the success or failure value returned from the DLL. It would most probably redirect the user browser (Response.Redirect) to another ASP page.

I am concerned about how to talk to my DLL. I have two options in my mind.

1. I can create an ActiveX. ASP script will create an instance of the ActiveX which will talk to my DLL by calling the appropriate functions and return the success or failure value to ASP script.

2. I can somehow call the custom web server (which is running inside my DLL) from inside the ASP script, passing it the query string parameters via a URL.

Because the web server is running inside my DLL, it can perform same operations and can change same values which I can perform and change using the DLL interface functions. And then my custom web server can return the success or failure value to the ASP script.

Option 1 is clear to me. I want to know whether option 2 is possible or not. Can I call my custom web server from the ASP script such that the ASP script does not use Response.Redirect?

Can the ASP script call a URL pointing to my custom web server, wait for my web server to do its processing and return the success or failure to the ASP script, and then redirect the user browser to another page depending on the success or failure value returned from my web server?

View Replies View Related

Page For Using Index Server

I need a search engine for my web. The service Index Server (for web) is started (win 2K) but i don't know how to make an ASP page for that. I can make a form like this:

<form ACTION="/asp/search_v2/query2.asp" METHOD="POST">
<table WIDTH="500" bordercolor="#FFFFFF">
<td>Give what you want to search:</td>
</tr>
<td><input TYPE="TEXT" NAME="SearchString" SIZE="65" MAXLENGTH="100"
VALUE=""></td>
<td><input TYPE="SUBMIT" NAME="Action" VALUE="Go"></td>
</form>

but then .

View Replies View Related

SQL Server Code From An ASP Page

I'd like to write a bunch of queries from a SQL Server 2000 database in my ASP page and have a way of copying this information into an excel workbook in specific cells. Writing the queries isn't the problem, I just need to place it in a file in different specific cells.

Is there a way to do this? Do you have to use VBA code or something? the *.iqy technique isn't going to work, cause I have to place the data in a sepcific excel file, in sepcific cells. I am not sure how to do this or if it's possibly, if anyone has any
ideas on where to start or find some sample code I'd REALLY appreciate it.

View Replies View Related

ASP Page Can't Post To IIS 5.0 Server

We are trying to get an .asp page to post to an access
database. the page is viewable, and the form boxes can be
filled in. Upon submission of the data a confirmation
page is then to show.

What happens is the data is inserted into the page, but
upon submission an HTTP 500 Internal server error appears.

if we uncheck show friendly http errors in IE there is
still no more info to go on.

View Replies View Related

Page 2 - Server To Local

Manipulate your asp code in whatever editor floats your boat, but try your code in IIS without your ide and see what happens.

View Replies View Related

Activer Server Page

What is the default time out on an Active Server Page?

View Replies View Related

How To Store Output Of An ASP Page On Server...

The result of my asp page will not change for a week. So instead of querying
the database every time a user visits this page, an HTML page is sent to the
browser. How can I accomplish this?

View Replies View Related

Exicute On 2 Page Server.execute

Is it possible to use sever.execute and the on the called page use
another server.execute (if some condition is met)
It has failed in my experiments

View Replies View Related

Is It Possible Execute An Application On The Web Server Through An ASP Page?

Is it possible execute an application on the Web server through an ASP page?

View Replies View Related

Page Interactive With MySQL Server

I had a Linux MySQL server setup today, it works well with php just wondering to know is that support ASP?

View Replies View Related

Deleting Files On Server From ASP Page

How could I perform the task of deleting or renaming file on the server
where I have ISS via ASP page.

View Replies View Related

Access SQL SERVER 2000 DB From An Asp Page

I'm using sql server 2000 database and trying to access it using asp. when i installed sql server, i selected the mixed mode of authentication(windows and sql server). Code:

View Replies View Related

Server-Side Login Page

I have a client who wants a customized special announcements page similar to WordPress They however, want it some custom and want it to reside entirely on their servers, with a folder that is only accessible with a user login and password. They want the ability to be able to edit the page directly on the server so that the changes are instant.

I have no experience with server-side scripting, or servers period expect for uploading or downloading files onto the server with an FTP. I would like to hire someone to help me complete this project however, I'm not even sure what to ask for.

View Replies View Related

Accessing A Web Service From An Active Server Page

I have implemented a Web Service on an IIS 5.0 platform using the ASP listener
I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its "MSSOAP.SoapClient30" object

However, one of the servers that I'd like to call the Web Service from is a shared hosting platform that does not offer the "MSSOAP.SoapClient30" object
It only has the MS XMLDOM. I have located an example of Accessing a Web Service via the MSXML DOM from an Active Server Page where the Web Service is on a .NET platform (http://home.att.net/~codeLibrary/ASP/ws.htm

But I need to know how to access a Web Service from an Active Server Page with the MS XMLDOM where the Web Service is implemented using classic ASP.

View Replies View Related

A Server Page Execution (hiding The Real URL)

I'm looking for a solution for the following problem:

I created ASP code to convert an URL such as:

http://localhost/mypage/category_20/article_15/
into the following URL:

http://localhost/index.asp?page=myp...20&articleid=15

Now, the first URL is submitted by the user. The second one is the real URL,
but not visible for the user. This one should be handled by the web server
internally.

I thought I could accomplish this task with server.execute or
server.transfer, but none of them can handle querystrings. Is there another
way to do this?

Are there perhaps any COM objects? (This will be my last choice, because the
whole system should go running on an iASP (instant ASP) server too if
possible)

View Replies View Related

500 Internal Server Error On ASP Home Page

hosted on my own IIS while developing and had no problems, but since putting the site up onto an external ISP, we have been getting server errors when trying to access the default.asp page. Clicking refresh loads the page fine (but of course, new visitors don't know this!)The address of the site is http://betweenheavenandearth.ca . If you type this address into the address bar you may recreate the error (it doesn't always occur)

View Replies View Related

My Server Hangs For A Long Time After I Run This Page

My server hangs for a really long time after I run the following code...

It is to serve up 3 types of files: a picture, a word document, and an mp3 file from a directory "/uploads" that is not accessible through the URL. The script works perfectly for the picture and doc file, but nothing loads when it is used for the audio files. The files are a few megs large, but after I run it I can't access ANYTHING on the site for quite some time.

What's wrong? Is it something wrong with M@rco's script? Did I impliment it wrong?

I don't mind if it simply takes a long time for it to load the audio file, but it is killing the entire server it seems like. Code:

View Replies View Related

Read And Copy Html Page From Another Server

Is it possible to do the following in asp: To read an html page from a server (not mine) every 5 minutes and copy it to my server. The html page just contains a list of numbers.

View Replies View Related

Asp/access Sql Page Works In Xp But Not In Server 2000?

I have a page which works fine testing locally on my win XP PC, using an access database file. When I place it on the server (all code and database file being the same)... it gives an SQL error :

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2

The SQL statement is as follows: Code:

View Replies View Related

Physical Path Of Any Page Hosted On Other Server

May i get the physical path of any page hosted on other server?

View Replies View Related

How To Send Request To IIS Server After The Page Displayed

Is that possible that I can send request to IIS Server after a .ASP page is
displayed? My Requirement is:

Clinet will Fill the Details in one Request Form after the details are
filled then the Request Files will be shown to the user as Link in Another
page. (Currently before Sending the Link Page to Customer I am updating DB
in Different Servers Located Different Palces - So It takes Time).

So What is My Requrement is After the user gives his details - I will
directly display the Link Page and After the Link Page is Sent to Browser
then I will Execute / Update the DB.

View Replies View Related

Changing Access Code Page On Web Server

When I send a database to server it changes all of my special charters to unicod charterset, I suposed that server is on american charter set, I would like it to change to central europien windows - 1250 code page, is it posible and how? it is very importand to me.

View Replies View Related

Front Page Server Extention Problem

I have installed Front page server Extention on IIS 5.0 it was working fine.
I was able to load project from Visual Interdav and doing well. Yesterday I
installed a security update from Microsoft and after that every thing stop
working and I am getting the error below when ever I am trying to connect to
server using V Interdev. Error Shows that FP Server Extention is not
installed but its there even I removed it and installed it back error is
still there.

"An HHTP error occured. The server could not complete your request. Contact
your Internet Service Provider or Web Server administrator to make sure that
the server has the FrontPage Server Extensions installed, and that the Web
application exists on that server" Code:

View Replies View Related

My Server Asks For Usename & Password When Opening An Asp Page

My newly rented 2003 Standard Edition dedicated server allows me to access HTML or picture files but asks for username and password when I try and open an a asp page.
I have set Authenticated User permissions to Read & Execute and Directory properties to Scripts & Executables. What have I missed?

View Replies View Related

ASP Page - Alerting User That They Have An Email On Our Exchange Server?

Is it possible to create an ASP page that can notify the user that they have an email on our Exchange server? And that will list the number of unread emails they have waiting in their inbox.

View Replies View Related

Fetching A RSS Feed Through A Proxy Server And Displaying It On ASP Page

I need to display the contents of an external XML/RSS feed in an ASP page. I have found a couple of scripts that seem to do the trick at:

(URL address blocked: See forum rules)
(URL address blocked: See forum rules)/ow.asp?ASP_Based_RSS_Reader

(any good alternatives will be much welcome)

However, my problem is that the ASP page is part of an Intranet site, so it can only access the Internet (in order to fetch the RSS) via a proxy server.

Can somebody tell me how can I modify the above scripts (or any other that does the same) so the IP/port/login/password parameters can be passed along with the feed URL?

View Replies View Related

Passing Parameter From ASP Web Page To Stored Procedure In SQL Server

I'm trying to pass parameters from an ASP (VBScript) web page to a Stored Procedure in SQL Server. I know how to do the Stored procedure but it's passing the parameter from the web page that is stumping me.

View Replies View Related

How To Insert A 301 Redirect On An HTML Page On A Windows Server

My website is currently made up of HTML pages and residing on a Windows server.

Currently converting them all to ASP, that is going from .html extensions to .asp (besides adding funking asp functions)

My pages have all being indexed by Google, so wouldn't risk loosing good ranking with Javascript redirects, so I tought using this would solve the issue, for example, on a file named thatpage.html

<SCRIPT LANGUAGE="VBSCRIPT" runat="server">
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mywebsite.com/thatpage.asp"

</SCRIPT>
Wherever where I insert it, in the head, in the body, before the DOC, it's not working, will have to resort to javascript? Will I have to put a link in the html page leading to the asp page? Wouldn't like to have user click agin to be led to the .asp version?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved