473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

<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">ANSON</OPTION>
<OPTION VALUE="040">ASHE</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 1731
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">ANSON</OPTION>
<OPTION VALUE="040">ASHE</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
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
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...
1
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...
0
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...
0
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...
10
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
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...
2
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"...
2
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 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.