Include Dependant

I've only recently begun using asp so i'm not that good, but my problem is this:
The navigation for my site is within an include file. However I have an inlcude navigation file for each section but the only thing that changes from file to file is the name of the section you are in, this seems a bit un-necessary.I.e contact, home, about us etc. Is there a way I can use asp to write the name of the section and so only need one navigation include file?

View Replies


ADVERTISEMENT

Calling Include Dependant

Is there a way that I can display certain text within an asp file dependant on the url? This is what I am trying to do:

In default.asp, if the url is default.asp?VariableHere, then the body of default.asp contains an include calling "VariableHere.inc" (replace VariableHere with the name of the include)

View Replies View Related

Dependant Drop Down

I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first drop down chosed. And I have a submite button to submit all these values to DB.

First problem: I cant keep the value of the selected text in the first drop down. It always goes back to the first value. (but the asp site extension changes accordingly).

Second problem: when the value of second drop down is updated, then the text I inserted in those text boxes, and the checkboxes i checked disappears!

I know its because the site is submitted again to update the second drop down. But how could I keep the values of other elements even though the drop down is updated?

View Replies View Related

Dependant Dropdown Box

you must have heard this a 100 times.. but how do i fill a dropdown box dynamically based on the value selected in another dropdown box from a database?

View Replies View Related

3 Dependant Listboxes

Here is what I am looking to do. If you select listbox 1 then listbox 2 and listbox 3 will change.

If you change listbox 2 then listbox 3 will change. The problem is that listbox 3 will not change if listbox 1 changes. Code:

View Replies View Related

User Dependant Css

I am developing a webapplication for a company holding stocks for a number of customer companies. The customers can order parts via this new appliction. My application
is linked to each of the customers' home pages.

I want each user to 'believe' he still is in his company's pages by changing logo and i.e. backcolor depending on company. A person from company A will see his company's logo and colors and a person from company B will simultanously see his company's logo and colors. Can I achieve this with css. In that case How? Or is there another better method.

View Replies View Related

Dependant Drop Down Lists.

I need to populate a list box with values that will be determined by the selection of another list. What it is, is when we add a user, they get added to a city, eg Townsville and then there are a heap of groups that only apply to Townsville people.

So once I select Townsville as the location, I want to perform a search in AD and return the list of groups in the Townsville OU.

I am not exactly sure of the appropriate method to handle this in asp. If necessary, I could make a third page and just pass values to that from the second page. Is there a better way?

In case you are wondering, there are currently two pages. One is for use by supervisors/managers, and they fill out some details which get put into a URL that is emailed to the administrators.

Clicking on the link fills out the base form for the admin people, but I want them to have more access and to see more than the managers/supervisors that are submitting the request.

View Replies View Related

Dependant Drop Menus

How do I make a dependant drop box? For example, when a user selects Item5 on the first drop menu the second one populates with the options for Item5? I know it will probably use Java of some sort but I do not know the code.

View Replies View Related

Dependant Drop Down Lists

whether anyone had any knowledge of the use of dependant drop downs? For example i would like to choose a product based on the type i.e computer hardware, monitor etc then a list of all products of the same type be displayed in a following dropdown.

Any examples of similar things done, urls to try, your own experience? How simple is it to implement?

View Replies View Related

Dynamic Form Lists And Dependant Text Boxes?

I am having trouble with the ordering page. I would like a dynamic form list to look at a database and when the user selects a product code, the text boxes containing description and price change too to reflect the product code.

The user will be entering in their contact details, so I dont want the page to reload too because I will lose that info. Code:

View Replies View Related

Include More Than 1 Include File

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

Variable Name, Dependant On The Value Of Another Variable...

I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:

View Replies View Related

How To Include

How i can do <!--#include file="filename"--> dynamic with ASP, or any other way

View Replies View Related

#include

If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...

View Replies View Related

The Include

<%
I am trying to use "set con" in the include file. i used it before with simple text but when I use the connection object it doesn t work. is this possible in asp and what is the problem with the code below:

inc.asp file
VARMSG = "set con = Server.CreateObject("ADODB.connection")"
con.Open ("dsn=project;uid=sa;pwd=sa")
%>

mainpage.asp
<!-- #include file="inc.asp" -->
<%
Response.write
set rsTypes = con.execute("select * from firstmarch order by cat")
%>

View Replies View Related

Include Gif

Can someone advise how can I send an html message that include gif file using cdonts.
the gif cannot link to www, or any specific server location. user must be able to view when they open their email.no as attachment.

View Replies View Related

Asp Include?

I have asp page file0.asp which calls another asp page thru include. I have to set conditions tht....

originally the include should have file1.asp In the displayed file file1.asp user selects a hyperlink, it should take it as request and display the new file2.asp in same file0.asp in place of file1.asp.

so i want to display multiple pages on user request inside file0.asp. But originally when file0.asp loads it should have file1.asp. Code:

