473,320 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP file size

MFA
Hi

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

regards
Jul 19 '05 #1
7 2098
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
4
by: M P | last post by:
Can you help me find an asp code that will upload a file from my PC to web server? Mark
11
by: Skc | last post by:
I have a .txt which has been exported as a .csv from an external source. What i need to do is to import this into SQL2000 (into a table) but I need to do special things on the data: 1. I need to...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
1
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp"...
2
by: Dan | last post by:
Hi, I know this code is not entirely javascript, but bare with me. Can you please tell me why this does not work: page: filemanager.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
1
by: j7.henry | last post by:
I am trying to pull specific data that is in a comma delimited file into a web page. So if my comma delimited file looks like: Name,Address,Zip Fred,123 Elm,66666 Mike,23 Jump,11111 I would...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
2
by: cleary1981 | last post by:
Hi, I have created a script in PHP thats generates an SVG image. Want I want to do is have PHP save this as example.svg. Can this be done? Heres my code <?php require "config.php"; $proj_id =...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.