Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:20 AM
Bil Click
Guest
 
Posts: n/a
Default <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!

  #2  
Old July 19th, 2005, 09:20 AM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: <include> lines disappear from code

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" <bclick@ncidinc.com> wrote in message
news:053801c39ef0$3dd49ef0$a001280a@phx.gbl...[color=blue]
> 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!
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles