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

Home Posts Topics Members FAQ

Need some advice about file extension of the include file

Joe
Hi,

I haven’t mastered the asp.net yet to be able to use asp.net 2.0 master
pages. So I am planning to create pages with .aspx extension and once I am
confident, I will rewrite them using master pages. The purpose of this
exercise is that I will be able to keep the filenames same.

All of these pages have a horizontal navigation menu. For the time being, I
am separating the simple html code of this horizontal menu into a separate
include file say topnav.txt. I read that include files should not be in
files that are not compiled ie. .txt as someone can simply enter in the path
in the browser and view your file!

Can someone suggest me what file extension (.txt, .aspx, .inc, etc) should I
give to this include file?

Joe

Nov 19 '05 #1
1 1342
Include files shouldn't be in plain .txt if they contain sensitive
information...

Having said that, in ASP.Net there's a better alternative to <#!--INCLUDING
a file, use user controls. Unlike include files which aren't processed as
part of the ASP/ASP.Net processing cycle, user controls are part of the
ASP.Net cycle, meaning you can interact with them as richly as you would any
other object.

Check out
http://www.dotnetjunkies.com/quickst...bpagelets.aspx for
more details.

Hope this helps,
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Joe" <Jo*@discussion s.microsoft.com > wrote in message
news:1B******** *************** ***********@mic rosoft.com...
Hi,

I haven't mastered the asp.net yet to be able to use asp.net 2.0 master
pages. So I am planning to create pages with .aspx extension and once I am confident, I will rewrite them using master pages. The purpose of this
exercise is that I will be able to keep the filenames same.

All of these pages have a horizontal navigation menu. For the time being, I am separating the simple html code of this horizontal menu into a separate
include file say topnav.txt. I read that include files should not be in
files that are not compiled ie. .txt as someone can simply enter in the path in the browser and view your file!

Can someone suggest me what file extension (.txt, .aspx, .inc, etc) should I give to this include file?

Joe

Nov 19 '05 #2

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

Similar topics

4
42653
by: Phester | last post by:
If a file has a .inc extension, or if it has a .inc.php extension, is it treated differently by the php interpreter? Or is it just a convention? I've been calling my included files filename.php and it doesn't seem to hurt anything. Is it wrong to do that? E
11
8734
by: Jim | last post by:
Hi, I keep getting form results emailed to me that would indicate a form from my web site is getting submitted with all fields blank or empty, but my code should preventing users from proceeding if they left any field blank. My guess is that someone is trying to hack the site using the form to gain entry or run commands -- I don't really...
8
2041
by: memento | last post by:
Hello, How to include file into an ASP program? I was trying with this command: <!-#include file="INC_file.asp" -> but unfortunately it does not work :( There isn't any error message. IIS server shows primary site, but without informations from incuded file.
1
1164
by: olsongt | last post by:
I'm doing something a little wierd in one of my projects. I'm generating a C source file based on information extracted from python's header files. Although I can just generate the file and check the result into source control, I'd rather have the file generated during the install process instead of doing it manually. So I'd like to: +...
3
1599
by: seberino | last post by:
Anyone have any good advice to someone interested in learning about innards of Python implementation? e.g. What is best place to start? Where can I get a 10,000 ft. overview of general structure? Anyone written docs on helping do this? How did other people successfully make it through?
20
4240
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black...
25
3094
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of course then the file doesn't get seen by the user. Is there any command that essentially executes the code and then echo's it? something that...
18
2818
by: Steven Borrelli | last post by:
Hello, I am using the <?php include() ?statement on my website for organizational purposes. However, one of my includes contains some PHP code. Is there any way for the server to actually parse the include? I've tried this before, and it did not parse the include. Rather, it included the file as just plain ASCII. =======================...
3
2484
by: plbaldri | last post by:
I have written a very simple and basic program for an intro Comp Sci class and am having trouble with it crashing. The program needs to accept a filename on the command line at the prompt and has to verify that the filename has a .txt extension. The code below works great as long as a '.' is entered regardless of the extension, but if no '.' is...
0
7618
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
7926
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
8138
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
7679
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
7983
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
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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...

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.