473,387 Members | 1,573 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,387 software developers and data experts.

Request object, ASP 0105 (0x80004005),An array index is out of range

Request object error ‘ASP 0105 : 80004005’

Index out of range

/printcdsc/printsubscriptionsmainpage.asp,line55

An array index is out of range. I am getting this message while submitting a form from firefox browser. Although its working finely in IE.

my Code is :
Expand|Select|Wrap|Line Numbers
  1.  
  2. if ( cint(nTotalRecords ) <= cint(MAX_RECORD_COUNT) ) then
  3.     If request("PrintRetXML").count > 0 Then
  4.         if len(request("PrintRetXML")(1) ) > 0 then
  5.             PrintretXML = Request("PrintRetXML")(1)
  6.         else
  7.             PrintretXML = Request("PrintRetXML")(1)    
  8.         end if
  9.     Else
  10.         PrintretXML = Request("PrintRetXML")
  11.     End if
  12.  
  13.     PrintretXML = Request("PrintRetXML")(1)
  14. End if
  15.  
Jun 30 '08 #1
1 3603
DrBunchman
979 Expert 512MB
Hi rahulkhunteta,

Welcome to Bytes.com!

I find it surprising that the page works in IE but not FireFox as this is a server side error message and will occur before the page has been passed to the browser.

However, you should be able to prevent it by checking the limits of your array before you try to access the elements within it. You can use the UBound function to return the upper bounds of the array (basically the number of elements it contains) like this:
Expand|Select|Wrap|Line Numbers
  1.  If UBound(Request("PrintRetXML")) > 0 Then 
  2.     'Access the array elements here
  3. End If
  4.  
Also, please make sure you surround your code with code tags when making a post (You'll see a button marked with a '#' at the top of the posting window). This makes your questions much easier for everybody to read. :-)

Let me know if this helps,

Dr B
Jun 30 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andy | last post by:
hI, wOULD PLEASE HELP ME. I AM GETTIGN THE REQUEST OBJECT ERROS ASP 0105: 80004005 INDEX OUT OF RANGE ERROR. HERE IS THE SNIPPET OF CODE THAT I AM USING. WHAT IS WRONG HERE? YOU CAN SEE WHAT I AM...
38
by: VK | last post by:
Hello, In my object I have getDirectory() method which returns 2-dimentional array (or an imitation of 2-dimentional array using two JavaScript objects with auto-handled length property - please...
29
by: shmartonak | last post by:
For maximum portability what should the type of an array index be? Can any integer type be used safely? Or should I only use an unsigned type? Or what? If I'm using pointers to access array...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
2
by: George | last post by:
Is there a fast way to transfer an Excel range to an array? Example: Excel range is E2:E300 Dim person() as string Thanks, George
2
by: Harry | last post by:
Good Day To all, When i am declaring a array for e.g char ....it means i am declaring array of 45 characters each of which has a maximum,minimum value limit or range...for example in...
16
by: Frederick Gotham | last post by:
Inspired by page 219 of Nicolai M. Josuttis's book, I set out to write a class for an intrinsic array which would behave, to as far an extent as possible, like a container. Also though, I wanted no...
4
by: steve_jackson | last post by:
I get this error, when I am trying to update a table in an Access DB through our intranet. Here is the section of code that is generating the error: FormItemID = Request.Form("FID") StoreNo =...
34
by: samjnaa | last post by:
This is like the previous one. Please check for sanity and approve for posting at python-dev. I would like to have something like "option base" in Visual Basic. IIRC it used to allow me to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.