i have a client which want to put a counter(ASP file) on his home page but the problem is his all site is static so he wants to have "index.htm" page and also counter on it.
i want to know can i include or call the asp page from java script or any other way to call it on html page?
I am having a problem with a site that I am developing - my aim is for it to validate as XHTML Strict however, I am running into a couple of problems validating it; in my Response.Write ASP script, I am not including " 's to define page element tags as they keep throwing up errors in the page. Code:
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).
I wanna just include a .php in a .asp page,I mean,I use PHP Code:
<?php
include('etn.php');
?>
to include and execute the etn.php in test.php file, but now I need only to include etn.php in .asp file in a linux server. Is there any hint , or coding , or server side codes ?
Is there a way to include a part of an ASP file? Like if I want preformatted text, but don't want to have separate include files for the title, subtitle, and body text? Or including specific variables from a separate page?
I know there are various workarounds for something like this, but I figured I'd ask if for nothing more than an insight into the language (I just started with ASP recently).
The reason I ask is that I want the page to be editable later without risking changing the stylesheets. Since the people who will be doing the updates are not web designers, I want to make the process as risk-free as possible.
I'd like to know whether it's possible to call Java classes compiled with the latest Sun JDK from an ASP page? All the documentation I've been able to find on the net has referred to the ancient MS JVM and SDK, and I don't seem to be able to get any of the examples to work, so I'd like some idea of whether or not what I'm trying to accomplish is, in fact, workable.
I am trying to include a file in an ASP page. But the problem is that the file is in a different folder. When i put the file in the same folder then it works fine. Is there any way to include a file from different folder. For Example I am using a file for database connection and including it in each ASP page as follows-- <!--#include file="Connection.asp"--> So i have to put this file in each folder of my web application. But i want to keep it only at one place. I have also done it with ../ and /(root) but both the methods are not working. These methods work properly on localhost but not on the hosted website
So far I have not been able to import a HTML-page in ASP like I can with PHP. In php you may import a page, and just get the output of the file (not the entire HTML-code, wtih tags like <body> <title and such). Is it possible to do this with ASP?
I would like to have header.asp to be usable from all directories. Header.asp will have images and URLs. When I try to #include the file in test.asp, it works fine. However, if I #include it in testpage.asp, the images in header do not work - testpage.asp thinks the images are in subDir, when they are in the images directory. I have tried a variety of combinations of MapPath, Server.Execute, but I have not gotten the image to appear correctly. What is the correct syntax for what I am trying to accomplish?
I'm after some coding that will allow me to include another url (website) on my page. What I basically want to do is keep my header and footer and use the information off their site so that when they update it mine will be too. I have their permission to do this.
What include statement would I use.
I know I can do it with frames but I would perfer to use a simple include statement.
I have included all the db scripts in asp above the <head> tag and <html> opener tag.When i submit a page, to add a record that record just get doubled and i dont know why that is happening.It dont happen always but now and then. The problem is not with cliking the submit button twice. So all i want to know is if it may be a problem with including the asp codes above the html tag or not?
In ASP, is there a way to use a page to mask the identity of another page? So that say I had a page named google.asp, and I wanted to include all of what is actually on google.com, is there a function similar to the the include option that allows you to mimic a page, rather than include a file?
I am trying to include several files in an ASP script. I have a common file that does the database handling, and that common file will include common functions and classes used throught the script. Although I've checked each of the files for errors, none seem to have any, but when I call a class included from another file, I get this:
Error Type: Microsoft VBScript runtime (0x800A01FA) Class not defined: 'ASPTemplate' /test/test.asp, line 7
Ignorant newbie here who got thrust into a programming role I'm unqualified for. Please use small words. I have to create a java program that interacts with a remote server. Code used in remote server is ASP.NET.
I need to do the following:
1.) Send data from Java program to remote server 2.) Read input data from Java program using ASP.NET 3.) Query SQL dbase on remote server using ASP.NET 4.) Send dbase results to Java program from remote server
I'm pretty sure how to do #3, and I think I can do #4. I'm pretty clueless about the first two steps.
How would I go about including a .txt file in an If-Then statement? Basically what I want is to have a certain file included depending on what the value of Request.QueryString("type") is equal to. Any ideas?
I am having trouble trying to get a line of my script to work. I want to include the variable "name" in a hyperlink. The line of code I am working with is below:
Response.Write ("<a href=""band_news.asp?ID=" & rsCTD("ID") & """> Read more about & rsCTD("name") & </a>")
This code is throwing up errors every since I tried to add the variable for the output of the hyperlink.
I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:
If path is /mainsite Then Regular Menu If path is /admin Then Admin Menu
Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?
My page to place orders is password protected.What ASP script can I use to have the login name of person placing an order pass to database, something like the date which currently I pass using a hidden field <%=date%>.
i am writing a asp pages and i am using some frontpage. my problem is that i put a java aplet (chart) show the student how many correct, not correct and not attempted answers in the chart. all what i get in the page is the results in written but the applet (chart) have red X and its not showing
is it possible for an asp to contain both javascript and vbscript as i want to use the contents of one of the variables in vb script to be used into the javascript.
function enableServerList() {document.getElementById("ddlServers").disabled=false } function disableServerList() {document.getElementById("ddlServers").disabled=true }
This greys out a drop down list as expected. The problem is, when I click on the "get Report" button, I need a way to say in asp code:
if the drop down list ddlServers is disabled then bla else bla
The apparent problem is that when java disables it, the ddl properties page still holds on to an enabled=true property.
I need to be able to write a code(on the asp code page) to get the status of enabled true or false for a Drop Down List that java script has "disabled"
I want to run a query with a list "demonstrator" addresses and make them markers on a google map.
currently i have it so it maps point a,b,c for a unique identifier. but it's only one record , i need help duplicating all the java scripting so if i have a list of demonstrators i don't have to list them one by one. Code:
I have an asp page with java script that calls a clicked event on some radio buttons. It works as expected except for Mac users. They are using a variety of browsers and claim to have java enabled, but when they click on the radio buttons nothing happens. Is there something special that needs to be considered when coding for Mac users (as if dealing with multiple browsers is not enough)...
I have a web app that is coded in ASP and I use Crystal 8.5 to launch the report in a windows 2000 server.When a user launches the report it would crash the system stating 'would you like to report to Microsoft' the reason this error comes up is because the user has crystal report installed on their PC, and if you don't have Crystal installed locally then the report works.To resolve this problem I think I would need to use the Java Viewer instead.
I have written a JAVA class.it have compiled with -target 1.1 arguement and I just can instant it twice time.I can instant it at the first time and second time.When I try to instant it anymore,it prompt me "The remote procedure call failed and did not execute." message.What does it mean?
After,I need restart my web server.My java is used to create new socket and connect to other server.I am using getObject("java:classNameHere") method