View Replies View Related

Include In ASP

how to include an asp file into an other asp file with checking condition first.I can do this easily in PHP, but in ASP, it seem that the content of included file is process before it read the code on page.So when I include a asp page into another asp page, I cannot choose which page will be include base on the condition.

View Replies View Related

If X Then Include Y

make a script for my forums (the header) involving the date and an included page. Quote:

If the month is 9 (September) then include page x
elseif the month is 10 (October) then include page y
else include page z

How do I go about doing that? I know how to do it in php, but I'm looking to do it with asp.

View Replies View Related

Include

I m trying to test an include example using the code below, but the page "aspsrc.asp" cannot be displayed.

--->aspsrc.inc page
<%
var msg = "testing testing"
%>


-->inc.asp page
<!-- include statement not to be placed within ASP delimiters -->
<!-- #include file=".aspsrc.inc" -->

<%
Response.Write( msg );
%>

View Replies View Related

#include

When I first started using Server Side Includes I used the regular file include:

Code:
<!--#include file = "myfile.asp"-->
Then I read where the virtual include is much beter. I figured I would try it out, so on my last project I used all virtual includes:

Code:
<!--#include virtual = "/somedirectory/somefile.asp"-->
It worked fine and I really couldn't tell any differnce. Maybe a little easier to remember where all the file needed to point to. But this was for a New Site so testing it on the server was easy. I didn't have to worry about existing content up there.

I'm now redesigning a site to add in some dynamic stuff and I always test everything on the server it will reside on to be sure everything will work. Typically I create a "v2" directory and run everything from there. Well this really screws me up when using a virtual include, becuase I would have to edit and then rededit all my file paths.

So my question is... What do you use? And why are file includes so bad?

View Replies View Related

Include Within Include

i'm calling an include file from within a <td> tag of an existing include file (i'm calling the adroator component from the head.asp file.

i'm getting the following error

Error Type:
MSWC.Adrotator (0x80004005)
ERROR Cannot load rotation schedule file
/root/includes/adrotator/adrotatorhomepage.asp, line 14

the include file head.asp is located in the includes directory while the ssi its calling is on the adrotator directory. here is the code for the adrotatorhomepage.asp (all relevant files are in the same directory) Code:

View Replies View Related

Include Xml (w/ Xsl) In A Asp File?

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

Plain ASP Include, No SSI

I'm trying to include a plain html file in my asp page, but don't know how to include since SSI is deactivated(?)

View Replies View Related

Include File With Asp

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

Include Below Web Root Dir

Is there a way to INCLUDE a file BELOW the web root directory?

View Replies View Related

Include File

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

#Include Files.

Im working on a new site and im not using frames, im using #include files. The isse is you cant put a variable into an include file because includes are loaded befor variables and this means that the include dont work...

what ive done is make an include page with a quirystring passing which page i want to load in, then on the included page it looks at the case and when it = 2 for example. it loads whats in case 2 which in this case is <!--#include file="../XtraNET/Forum.asp"-->

trubble is theres 52 menu items, if the site would always have 52 menu items this would be solved, but you can add new ones.. thusly i need to be able to dynamic the code...


My train of thought is can i store the whole <!--#include file="../XtraNET/LiveChat.asp"--> statement in the database and call it within the code dynamicly, like a document.write or somthing.

View Replies View Related

Include Files

I just started ASP/ASP.NET two days ago. I would like to know the best way to go about using this include file method to contain my connection string stuff. As I understand it, a connection should only last as long as the query action (unlike VB6 with a persistent connection.)
So, what would be the best stuff to put into an include file for my connection stuff so I only have to make one change throughout the ASP/ASP.NET app?
Any other experiences with good things to put in that include file?
Can I also create the connection object in the include file and use it in multiple pages?

View Replies View Related

Include Asp FIles

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

Include Statements

I have been avoiding this issue but it keeps popping up and I cannot figure out a solution. Include statements pathed two or more folders deep they break.

This works:
<!--#include file="../includes/mo_security.asp" -->

This does not work:
<!--#include file="../../includes/mo_security.asp" -->

So basically my site files are limited to one folder deep.
Ex: ROOT/parentFolder/files.htm
One I move another level down the includes do not work anymore:
Ex: ROOT/parentFolder/childFolder/files.htm
I am on a Windows IIS server. Is there any solution to this or is it just a limitation of the include statement?

View Replies View Related

How To Include An Old-ASP Within My New-ASPX

I've got and old ASP script that works Ok, but I want now to include it within a new ASPX script I've just created with '.net'.

The process could be: Code:

<%@ Page Language="VB" %>
<%
... aspx code ...

include my old ASP script
%>

I'm newbie in ASP, and would be extremely obliged if anybody could tell me how I must write it. I've tried with:

<!-- #Include File="old-script.asp" -->

but it doesn't work.

View Replies View Related

Include A CGI File

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







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