469,304 Members | 2,303 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,304 developers. It's quick & easy.

ASP file size

MFA
Hi

Is there any limit of file size or lines of code in asp.

regards
Jul 19 '05 #1
7 2050
Nope, You can make it as big as you want.
"MFA" <MFA@MFA> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi

Is there any limit of file size or lines of code in asp.

regards

Jul 19 '05 #2
MFA
are u sure ?

Because I have many files as include files. I am getting server internal
error but when I am removing few lines from one file including, its working
fine and when I am including back the same lines its giving me server
internal error.

That lines contains no variable declaration or assigning new values. these
are just simple html lines and few variable values

I am really stucked with this thing.

"rick watkins" <r.*********@btopenworld.com> wrote in message
news:#y*************@tk2msftngp13.phx.gbl...
Nope, You can make it as big as you want.
"MFA" <MFA@MFA> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi

Is there any limit of file size or lines of code in asp.

regards


Jul 19 '05 #3
> Because I have many files as include files. I am getting server internal
error but when I am removing few lines from one file including, its working fine and when I am including back the same lines its giving me server
internal error.

That lines contains no variable declaration or assigning new values. these
are just simple html lines and few variable values


You may want to show your code as well as the error message you're getting.
Jul 19 '05 #4
Hi,

I am having the same problem, I have an application in which i am using
many include files and within these include files I ahve simple html, some
of which are accessing a dbase, others are reading application variables.
Everything seemed fine, but now I get overflow, or internal server errors
when I try to add any more inlcude files.

I find the best way to work is with the include fiels as theses files are
called in several different pages, plus its usually easier to debug.

I have tried the include file on it's own, and no error, so I know the file
is sound, but when I try to call it within a case statement, I get an error.
I am calling application variables within this page, I replaced with one
call of application variable and declare new variable, and that doesnt work.
Only if I hardcode this variable, does the page actually work.

So, is it to do with number of variables in use, number of times a variable
is called, number of include files being used, and are there limits on
these?

I think this is one that only Microsoft can sort out...

regards,

Shabbir
"Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
news:ez**************@TK2MSFTNGP11.phx.gbl...
Because I have many files as include files. I am getting server internal
error but when I am removing few lines from one file including, its working
fine and when I am including back the same lines its giving me server
internal error.

That lines contains no variable declaration or assigning new values. these are just simple html lines and few variable values


You may want to show your code as well as the error message you're

getting.

Jul 19 '05 #5
MFA

"MFA" <MFA@MFA> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
I have attached the sample file

This is basically a media template file and I have 10 type of different
templates. Its one of include files which I am using in my application and I have lot others.

At this point I have to include only one out of ten files.

when I am checking for which file has to include for first two cases its OK.
SELECT CASE TEMP_TYPE
CASE "1"
%>
<!--#include file="M_Templat1.asp" -->
<%
CASE "2"
%>
<!--#include file="M_Templat2.asp" -->
<%

END SELECT

but when I am putting CASE "3" <!--#include file="M_Templat3.asp" --> its
giving me

HTTP 500.100 - Internal Server Error - ASP error

Internet Information Services

it works with case 3 too if I am removing all asp code in M_Templat3.asp

I think there is some type of limit of asp code lines

Kind regards


Jul 19 '05 #6
You need to find out what the error actually is by turning off the "Friendly
error messages" option in your browser:
http://www.aspfaq.com/show.asp?id=2109

Bob Barrows

MFA wrote:
I have attached the sample file

HTTP 500.100 - Internal Server Error - ASP error

Internet Information Services

Jul 19 '05 #7
include directives are processed BEFORE any asp code so your files are being
included no matter what.
"MFA" <MFA@MFA> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
I have attached the sample file

This is basically a media template file and I have 10 type of different
templates. Its one of include files which I am using in my application and I have lot others.

At this point I have to include only one out of ten files.

when I am checking for which file has to include for first two cases its OK.
SELECT CASE TEMP_TYPE
CASE "1"
%>
<!--#include file="M_Templat1.asp" -->
<%
CASE "2"
%>
<!--#include file="M_Templat2.asp" -->
<%

END SELECT

but when I am putting CASE "3" <!--#include file="M_Templat3.asp" --> its
giving me

HTTP 500.100 - Internal Server Error - ASP error

Internet Information Services

it works with case 3 too if I am removing all asp code in M_Templat3.asp

I think there is some type of limit of asp code lines

Kind regards


Jul 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Skc | last post: by
1 post views Thread by BW | last post: by
2 posts views Thread by Dan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.