Include Different Asp File, Browser Based
I have different asp files to "include" in asp page, depends if the browser is IE or not. The browser detection is not the problem of course. I would like to know how can I include the right file, based on the browser detection.
In partly free language I need:
IF (IE) ->
<!--#include file="x.asp"-->
else
<!--#include file="y.asp"-->
I have tried to test something simple in an asp page, but not working (not too surpriseingly)
<body...>
<script language="javascript>
<!--#include file="../menu/menu.asp"-->
</script>
View Replies
ADVERTISEMENT
Our organization's web site requires a lot of content updates. I like to develop a browser based content management system in asp. I like to show my end users
exactly live format of our web site into edit mode so that they can just go there and change the text, or text within a table, or change a link. Is there any ASP component that can help me to develop this?
View Replies
View Related
I'm building an ASP-based CRM system; a user sees the original
message, posted from the database and can hit a Reply button to
generate a TEXTAREA field on the next page that houses the original
messages and allows them to type a reply and hit a "Send" button.
The original message from the database includes natural line breaks,
as submitted--it doesn't contain any HTML breaks.
I would like to accomplish two things:
1) Add a "> " before each line of the original message, as contained
in the reply
2) In conjunction with the "> " preceding each line, break the
original messge string into logical line lengths that fit inside the
textarea field and don't wrap.
View Replies
View Related
Is it possible to write a web based text editor? For example, is there a way to edit an asp file using an asp file? Here is what I have so far but instead of displaying the asp code it just displays the output html, Can I display the asp code so I can edit files without being at my computer and not using FTP?
Here is the current code:
Code:
<textarea name="editor" rows="35" cols="120">
<!-- #include file="default.asp" -->
</textarea>
View Replies
View Related
I'd like to create an ASP form allowing an user to upload a file that would then be sent as an attachment by e-mail to a preset internal address.
What would be the best way to tackle this knowing that I have not access to the file system (i.e. the file should be stored in a temporary memory buffer) ? Obviously one has to think about limiting the file size to avoid buffer overflows.
View Replies
View Related
I want to be to call my menu from another file onto my page so that i dont have to add it to every page of my website. The problem is when i try to add it using the include method it says that only one include file is allowed on an ASP. The other include file is my connection string so i cant really take that out of the page because then nothing else will work!
How can i get the menu page included as well as the connecting string?
Have added the code below, i have highlighted the 2 include files that i want to use in blue, i have also left the div tag in for where i currently have the menu which is what i want to take out and have ther include file there instead, if that makes sense. Basically the bit in red i want to be able to remove from all of my pages and add the blue file above the red code in instead, but i dont know how!!!!! Code:
View Replies
View Related
I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.
When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?
View Replies
View Related
Can anyone tell me how can i use ASP to display a file in the web browser?
the file is located on the server in C: emp directory. It can be any file.
Is there any way that i can do this?
View Replies
View Related
I want to force the users of my company's intranet to follow my templates by storing the contents of webpages into a database, so now I'm developing a webinterface for them to edit it. I've run into two initial problems. I want the user to be able to add pictures to the page, but I don't know how to make my asp open a file browser for them and retreive the adress as a string. Is there an easy way? Secondly, I'd like them to be abled to add some styles and stuff to their text, but can I get a wysiwyg-textarea that displays underlines and italics and stuff(like this one, btw)?
View Replies
View Related
I have a asp web page with a link point to a file which depend on the database information. Sometime is a picture file sometime a word and some time is a PDF file.
For picture file, when user click the link, it will open the picture inside the IE browser. Now here is my problem:
On some of the computers, for PDF file only, it opens outside of the IE browser. Like the Acrobat program is not in the browser. With the same code, some computer works good. But I want to force it open inside the browser. why and how to fix it?
View Replies
View Related
how to make asp pages that could let people to upload files. I use Macromedia Dreamweaver and there is a form for file field, but it doesn't has any help function on how to do it.
View Replies
View Related
I'm using a flat text file in place of sessions to run my shopping cart. I have a couple different asps' that manipulate the session file to preform tasks like deleting items and updating quantities. The file stores one product along with the user selected options per line so it looks something like this:
product, color, qty, unit_price, selection_total |
product, color, qty, unit_price, selection_total |
...
Code:
View Replies
View Related
At my site I have designed a framework with tabs as below:
(tabs_1.asp)
+----+ +------+ +-------+
| MC | | Cars | | Boats |
+ +-------------------------
then, into tabs_1.asp I include another page
(tabs_1_2.asp)
--------+ +--------------
| New | | Used | | Crasched |
+-----+ +------+ +----------+
Works fine so far... Here comes the problem...
The file tabs_1_2.asp has an included page (data.asp) witch doesnt appear...
When I look at the sourcecode from the webbrowser it seems to have been included but nothing is visible.
Is it inpossible to make several includes in the way I described?
View Replies
View Related
I'm wondering if there's any way to include a XML file (with a XSL) in a ASP file? I've tried this <!--#include file="publications.xml"--> but the XML-code is included before it is formated according to the XSL and ends up being unformated.
View Replies
View Related
how would i get something like this to work...
<!-- #include file="<%=Request.GetString("view")%>.txt" -->
i know wat i want and all but i can't figure out how to make it work.
View Replies
View Related
I want to include files, a header and a footer to my asp page. The files i want to include its on another server, i can reach it with a www-url. Can i use the www-url to include the file to asp page?
View Replies
View Related
How can I include a .cgi file in an .ASP file?
I've tried #include, Server.Transfer, and Server.Execute (yes, I know the last two are
only for ASP, but I tried it anyway).
If I have to, I guess I'll use ASPHTTP to do an http call to the file but first I wanted
to see if there was a more elegant way to do it
Is there an efficient way to include the output of a .cgi file in an ASP file?
View Replies
View Related
Is there any way of having an include file as a string, eg:
<!--#include file="<%=strURL%>"-->
This doesn't seem to work, I get an error:
The include file '<%=strURL%>' was not found
Is my syntax wrong or isn't this possible?
View Replies
View Related
<%
If rsResult.fields(3).value = "" Then
Response.Write "No File Available</td>"
Else
%>
<!-- #include file="Response.Write rsResult.fields(3).value" -->
<%
End If
%>
View Replies
View Related
I do almost exclusively ASP on IIS, so I'm stupid when it comes to dealing with flat HTML on Linux/Apache.I have a static site on a Linux box where I want to do an include on an ASP file on an IIS box, and can't make it work.
I've tried <!--#include virtual="http://where.com/abc.asp"-->
and <!--#include virtual="http://where.com/abc.txt"-->
The ".txt" extension try was in case it's true what I heard that IIS won't let a remote server execute an ASP in an include file.
Also tried <!--#include file=...", even though I know from experience that Apache requires "virtual," not "file."
And also tried <!--#exec cgi=...".
NOT drawing any errors: the generated output just repeats the "<!--#include..." line instead of outputting results from the ASP file.
View Replies
View Related
I want to execute another asp file at the end of my asp file.. How will I do that ?
View Replies
View Related
I use include files a lot in ASP, but I was wondering if these files aren't actually part of ASP at all and you can use them in other web-based files.
View Replies
View Related
how can i add include file that isnt in my directory i need to add a file called:
http://mpfile.hollosite.com/pafile/pafiledb.php
View Replies
View Related
Trying to use a include file in an if statement and it is not working,I have tried it multiple ways and have keep getting errors or blank where it should be.
Code:
<%
IF session("sessionID") = "" THEN
Response.write (" <!--#INCLUDE file=""loginHeader.asp""--> ")
ELSE
Response.write (" <!--#INCLUDE file=""loggedinHeader.asp""--> ")
END IF
%>
View Replies
View Related
How to include file into an ASP program? I was trying with this command:
<!-#include file="INC_file.asp" ->
but unfortunately it does not work but isn't any error message.IIS server shows primary site,but without informations from incuded file.How can I make it works?
View Replies
View Related
The current html file has to 2 drop down boxes. Depending on the selection chosen, there is a predetermined html file to load.My new asp file will replace the current html that has the 2 drop down boxes and it has its own set of design and graphics. So depending on the selection chosen, instead of loading the predetermined html file, I need to grap a section of the contents in this predetermined html file and add it to the content section of my asp file dynamic.
See, another very customised app. creates this predetermined html file dynamically and I have no access to this. My work around is to get the main content I want from this html and include it in my asp file dynamically.
View Replies
View Related
I'm trying to include file using <!-- #include file="abc.asp"--> and it works without any
problem. but the problem is in if file name is in asp variable how should i write?
View Replies
View Related
I have a few ASP pages within each ASP pages I have a block of Javascript that is different for each ASP page contained within the Javascript block is 20 lines that is same across the ASP pages. Is there any script I can enter that would include these lines from a text files or another ASP file?
View Replies
View Related
Why can't I get the following running?
<%
Dim GetODBCdsn
GetODBCdsn = <!--#include virtual="connectionssqlconnection.txt" -->
Response.Write(GetODBCdsn)
%>
View Replies
View Related
I have a #Include statement in an Asp page. I want to find the path of the included file at runtime. How can I do that?
View Replies
View Related
I need to include an asp file from another server. Code:
<!--#include file="SicurezzaDip.asp"-->
I think that is the normal way to do it. I've also used the code shown below, but it doesn't seem to work..Is it possible to Include asp files from another server ? How can i do it ? Code:
<!--#include file="http://81.74.60.30/Asp/SicurezzaDip.asp"--> ..
View Replies
View Related
I have a menu that I use as an include file. it's a horizontal menu that extends to show sub menus.
the table the menu is in has silver background. my problem is that when i use the page as a include file the background color for the menu expands to cover the whole page. is there an issue with the include files that would cause the table color to migrate to all the tables?
if any one knows another way i can use this menu as an include file and keep the background color from migrating it would be greatly appreciated.
View Replies
View Related
I just want to ask a basic question that how can i include a file in asp dynamically
i have tried the code but it is not working:
<%
FileName= "filename.asp"
<!--#include file="<%=FileName%>"-->
%>
View Replies
View Related