Click here to Skip to main content
16,010,416 members
Home / Discussions / Web Development
   

Web Development

 
Generalasp.net controls won't appear Pin
8-Feb-02 20:49
suss8-Feb-02 20:49 
GeneralRe: asp.net controls won't appear Pin
Konstantin Vasserman9-Feb-02 5:17
Konstantin Vasserman9-Feb-02 5:17 
GeneralRe: asp.net controls won't appear Pin
Peter Marino26-Feb-02 23:33
Peter Marino26-Feb-02 23:33 
GeneralRe: asp.net controls won't appear Pin
Konstantin Vasserman27-Feb-02 2:28
Konstantin Vasserman27-Feb-02 2:28 
QuestionCode is not processed! Why? Pin
8-Feb-02 18:33
suss8-Feb-02 18:33 
AnswerRe: Code is not processed! Why? Pin
James T. Johnson8-Feb-02 19:51
James T. Johnson8-Feb-02 19:51 
GeneralRe: Code is not processed! Why? Pin
8-Feb-02 22:34
suss8-Feb-02 22:34 
GeneralRe: Code is not processed! Why? Pin
Paul Watson9-Feb-02 0:19
sitebuilderPaul Watson9-Feb-02 0:19 
Dymov Roman wrote:
But one more question. I don't understand you, is it "BAD idea" to use extention .inc always (why?) or only now?

Lets say you have an include file (in your case suffixed with .inc) which contains a database connection string, including a user name and password plus the ip address of the database server, lets call it dbconn.inc. You store it in a sub-folder called /inc. The full url is http://www.dymov.com/inc/dbconn.inc.

You then have an ASP file, dymov.asp which includes that include file and does some processing.

All well and nice but along comes Johnny Bebad. He is a hacker/cracker/smacker whatever. He wants access to your database. He could literally type in that URL, http://www.dymov.com/inc/dbconn.inc, and get the "source" of your so called ASP file.

The IIS server will not process the .inc file because it does not have an ASP extension, and so will serve it to Johnny Bebad as a straight text file that he can open and read. Johnny BeBad can now get at your database details and cause some serious down time.

If you had use ASP as the extension for dbconn.inc then all Johnny Bebad would have got is a blank page, no source code, no connection details. This is because IIS would have processed it.

I learnt this the hard way, though luckily it was just a friend who got ahold of my sites dbconn.inc. I hurridly changed all includes files to .ASPs.

I recommend you do the same Smile | :)

BTW it IS possible to get IIS to process .inc files but rather use the extension ASP than go about modifying IIS.

p.s. what is your sites URL? *evil grin* j/k

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

Sonork ID: 100.9903 Stormfront
GeneralRe: Code is not processed! Why? Pin
Roman Dymov9-Feb-02 17:18
Roman Dymov9-Feb-02 17:18 
GeneralReadWriteControlDesigner Pin
8-Feb-02 9:36
suss8-Feb-02 9:36 
Generaliis Pin
meirav8-Feb-02 4:58
meirav8-Feb-02 4:58 
GeneralRe: iis Pin
Mazdak8-Feb-02 13:26
Mazdak8-Feb-02 13:26 
GeneralRe: iis Pin
meirav8-Feb-02 18:27
meirav8-Feb-02 18:27 
GeneralRe: iis Pin
Mazdak8-Feb-02 19:20
Mazdak8-Feb-02 19:20 
GeneralRe: iis Pin
meirav8-Feb-02 22:15
meirav8-Feb-02 22:15 
GeneralRe: iis Pin
Mazdak8-Feb-02 22:57
Mazdak8-Feb-02 22:57 
GeneralRe: iis Pin
meirav8-Feb-02 23:44
meirav8-Feb-02 23:44 
GeneralRe: iis Pin
Mazdak9-Feb-02 0:11
Mazdak9-Feb-02 0:11 
Generalplease.... Pin
Mazdak6-Feb-02 10:27
Mazdak6-Feb-02 10:27 
GeneralRe: please.... Pin
Mazdak7-Feb-02 11:22
Mazdak7-Feb-02 11:22 
Generalsome problem with IIS Pin
Mazdak6-Feb-02 10:25
Mazdak6-Feb-02 10:25 
GeneralRe: some problem with IIS Pin
Mazdak7-Feb-02 11:23
Mazdak7-Feb-02 11:23 
GeneralMovenext hangs in ASP Pin
Arun Saha6-Feb-02 10:28
Arun Saha6-Feb-02 10:28 
Generalvery very beginner Pin
Mazdak6-Feb-02 6:00
Mazdak6-Feb-02 6:00 
GeneralRe: very very beginner Pin
Paul Watson7-Feb-02 5:56
sitebuilderPaul Watson7-Feb-02 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.