473,569 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

include file

Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete
the page statement from AllDoc.aspx the sql code doesnt work...What must I
do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->
Nov 18 '05 #1
5 3200
No I didnt try... What its syntax Am I writing in < > tag?

thanks
"Philip Q [MVP]" <wi******@mvps. org>, iletide sunu yazdi
news:eo******** ********@TK2MSF TNGP10.phx.gbl. ..
Selen wrote:
Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete the page statement from AllDoc.aspx the sql code doesnt work...What must I do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->


have you tried using something like -

Server.Execute( "documents\AllD oc.aspx")

instead of an #include?

--
Philip Q
Microsoft MVP [ASP.NET]

Nov 18 '05 #2
Selen wrote:
Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete
the page statement from AllDoc.aspx the sql code doesnt work...What must I
do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->


have you tried using something like -

Server.Execute( "documents\AllD oc.aspx")

instead of an #include?

--
Philip Q
Microsoft MVP [ASP.NET]
Nov 18 '05 #3
No I didnt try... What its syntax Am I writing in < > tag?

thanks
"Philip Q [MVP]" <wi******@mvps. org>, iletide sunu yazdi
news:eo******** ********@TK2MSF TNGP10.phx.gbl. ..
Selen wrote:
Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete the page statement from AllDoc.aspx the sql code doesnt work...What must I do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->


have you tried using something like -

Server.Execute( "documents\AllD oc.aspx")

instead of an #include?

--
Philip Q
Microsoft MVP [ASP.NET]

Nov 18 '05 #4
It's likely because you have a page directive in the main as well as in the
include file.

Under ASP.NET, I wouldn't use include files anyway. Depending upon your
needs you could just create a user control (if you want to include an HTML
fragment) or a class file (if this is to have common code at your
disposal)....
Patrice
"Selen" <sk*****@yahoo. com> a écrit dans le message de
news:u7******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete
the page statement from AllDoc.aspx the sql code doesnt work...What must I
do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->

Nov 18 '05 #5
It's likely because you have a page directive in the main as well as in the
include file.

Under ASP.NET, I wouldn't use include files anyway. Depending upon your
needs you could just create a user control (if you want to include an HTML
fragment) or a class file (if this is to have common code at your
disposal)....
Patrice
"Selen" <sk*****@yahoo. com> a écrit dans le message de
news:u7******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi,
I am using following code for calling AllDoc.aspx file...But it give me
error.Error is that: There can be only one 'page' directive. When I delete
the page statement from AllDoc.aspx the sql code doesnt work...What must I
do?

<!-- #Include virtual=".\docu ments\AllDoc.as px" -->

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3540
by: mescaline | last post by:
Hi, Suppose a_file.cpp contains a function a_function() Now to include it in main_file.cpp I just do #include "a_file.cpp" and I'm all set. i recently came across this seemingly roundabout way to do this in 3 steps: 1. Add in main_file.cpp
6
4316
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing result in any way. Who can help me, I thank you very very much. list.cpp(main program)...
28
3845
by: Ramesh | last post by:
Hi, I am currently maintaining a legacy code with a very very large code base. I am facing problems with C/C++ files having a lot of un-necessary #includes. On an average every C/C++ file has around 150+ .h files included. I find 75% of the files unnecessary and could be removed. Considering the fact that I have a huge code base, I can't...
60
8228
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header associated with this source file For example, in a file hello.c: #include <stdio.h>
9
13094
by: bill | last post by:
Forget the exact definition of difference between, #include <foo.h> and #include "bar.h" Normally foo.h is a standard header file, so it's path is not defined in compiler option, but I am curious how compiler find it.
12
1965
by: Francois Grieu | last post by:
Can #include safely use a preprocessing token, as in #define HEADERFILE "stdio.h" #include HEADERFILE int main(void) {return printf("Hello, world\n")*0;} TIA, François Grieu
9
6399
by: zolli | last post by:
Hi, I've been banging my head against this for a while now. Hoping someone here can shed some light on what's going on. On including stdlib.h in a file, I'm seeing the following errors: ----BEGIN ERRORS---- gcc -g3 -DUSE_LIBC -Wall -c -I../mm -I../include -I/usr/include -I/usr/include/linux -o mm_tree_test.o mm_tree_test.c
5
2499
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to very carefully define the order in which paths are searched with command line options on the compiler. Both can cause problems, especially when...
3
2691
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include directories contain a file named "cppfile1.h". In my main project I #include "cppfile1.h". I rely on the order of paths in additional include...
6
2106
by: tshad | last post by:
In my User control, I tried to do this: *************************************************************************** <Script runat="server"> Public ClientName As String = "<!-- #include file = ...\includes\StaffingHeaders.inc -->" </Script> <%=ClientName%> ****************************************************************************
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.