Column is sorted. I am wondering why this code is working properly as there is missing the statement runat="server".then I click on a header of the column, the grid posts back to the server and sorting is done. Why does it work without runat="server"? In my books is always used runat=�server� expression. Is it a preferable way?
I am trying to Include a file in my ASP page, but not a file that is on my server, but on another server, this executes a error message, is ther anyway to do this?The Error msg: Active Server Pages, ASP 0126 (0x80004005) The include file 'Http:...x.asp' was not found
I have page which uses two server includes. The first displays a random banner advert. The second displays a form containing dropdown boxes populated from a database.
The includes work seperately but when I include them together I am getting an error. The includes share the same database but use different tables.
Does anyone have any ideas as to what could be causing the conflict between the two includes?
I've got an include file inside each page throughout my site. Inside this include file I'm running server.execute to include other pages based on a condition (userID). The problem has two parts- 1) The CPU usage jumps up to 100% 2) The path for these include files is different according to the file that is calling server.execute, resulting in an invalid path I'm not sure the best way to go about this. Basically all I'm trying to do is run server.execute from within an include file, regardless of where the calling page is inside my site structure. This will be running off of an IIS 5 box and is being tested with IIS 6.
I'm looking for a way to include a file from another server in asp page.using #include won't work because it's not on the same server. In php, you can simply include(), and it doesn't care whether or not it's on the same server, is there a similar function in asp?
When using a Server side include in IIS 6.0 in an .asp page to include connection information I get the following error: Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The pages work fine on IIS 5 but give me this error even though I can test the ODBC Connection and it works fine.
Don't have any experience with ASP but am trying to cobble together a page that randomly loads one of three server side includes. My code so far is below but of course it doesn't work. Any pointers?
i have recently completed and tested a site in using IIS on my desktop as a server, and everything runs fine. Upon transferring all the files up to the Real Server at work, the ASP pages are not displayed as i get an error saying that the include files caanot be found.
The include files for my ASP pages are in a folder called 'includes' which sits in the same dir as the ASP files. This setup works fine on IIS on my desktop, but for some reason, this same setup is not working when the files are on the Server. Has anyone got any ideas as to why this might be happening?
I have 9 asp-sites on a Win2003 server, and would like to use the same include file, but it does not work.
The path for the servers default website (which is not where the problem is) is c:inetpubwwwroot and the rest of the sites are at c:inetpubwwwrootwebsitesSite1 , ..Site2 etc.
I tried using the following on the secondary sites: <!--#include virtual="Websites/Include.asp" --> <!--#include virtual="/Websites/Include.asp" --> <!--#include file="../Include.asp" -->
All works fine on my development machine (Win2k) and on the server (Win2003) when it is accessed through the LAN, but when I cut the LAN and access the server through www (e.g. http://www.site1.dk) it does not work.
I suspect that the internet user does not have rights to the virtual path, but how do I solve that?
I need to pass a static parameter to an included ASP file. I'm thinking about using this with a query string, but upon reflection I'm not sure how I can do this. For example:
I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being reached. I'm posting here because there seems to be a few MVP's knocking around, and if they dont know, then it's a safe bet nobody does.
I'm beginning to think that what I want to do is simply not possible - but i'll put it out there once more.
Here goes: I'm writing a content managaement system - and i'm making use of dynamic includes via the "read a text file" technique, and then substitiuting values into markers in the template. Code:
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:
<% 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:
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.
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:
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.