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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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.
|
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:
+...
|
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?
| |
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...
|
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...
|
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.
=======================...
|
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...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |