I have developed an ASP application that can send as much as say 150MB of XML data to the client, if all records (approx 6,000) in the database are returned. Normally, users would choose filtering options and at most about 500 records would be returned at any time. It is rare for this volume of data to be download, but it can happen
My application runs on a corporate intranet. A rival contactor's 'expert' believes that it is intolerable for my application to generate this much data under any circumstances as it would unduly load the network
Ofcourse it is a simple matter for me to elimate large volume transactions by limiting any client request to a lesser number of records. If they really wanted all records several transactions would be necessary. That is, a paging mechanism could be provided
Given that there are many very large documents, pictures, and other media held on this intranet server, which users can view at any time I don't perceive this as a problem. Its pretty much a double standard. Also, the server script timeout prevents the server from being overloaded.
We are currently facing a strange problem. We wrote an ASP application using some sessions and database-connectivity, nothing special.
On some machines (we are all using IE5.5 / IE6) those applications produce a 404 error.
The pages that are called do exist (I checked it thousands of times and it is only happens on some machines). Most of the machines have no problem with that pages and do not produce any errors which makes me belive that it is no real programmed problem.
The strange thing is that a reinstallation of IE mostly helped and if not we reinstalled the complete computer (as you can guess this is no real suitable way.
Maybe it has something to do with the sessions we use, but they are not so big.
I hope (not for the one who really has) that somebody has also experienced this kind of problem and can point me into the right direction.
I also tried different IE newsgroups but they had no idea, that's why I now try to ask ASP-programmers.
On a site I have written some of the page's sometimes fail. It's where I have a currency in a text field - when the user attempts to update the value, the page throws an error. I have traced it down to being sometimes the currency is written as £60,00 instead of £60.00. So for some reason they're getting a commar instead of a period.
This only happens occasionally - the rest of the time the page works fine. The system the person is using doesn't change, and none of the code is changing. I've used FormatNumber with the paramaters of 2,,,0. Anyone had any experience of formating of currency just changing?
I am having one asp page(i.e home page) which has two frames in it. Left frame contains menu and whichever option is clicked in it that corresponding page is shown in the right frame. In those pages i am checking for sessionid and if it is different from what is there in the table i want to show the login page.
The problem is that as i am using response.redirect in the pages shown in right frame to go to login page but then the login page is shown in just the right frame but i want to show the login page on the whole page.
I have one combo box and GO button on the click of GO button page submitted and according to selection of one of the option from combo I want to redirect my page to some new asp page but at the same time in new window of browser.
I could have achieved this using window.open() of javascript but then it will serve as pop up and clients requirement is that not to show as popup window due to many users blocked popups.
Any suggestions, How can I achieve this using response.redirect or any coding which is not serve as popup window.
I'm trying to build a tray for users to download their selected items. I was wondering if anyone knows how to response.redirect a file (for the user to download) and check to see if the download was successful/unsuccessful, then have the asp page reload itself based on the result?
e.g. something like this:
if Session("FileName") <> "" Then 'a file is ready for download
response.redirect (Session("FileName"))
** check if download successful, then set ** the tray info accordingly and...
response.redirect thispage.asp end if
Of course the second response.redirect never gets called, is there any other way I can do this?
how do i pass form values through a redirect statement to another page. I have a redirect stt. Response.Redirect "exist.asp" and i want to pass form values to be displayed from exist.asp.
I have a password-protected area on my site. I'm not using any server authentication methods: Instead I prompt the user for a username and password using an HTML form and check these against a database of registered users.
I was thinking that this page should be returning a HTTP status code of "401 Unauthorized" instead of its current "200 OK". My reasoning being that this would let search engines know what's going on when they request a protected page and get redirected to the "Access Denied" page.
I experimented with adding response.status = "401 Unauthorized" to the "denied" page, but now it displays a (Windows/IE) username & password prompt instead. The HTTP sniffer shows that the www-authenticate field is set to "Basic".
My question: How can I indicate to the search engines that the page it is requesting requires authentication, yet have it not display the login/password dialog box?
after looking at someone elses code here I noticed that he always does a Response.End after a Response.Redirect. I was under the impression that code execution would stop on the current page as soon as the Response.Redirect statement appeared, but the guy reckons that the code will continue running on the current page before starting the new one. Can someone give me the definitive answer on this?
I have placed an include to "security.asp" at the top of each .asp page in the Members Area of my client's web site. When the following code in "security.asp" is executed, the user is redirected to the "join.asp" page but the url in the browser address bar still shows the last page's url.
My first question was, can I hide a form field and make it visible upon selecting a particular value on a dropdown select field? Hoping for your immediate response.
I have a page which runs a script. When it gets to the end of the page I want it to do 2 things:
1) take some variables from the page and create an Outlook email with the subject, body and To fields populated with those variables. 2) send the page to another page. This is roughly the theory:
1) I like to know when a problem is solved. When the original person posts a "thank you that solved my problem" message and I see it I know that what they did worked. The macromedia site allows people who opened the thread to close it as "solved" Then you can search for a topic and request only "solved" threads. 2) When I am stuck on something for a long time and someone finally gives me the info. I've been stressing out over. I would feel guilty if I did not thank the helpful person. My parents' good upbringing must have burned into me the idea that you need to say "please" and "thank you". Just my two cents. Also the Macromedia forum is not a better forum, unless it is a specific question about one of their products. Even then
In my html page to update a table I am forwarding request to a ASP apge bys using form.action="test.asp", and form.submit(). In asp I am doing database update. Response of this I want to show alert box to user whether operation is succesful.
I donot want ot redirect to some other page and I do not want to disturn existing view. I mean I want get only response such as true or false and based on respose I will display alert in front end. I want some thing like this,
form.action="test.asp"; var result=form.submit() if( result="successfull") alert("Succesful") else alert("failed")
This is my current URL after the process takes place. I want to add in the URL after intCatID & . This additonal paramater [AL = "intAL"], then the error but I forgot how to do this.
<% Response.Redirect "FileMaintenance.do?CatName=" & strCatName & "&CatID=" & _ intCatID & "&Error=" & Server.URLEncode(intCount & " files were successfully added to the Package.") %>
I've come across some weird bug with Response.Cookies. Or maybe it will be called "by design" but for the life of me I can't figure out what purpose it would serve. If you're setting a cookie (say Response.Cookies ("TEST")) and you have a query string variable &test=x or &Test=x and you get Request.QueryString to parse the query string, the cookie that gets dropped matches the case of the query string, not what your code says. In other words even though the code says Response.Cookies ("TEST"), it drops Response.Cookies ("test") instead.
Anyone have any idea what's going on here? There's an example below. Try it with http://127.0.0.1/cookieTest.asp?test=x and without the query string variable.
Having just migrated to w2k from NT4, I've stumbled across an oddity with cookie handling - at least, that's what it appears to be. I (was) using response.buffer with .addheader to write two cookies into a the http header for a particular page . Worked fine for three years.
After the upgrade, I'm finding that two copies of the same cookie appear, one with blanks for values, the other with values filled in; this has the effect of logging the user into the page if the first copy isn't blank....
So, I changed the code to use response.cookie, which is fine, but the names/values get encoded, and unfortunately the software vendor uses dashes in the name part.
Is there any way to force .cookie to not encode the '-'?
or do I need to look at javascript to write the cookie?
I am trying to add some basic security to my asp web pages. I have a logon screen which, when the logon and password are checked for validity, passes the user on to a registration screen using the code
I then inserted the following line before the redirect response.Cookies("ValidUser") = "ValidUser"
I have the following check at the start of the user_reg.asp page <% if request.Cookies("ValidUser") <> "VaildUser" then response.redirect "user_login.asp" End if %>
All that happens now is that when I log in validly user_login.asp is redisplayed rather than the user_reg.asp.
Perhaps this is not sufficient to set the cookie? I have looked for it but can't see it amoungst other cookies dated today.