I am trying to create an array the size of my recordset. I tried the following:
dim myArray(get_notes.recordcount)
I then figured that it was that I needed to initialize this after I got the records. This did not work either, I keep getting the following error:
expected integer constant
Any Ideas on how to create this array to the correct size that is dependant on the the size of the recordset?
I'm using Windows 2000 server n IIS I'm Using FileSystemObject of ASP in Server Every File and Folder has 2 Size when we get properties of any 1 actual size and Size on Disk.now my problem is when i get the file size from ASP object it give Size value but when i try to get folder size it gives size on disk and both values are different.
I'm creating a size to access limited size to upload files so i just check the folder size and then get size for those which are going to update by user then i will less those size to actual folder size to get remaining size.
Last week, my shopping cart was still working well until I began getting the following errors 2days ago..
Error Type:
ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. ../order/saveorder.asp, line 157
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Page: GET /main/saveorder.asp
Could you check my code below and let me know what possibly the error is?
I have it at the moment that on the main default.asp there is a recordset that will display all records within that table, these are a list of forums that will be available.
I have a table that will show the forum name, and the description. This table is then looped using Do while not, now what i need to do is show how many records in the Treads table are related to each forum using asp. Code:
how can I get size a file from any sites. http://www.domain.com/fileblablabla.zip I want to know what the size of file is by using ASP.. is there any way ? or is there any free component ? (But it must cancel immediatily after getting the size of file.. because maybe its size can be 50 Mb
I am using variable passing through the url, and as it is getting larger, I am finding that occassionally some values are getting trimmed. Is there a limit to how long a url can be?
how can I get different font size in the form method "select", "input" instructions working under ASP? because when I check with the browser is too big in the table.
I am having a problem with this code. The problem I am facing is that the first image is displayed in its original size. But when I click the next button, the next image not displayed in its original size, but being displayed as 100 x 100 pixels, same goes to the 3rd picture and so on. Code:
I only need to know the height and width of the image.
It doesn't seem to be as easy as php's "getimagesize($imgFile);" method.
<% 'Copyright *c* MM, Mike Shaffer 'ALL RIGHTS RESERVED WORLDWIDE 'Permission is granted to use this code 'in your projects, as long as this blah 'copyright notice is included
function GetBytes(flnm, offset, bytes) Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFTemp = objFSO.GetFile(flnm) lngSize = objFTemp.Size set objFTemp = nothing
Set objTextStream = objFSO.OpenTextFile(flnm,1) strBuff = objTextStream.Read(offset - 1) GetBytes = objTextStream.Read(bytes) objTextStream.Close set objTextStream = nothing set objFSO = nothing end function
function lngConvert(strTemp) lngConvert = clng(asc(left(strTemp, 1)) + ((asc(right(strTemp, 1)) * 256))) end function function lngConvert2(strTemp) lngConvert2 = clng(asc(right(strTemp, 1)) + ((asc(left(strTemp, 1)) * 256))) end function
function gfxSpex(flnm, width, height) fileT=split(flnm,".") if fileT(1)="gif" then Width = lngConvert(GetBytes(flnm, 7, 2)) Height = lngConvert(GetBytes(flnm, 9, 2)) elseif fileT(1)="bmp" then Width = lngConvert(GetBytes(flnm, 19, 2)) Height = lngConvert(GetBytes(flnm, 23, 2)) elseif fileT(1)="png" then Width = lngConvert2(GetBytes(flnm, 19, 2)) Height = lngConvert2(GetBytes(flnm, 23, 2)) end if gfxSpex=true end function
if gfxSpex("images/urlogo.gif", w, h) = true then response.write w & " x " & h end if %>
Which is a little bit shorter, and seems to work ok so far, but isn't there anything easier, like php's "getimagesize($imgFile);"?
I have a drop-down with 40 option values and only one option should be selected of the 40 options. The list size should be 1.
When I click on the list, it drops down 30 options (a very long list) with a scrollbar for the last 10 options.
Is there any way, when I click on the list it drops down only 5 options (as if the list is of size 5) and allow a scrollbar to browse the remaining 35 options.
Code is: <select name="deplist" id="deplist" <option value="Commerce">Commerce</option> <option value="Instru">Instrumentation</option> ... similar such 38 options </select>
I need a general code for limiting an image size in pixels.Uploaded Images from people may not be larger on width than 400 px. If so than a script would minimize them to 400 but if they are 260 px then they of course appear in 260 px
How do I find out the size of a file. I can get listing of files in a directory but I cannot figure out how to get the file size also.
Here is what I have so far. <% Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject") Set MyFiles=MyDirectory.GetFolder(Server.MapPath("test")) For each filefound in MyFiles.files Response.Write filefound.Name & "<br>" Next %>
I don't have any books for reference here. Can someone point out a good online source?
i have a page that displays an image. the image path is a variable passed in the url link. eg. enlarge.asp?picture=http://www.hey/.com/you.jpg and the window it opens works. but id like to try and get the enlarge as to get the height and width dimentions so i can call a new window to opena popup and ill dynamically have the images dimentions to scale the popup to fit. and right after the javascript calls a new popup window itll use a close window function. and since it happens before the head tags it should be seamless as if i had a regular link calling a popup.
I have these two tables in a SQL database. i.e. tbl_A and tbl_B I need to create an ASP page that will tell me the size of each table and then the combined size of both tables.How do I accomplish this?
I have a variable named numdata that contains an integer value. Now I want to create an array with the size of numdata. Example: If numdata is 25, then the array should be test(25). Unfortunatly test(numdata) doesn't work.
i am using the file type input and an asp upload component to save the file from client machine to server machine. if user type the file name or path that doesn't exists, the upload component still create a file on the destination but that file is empty. Now, how can i determine the size of the file saved on destination. OR its alternative is that can we restrict the user to type the path and file name. i mean the text field is disable and only browse button is used to select a file.
I have just finished building my first shopping cart in asp and MS Access. Originally the shopping cart was to be built for products with no size and colour, however as usual the goal posts have moved and I now need to incorporate a size and colour option for each product. Could anyone explain to me how I can go about doing this i.e. adding the different sizes and colours in the admin website and then linking them to a specific product when it is displayed on the products page? I know they both need to be in a dynamic drop down box when displayed on the products page within the shopping cart, but I am just wondering how to read the correct values out from the table depending on which product is being displayed. I have a normal products table at the moment with general fields i.e ID, name, description etc.
i have created a login page which works great except it looks really ugly in IE. I am trying to make the text size smaller but i have tried everything and it doesnt work. below is my code:
I have an asp app that uses several pop up forms. They are supposed to be larger forms, but on some machines, all using IE, they display a lot smaller than they should be. Here are some of the behaviors that I am experiencing:
* It doesn't seem to matter what resolution the client is set for. * It seems to come and go. * It's not consistent across operating systems or browser versions; all client machines use IE 5.5 to 6.0.
Where can I set the size for popups so that I can be sure they will display at their proper size?
I have a link which on clicking will go to a new page as in my example below. however i want to open it up in a new window and also specify the size of that new window. how can i do this in ASP? i dont wnat to use Javascript cause I have an ASP variable, strURL, and need to send that to the page. Code:
<a href="<A href="somepage.asp?link=<%=strURL%>">email this page</a>
I have a table full of pictures with urls to images. Any idea how I could find out the dimensions of the images? i want to design tables to show them in a better way.
I wanna do an ASP page , which will find out the Image size of a link. lets say someone gives a link to an Image. just for example, I want to get the Image Size (Height and Width) How to do that?
I have an VBScript in an ASP file which determines the dimensions of an image file on the server.
How can I set the correct window size before it becomes visible? I want to avoid displaying a window that visibly changes its size. I would rather set the correct window size before the window becomes visible. How do I do that?
Is there some code to check the page size of some webpages i am opening using asp or javascript?
I want to check that they are all over a certain amount (ie: they display something, and not just a blank page. )Also some code to make sure that the page is still valid (ie: It does not display "Page cannot be found")