I have a site hosted on IIS6 by an ISP. When my page loads, it saves some information from a form into an Access DB, then reads the entire record, including the new data
Set Conn... Conn.Open... set RS... Conn.Execute UPDATE mytable WHERE... RS.Open... read data RS.close - set = nothing Conn.close - set=nothing Response.write data
The page is actually 20 pages, the text selected to display is chosen by Select Case request.querystring("p"). It's size is 70k.
It works fine on LocalHost, but "The page cannot be found.The page you are looking for might have been removed, had its name changed, or is temporarily unavailable." appears about 1 time in 10 on the web site.
It then appears OK if the Refresh button is clicked. Any ideas why? (only 1 user logged on, so not too much traffic).
IN VS.NET: The web server reported the following error when attempting to create or open the web project located at the following URL: 'http://localhost/webapplication1. 'HTTP/1.1 500 Internal Server Error'.
IN BROWSER: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
I had service pack 2 installed. Tech guy uninstalled it (said it conflicted with Novell) and then I reinstalled Framework 1.1 now I get these errors. I set show friendly HTTP messages in the browser unchecked to show error messages. Also got show error messages in IIS.
I am using asp.net 1.1 On one of my applications page i am showing 3000 records in a datagird(from db). it takes 3 to 5 mintues to render these records in datagrid. I have monitor the memory usage of asp_wp.dll process in the task manager. when it is rendering it takes max of 102 mb of memproy ram.
In the datagrid i have a check box column. User selects all checkboxes(by clicking on Check All(it is by javascript) and works fine). Enter value in the textbox and clicks the update button to update all selected values of the datagrid in the db and show updated values in the grid again.
for that i update in all the selected values in the db and get all the records from db again and bind these updated records agian to the datagrid. I carefully debug my application it update all the records successfully. and when it is updating the aspnet_Wp.dll process takes max of 70 memory uage. i get records from the db it is also fine.
But when i bind that records to the datagrid again it througs an exception and take more memory usage about 140 mb of ram. "Server unavailable" and my aspnet_wp.dll process also restarts. Exception also indicate me to see the event log for the resone of this particular error there i an error that aspnet_wp.dll exceds the memory usage that is allowed to it which is set to 154Mb.
I am using using stored procedure to get data in from the db into the dataset using SqldataAdapter i bind the datagrid to the dataset returned table. Code:
This query sort on the basis of Lft and Rgt columns.
The name of the array is: aEmp.
My question here is how can I get only the LastName from the aEmp array into another array so that I can sort the names alphabetically and then display the employees in the alphabetical order.
Or is there is another way I could this by using the same array while keeping the lft and rgt sort of the query? If I sort based at the SQL query level, I can see the names sorted by the lft, rgt and lastname, but since the lastname is at the end of the sort list - it does not appear alphabetically.
In working with arrays, I have found that I am unable to dimension and array with a variable that has an integer value but I can redimension one this way. I haven't see any information that tells me if this is a requirement, although it appears to be because I get an error if I try it.
Ex.
Dim b b = 10 Dim a(b) ' this errors out but Dim a() ' this Redim a(b) ' works
I want to create a new array called arrNames2 and copy contents of arrNames to arrNames2.
I then want to loop through my db and add more names (while going through the loop) to arrNames2. What is the best way to do this? Do I have to keep redim the array wehn I add more names?
I have a page in my admin system where the user can edit products they have added. The problem I am having is with Related Products. These are all listed in a multiple list. What I need to do is have those selected when the product was added, already be highlighted in the multiple list on the product edit page. Here is my post from another forum.
For some reason, when I try to run the following array, I'm getting an error:
dim cat(0)
cat(0)="0407" cat(1)="0102"
'I will be adding more to this array, but just trying with two for starts.
for counter = 0 to 1
itno=cat(counter)
'I get an error when it runs through this function
Function rightvar(theVar,lengthNeeded) Dim sResult sResult=theVar if Len(theVar)< lengthNeeded then sResult= String(lengthNeeded - Len(theVar)," ")& theVar rightvar=sResult End Function
The problem is that in my 5 years of programming in various languages i have never really understood arrays (DUMB @$${lol}) What i want to do is offer an advanced search of a database table on my website. I currently offer the functionality so that the whole of the database can be viewed within the web page so that it doesn't need to be downloaded/need access to view it. What i need to do is run a script that takes all of the column headings that i have and put them into an array. Then with the array i need to output each element into a drop down box.
Ok what I have is a little script which runs through my stock compares how many of one item we have compared to what we need and displays the out come.
What id like to do is make an array with the item name so lets say If how many is needed is greater then 0 then add the name of that consumable to an array and move on until the end.
Then I want to use the arry to display each consumable on an order form. Anyone have any idea how to do this in ASP or can give me any advice on a better way to do it?
I have a form that has fields named Title1, Title2, and so on to title 12
I want to set up an array that goes through all the input feild values that I already put into variables such as Title1, Title2...so on. It then replaces ' with '' so the apostrophe can be entered into the database. So it:
Creates an array by looping through the variables that get the form feilds.
Then loops through the array and replaces the ' with '': Title1=(Replace(Title2, "'", "''"))
I'm looking to make an admin page for a web photo gallery, and I need to make a drop down menu showing all files in a given directory that do not have comments in a database for the given filename.
I'm curious about the most efficient way to do this. I don't want to query the database separately for each file as this would be horribly inefficient. I'm thinking about two arrays, one containing all filenames in the photo directory, and one containing filenames from the database that have descriptions.
Is there a simple way in ADO to do a set operation on arrays, that is to produce array C that has all elements in array A that are not contained in array B?I can do this with while loops, but there must be a better way.
I am editing an old mail script that uses a a sendTO array to designate who actually gets the email. I want to add a value (an email address) at the end of the array so it is sent the same mail as any mail that goes through the form(teh form has one huge dropdown list now).
I just don't know how to simply add the value to the bottom of the list Any clues (i found some examples but there was way to much extra code that i was having trouble sifting out)?
I have two recordsets that I want to populate within an array.
The array will always have two columns, but the number of rows is unknown (sometimes 2 rows other times 200 rows). I'm not too familiar working with arrays.
I want populate the array using a loop. How would I define and populate the array within loop so that I don't lose values and each new set of values are populated into the array through each iteration of the loop? Code:
Is there a way to store an array of information in a cookie? ie. a user can have a "x" long list of a variable stored in a cookie, so when they return to the site this information can be retrieved.
I have two tables, one called tblManufacturers and one called tblModels. tblManufacturers is already populated but now I have to enter the following models which correspond to the ID of the manufacturer into the tblModels table. Any ideas of how I can do this. Code: