473,796 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<include> lines disappear from code

I am coding classic ASP pages in Visual Studio .Net 2003.
I have a file called counties_option .asp that just has a
list of options:
<OPTION VALUE="030">ANS ON</OPTION>
<OPTION VALUE="040">ASH E</OPTION>
etc...

I then call this as an include file in several places in
a file called page1.asp like this:

<SELECT id="Select7" name="aCounty1" >
<OPTION value="All" selected>All</OPTION>
<!-- #include file= '../common/counties_option .asp'-->
</SELECT>

This works OK the 1st few times, I can see all the
options in the drop down list, but after a while (I
have not determined the exact time period or cause) the
<include> lines disappear from the code! (Yes, Mother, I
DID save the file)

I have other include files in this page that are stable -
only the includes in the <select> statements disappear.

Strange!

Jul 19 '05 #1
1 1755
Tools / Options / Text Editor / HTML/XML / Format
Disable the automatic formatting options ... these are probably to blame, if
the symptom appears after saving the file (or if you switch back and forth
from Design to HTML). If it's the latter, I strongly recommend just using
VS to code, and preview what it looks like in a browser.


"Bil Click" <bc****@ncidinc .com> wrote in message
news:05******** *************** *****@phx.gbl.. .
I am coding classic ASP pages in Visual Studio .Net 2003.
I have a file called counties_option .asp that just has a
list of options:
<OPTION VALUE="030">ANS ON</OPTION>
<OPTION VALUE="040">ASH E</OPTION>
etc...

I then call this as an include file in several places in
a file called page1.asp like this:

<SELECT id="Select7" name="aCounty1" >
<OPTION value="All" selected>All</OPTION>
<!-- #include file= '../common/counties_option .asp'-->
</SELECT>

This works OK the 1st few times, I can see all the
options in the drop down list, but after a while (I
have not determined the exact time period or cause) the
<include> lines disappear from the code! (Yes, Mother, I
DID save the file)

I have other include files in this page that are stable -
only the includes in the <select> statements disappear.

Strange!

Jul 19 '05 #2

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

Similar topics

3
3352
by: Adam | last post by:
Hi All, Is it possible to use includes dynamically in html. Hopefully the following example will give an idea what I am rying to do. Thanks in advance Adam <script language="javascript">
1
1636
by: RWC | last post by:
Hey Folks! I'm having trouble with an asp page. First off, I'm new to the html / asp world, but not to software development. I'd like to minimize or "normalize" the site, so I'm trying to use one menu page and include it into any page that needs the menu. The problem is, I include the header.asp page, include the menu.asp page, but when I write the body of the page, it sticks the text underneath the side menu. I'd like the text to...
1
3313
by: Alex VanderWoude | last post by:
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not appear to work, because the base being used is the Common7\IDE directory, not my original source directory. Here is the situation: MyApp directory contains the file Form1.cs, Form1.xml, and Generic.xml. There is also a subdirectory called...
0
1509
by: sharpener | last post by:
I'm new to C# and to newsgroups, so please bear with a possibly foolish query. I'll try to be sensible. The results of /// <summary> ... </summary> etc. appear immediately in the Object Browser, as advertised. But when I try to get the same result with /// <include> ..., no joy. Having spent the better part of 2 days in a textbook-help-and-msdn search, I'm stumped, so I've isolated the problem in a solution consisting of nothing...
0
985
by: Simon Neve | last post by:
Hi, I have several datasets that use exactly the same element. From reading MSDN it appears I can split the common element into its own dataset and use the <xs: include element from any dataset that uses this common element. The datasets are returned from a web service. My question is this: when the web service client uses the datasets which include the common dataset, will this involve another round trip to the server to retrieve the...
10
25428
by: vunet.us | last post by:
What is the workaround of passign a parameter to any included asp file: <!-- #Include File="file.asp" --> This obviously does not work: <!-- #Include File="file.asp?id=123" --> Thank you
2
2386
by: naveeddil | last post by:
Hello, I use this command for including my ASP files into another it is working perfectly on my XP 2002 SP2, IIS server and also i upload to brinkster.com and working perfectly there but here is a problem on another server.... i upload my files to a new server but in the ASP file it returned me the Code in SOurce Code Back.. The code I used is: <!-- #include file="header-main.asp" --> the header file is in the same directory
2
6317
by: gaya3 | last post by:
Hi All, is it possible to include jsp page in jspx file? I'm having as follows... in jspx file JSPX file: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.0"> <jsp:directive.page contentType="text/html"/> <jsp:include page="http://localhost:8080/AppName/jsp/test.jsp"/>
2
3158
by: kkshansid | last post by:
i am from asp background i am very new to asp.net environment i want to know that is there any include in asp.net as in asp so that i can include connection file which is asp.net and asp files in all forms in aspx <!-- #include file="top.asp" --> // to include top of web site <!-- #include File="connection.aspx" --> // to include connection with database of web site
0
9680
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10012
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
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
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.