Directive To Not Process Included Script?
I've got a file in an application that is included in many, many files of an
application, like this:
<!--#INCLUDE FILE="inc_file.asp" -->
I need an instruction I can included at the beginning of inc_file.asp so
that it will not process if I decide to turn it off. I know I can just
replace it with a blank file, but I'd like something more flexible.
I'm assuming that Response.End will end the entire script, and not just the
included file.
View Replies
ADVERTISEMENT
The page directive:
<% @Page aspcompat="true" %>
is causing my web pages to hang. (Page takes a very long time to load, and finally loads with a blank page). Everything was working yesterday and as far as I can tell no changes occured to the server.
View Replies
View Related
The following script is generated by frontpage itself in order to insert
menu.htm in the current .htm page:
<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>
I tried to change the "menu.htm" to a variable using asp like:
<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->
But it doesn't work, I search from the net and explain it will not work
because the directive executes before asp assigns a value to the variable,
but there is no solution.
View Replies
View Related
i have created a website using classic ASP code. i used the include file directive for linking to the different menus, instead of creating individual files for each option. the site runs fine in internet explorer but not in firefox.
the index page is displayed but when i click on the options that use the include file directive the page becomes busy and does not display anything. are their any plug-ins that i need to install or does firefox have a special notation for the include file directive?
View Replies
View Related
I'm getting this erro.wht does it mean
Code:
Active Server Pages error 'ASP 0234'
Invalid include directive
E:INETPUBESVC001320HTML../assets/lib/MSDBConnection.inc, line 2
Server side include directives may not be present in script blocks.Please use the SRC= attribute of the <SCRIPT> tag.
View Replies
View Related
I had a variable called "customer_id_list" and the value is "1, 2, 4, 5, 8". I would like to check that if "4" is in the variable. It return "T".
View Replies
View Related
i want to backup my database included id number..
there are alot table in my database..
but they are not connected with each other..
for example..
table name : products
id | product_name
------------------------
75 ASUS notebook
another table name : type
id | product_id | product_type
----------------------------------
1 75 PIV 3GHZ
2 75 PIV 3.2GHZ
this database is mssql..
how to protect(save) id number while backup database ?
View Replies
View Related
I'm wondering for a way to reload my included page (with a few recordsets) from time to time and display and alert for a trigger limit (based on recordset results)..
I tried to reload it using js, but in that case it reloads the whole page and not only the included file...
<script type="text/javascript">
function page_reload(){
window.location.reload()
}
function page_reload()
{
var t=setTimeout("page_reload(),30000)
}
</script>
Any clue??
View Replies
View Related
I want to save space and time by creating a simple .asp or .txt file that is called into a page. That is a simple include code but how do i make it so the same page opens but the included file changes dipending on the linking page.
something like a dinamic included code.
<!--#include virtual=" dynamic field that changes according to link"-->
Do you think you can help me guys?
View Replies
View Related
I have a function on an "included" page.
For reasons unknown to me I frequently will get an error - to the effect
that the function can't be found.
If I hit refresh/F5 it loads the page just fine.
It doesn't happen often .. maybe once every 50 pages. It also doesn't
happen on any specific page.
I'd show code, but it's not really related to either the function or any
specific page.
Is there any sort of a delay between Asp loading the "includes" and
processing the rest of the page? I'm wondering if the function is getting
called before the include is pulled in.
View Replies
View Related
I have a pretty complicated site written in ASP (it's not live yet, so I really do not want to post a url). On one of my pages, I have a header, the top area, and then the middle area which changes when I click on different links, but the url remains the same.
I need to figure out how to print the middle area. When I just do a print page, it doesn't come out formatted correctly at all. I've been playing around with printing/converting to PDF, which works well, except that most pdf components expect a URL to print, and in this case my url is generic..it doesn't point to a specific page.
View Replies
View Related
Is it possible to get the filename, and more importantly the path, from inside an ASP file, when that file is included? I know it can be done for the base file using Server variables, but I can't figure out how to do that for an included file.
I need to write an application that uses include files, and that may be moved to another folder on the server...
View Replies
View Related
got this code , among others (attached below) for shopping cart from a friend and it suppose to work, however it requires a connection string to make this database driven website works, so my question is how do I insert a connection string code in the string so that it will make a connection to the Access database. Code:
View Replies
View Related
I'm attempting to include a file within another file using Server.Execute. This works fine... however, I need to pass the value of a variable defined within the parent file to the one included via Server.Execute.
From what I've read, the included files are processed before the parent files, so it seems as though the variable is getting lost. Is there any way to internally (not relying on query string) to pass a variable to an included file?
View Replies
View Related
I been trying to send a Html email with a form included. I tryed by including <form> and <input> as usual in Html code. What happen is that the email is send and the form are seen but the input button doesnt work right, in hotmail , msn, I mean its not active
Any idea?
View Replies
View Related
I have a standard Header.asp that I want to include in every other page in
my site. Header.asp is located in the root folder, but the calling pages are
in various folders/levels. Since the relative paths specified in header are
subject to change and are based on the relative path of the calling page,
problems arise. (Strangley, using the IFRAME method of including a header
doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file
using the "virtual" include qualifier. But this assumes your development
directory structure is the same as your production environment. So I guess
that is the answer. Use absolute paths and set up your development directory
structure to be identical to your production.
View Replies
View Related
I'm a complete newbie to IIs and ASP (come from the Apache/Cold Fusion
world ). I've created a very simple ASP test page:
<%@ Language=VBScript %>
<% Response.Write "This is a test ASP page." %>
But when I access the page, it just displays the page as text, instead
of processing the ASP. I've looked at a half-dozen Microsoft KB
articles, but still no luck. I'm not getting an error, it's just not
processing.
View Replies
View Related
I m facing a problem in ASP. That is on the production machine when I deploy my product at that time it dosenot perform a particular process. But on my devlopment machine it runs perfectly fine.
The only difference which lies is that on my devlopment machine in security tab of wwwroot/(website) a security permission with the name of VS Devlopers(machineVS Devlopers) exist but on the production machine it dosenot. What could be the possible problem.
View Replies
View Related
Making good old fashioned asp page and need to be able to display the IIS COM+ process id's (i.e. those that show up when attaching to a process in InterDev(in debug/processes dialog box).
Is there a way to get these process id's show up in an asp page? You can tell I'm not to saavy when it comes to working my way around the WindowsAPI.
View Replies
View Related
Just like to know if I am correct and no problems in this scenario:
I have page where the user clicks a button to save some information >>
gets directed to page 2 where a value gets returned from a recordset and the form is inserted automatically upon loading with the value (sequential for the database table) >>
the user then gets redirected to page 3 upon insertion into the database, if I use 'Select Top 1 ......' as a query to retrieve some information on this page am I sure that this is the correct record just inserted even if 2 or more people are saving at the same time?
View Replies
View Related
i have to start a batch process from a dll to transfer
files created by this dll to remote ftp server. I created
a batch file:
ftp -n -v -i -s:D:atchftpcmds.txt ftp-server
and a file containing the ftp commands:
user username password
lcd D:atchmedia
mput *.*
quit
It works pefectly when i start it from the dosbox. But
when i call it from the vb dll implemented in IIS (shell
("D:atch ransfer.bat")), it does not complete the
transfer and hangs after 400-500 (small) files.
View Replies
View Related
I need to select a csv file from my desktop through the "Browse.." button in my ASP page and upload the file and do further interrogation and extract the data to put into a database. What I'm struggling with is more the first parts with getting the file read properly in the second page so I can read and insert the data.The data below
describes the file. Quite a simple format.
Customer ID - Additional values are player IDs
193948294, 293, 294, 296, 290, 292
View Replies
View Related
if it is possible to run a process after page has loaded? reason being is i have an application that uploads a file, then zip's it up. These are 50 megs sometimes, so zipping the file can take some time. It is a two stage process though, a user will upload a file, then fill out some more info, then submit, so while the user is filling out more info, I'd like to start zipping the file. Does anyone know if that is possible? and if so how to do it?
View Replies
View Related
when i call for a asp page i c some process still running in the status bar. but when i click on the same link again, i could not find the process. it happens alternatevely.why is this happening? how to prevent?
View Replies
View Related
It's been a long time since I've needed any help with something, so I'm happy to come back and feel dumb again. I need to learn how to process XML data and generate pages driven from that data. I know the structure of the documents, I just need to grab the data from inside certain XML elements of the XML documents.
Can someone explain this or post a link to a good site? I've tried googling, but everything I find seems to explain how to print back the XML in HTML format.
View Replies
View Related
Got a bit of code, which I want to loop through, unless the current value is "", in which case I need it to skip to the next one, but how do I do it?
Response.Write "<br />" & vbCrLf
For Each strItem In Request.Form
If strItem = "" THEN
'these next two lines, I only want to be processed if the above does
have a value in it
Response.Write "-" & strItem & "-" & vbCrLf
Response.Write "-" & Request.Form(strItem) & "<br />" & vbCrLf
End If
Next
Response.Write "<br />" & vbCrLf
View Replies
View Related
Anybody have idea about Image processing tools available for ASP (like Imagemagick,I dont think ImageMagick will work with ASP).
I want to adjust the images uploaded to my site(ASP) to a particular resolution and do some image resolution changes, like creating thumbnails from originally uploaded images,etc..
View Replies
View Related
I have created 2 tables on my db. one is for customers and one for corporate. this is to distinguish the records so that we wont mix up our clients. i have created a login page for both customer and corporate. however, i think there is something wrong with the login process code which process the login for users to our page. there is an error message:Error Type:
Provider (0x80020005)
Type mismatch.
(see highlight in red) for attached code.i am not sure if its correct but here is the code as attached
<%
Response.Buffer = True
strUserName = Request.Form("User_Name")
strPassword = Request.Form("User_Password")
Dim rs
Dim sqlStr
Dim record_found
record_found = 0
Dim vPath, pPath, ConString
vPath = "xxxxx.mdb" 'use this one if database is in root of cart folder
pPath = Server.MapPath( vPath )
ConString = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & pPath & ";" & "JET OLEDB:"
Dim Conn, rsCatalog
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open ConString
sqlStr1 = "SELECT * from Customer WHERE User_Name = '" & strUserName & "' AND User_Password = '" & strPassword & "'"
sqlStr2 = "SELECT * from Corporate WHERE User_Name = '" & strUserName & "' AND User_Password = '" & strPassword & "'"
set rs = Server.CreateObject ("ADODB.Recordset")
adOpenStatic = 3
rs.CursorType = adOpenStatic
rs.Open sqlStr1, sqlStr2, conn
If (rs.RecordCount <= 0) Then
Response.Redirect("login.asp?from=no_record")
Else
record_found = 1
Response.Cookies("User_Name") = rs("User_Name")
Response.Cookies("User_Password") = rs("User_Password")
Response.Cookies("Login") = 1
Response.Cookies("View_Cart") = 0
End If
rs.Close
Set rs = Nothing
if record_found = 1 then
if Request.Form("hiddenVal") = "view_cart" then
Response.Redirect("view_cart.asp")
else
Response.Redirect("default.asp")
end if
end if
%>
View Replies
View Related
I have few asp pages, which they get the information from a SQL server, while calling these pages, due to amount of data, sometimes it takes 10-15 seconds for loading the page.During this loading time I want to show the users something like a process bar so that the user is not left out with a blank page.
if anyone can guide me, how to show this process bar before completing the load process.
View Replies
View Related
How to send data through winhttpd and process the data in the target page?
View Replies
View Related
My asp.net code doesn't get executed by IIS. My file is
saved with .aspx extension. When i do a view source, all
the vb code is displayed. This shouldn't be visible if
the server is processing the code. How do i get IIS to
process my vb code is my .aspx files?
View Replies
View Related
I'm developing an intranet application using W2k server and IE5.5 - 6.x
clients. I've got one particular function that calls a stored procedure to
update a number of records, depending on user input. The problem we have
run into is that this procedure can take a few minutes to complete in
certain circumstances, and of course IIS times out.
I've been doing some searching for a solution, but most of the answers I've
found relate to showing a 'Please wait' message while processing the page,
which doesn't help in this situation. The others I've found relate to using
MSMQ, which would probably help, but leads to a load of testing issues that
I'm not prepared to deal with at the moment.
Are there any other 'common' ways to handle this at the ASP level?
View Replies
View Related
I am using Win2k, IIS 5 and vbscript as well as asp.
I want to run an asp page that creates a PDF (using a third party ASPPDF dll) as a background process to free up the main website as it takes about 3-4 minutes to render the PDF.
Any ideas on how to do this or where to look?
View Replies
View Related