I started noticing some page errors in my web application. All
of the erroring clients where using Windows XP - MSIE 6.0. It seems these
clients were passing the bookmark (fragment identifier) portion of the URL
to the server.
For example, with the following URL:
http://testsite.com/page.aspx?myquery=test#bookmark
The browser *should* send a request for:
http://testsite.com/page.aspx?myquery=test
However, these clients were sending the entire URL as the request. Thus, my
querystring parameter "myquery" had the unexpected value of "test#bookmark".
Has anyone else noticed this behavior? Perhaps it is related to the
download.ject patch (released July 2). I have yet to recieve a response to
this message, which was posted one week ago in two other newsgroups.
I'm using Microsoft's flavor of BrowserHawk (Server.CreateObject("MSWC.BrowserType")) but when I look at my own stats through a simple test page, it says that my IE 6 is really NS 4.00. What's going on?
I support a website. When we send HTML emails from out system, we generate a variable called "str". We set that str variable to the objMail.htmlbody property of the mail object. Frequently, random spaces appear in the email when it is received by the recipient, however those spaces do not always appear in the same place (yet frequently they do). additionally, we'll sometimes see some actual HTML code in the final email, and usually shows up as a complete tab, such as "<br>", or "< TD BGCOLOR='#FFFBF0'>".
I have installed iis and setup a new virtual directory, I then try to view it with the correct address but IE just hangs, nothing appears except the title on the titlebar and busy cursor. Going to view>source shows the source (which is correct).
This was a previously working website, I just moved the files onto a new computer. And wanted to use that instead. More info can be supplied if required. Alternatively, a good website showing how to setup iis again for asp including db's.
I have a form, that has a drop down menu with number of options eb. home, work, mobile etc. However when the choice is added to the database table it appears as a number inside the table, even though the field in the table is set to a text value (it is an MS Access DB) Why is this?
I have an existing ASP file in a virtual directory. When I type server. or request. in this text file using Microsoft Script Editor I get a dropdown showing the properties available for the object.
However, if I change the extension to ASP on an existing html file, or create a new asp file I'm not getting the dropdown. I suppose this indicates the objects are not available in these new files, and they would not run properly if I tried to open them. What am I missing in setting up these new ASP files?
I have an issue where I am sending back xml content using ASP. When I flush the buffer or turn the buffering off their seems to be a end tag that gets appended to the end of this response. Code:
I need to read a querystring from a frameset, actually its the parent of the frameset. The page that will do the reading is not actually one of the pages on the frameset but a pop-up window spawned by a frame in the frameset. Using javascript I would use the window.parent.parent.location.search property but how do I do this with asp? is there an equivalent of this?
I've been building an Intranet app; and have used hidden fields exclusively to pass one or two things from one page to another.
However, now I have reached a point where I may have an email sent to a co-worker, and they want to be able to click on a link in the email to take them directly to the info about that item. While previously, I had been able to get to that item by typing an identifying number in a text box and clicking a submit button, that won't be possible with a link in an email. I guess I will have to use a querystring.
I am not sure how the querystring thing works, but it looks pretty easy on first glance. Is there a tutorial, a really basic one, showing how to use the querystring? Do I have to use the post method now?
I have a form that is being sent using CDONTS. The problem is the form I'm sending has a lot of special characters (it's in Spanish) and while I know how to get the chars to display correctly on the page, they're not showing up correctly in the email.
They either show up like this: Country : Canad�;
or if I encode them, like this: Country : Canadá
How can I get the email to display the correct character Country : Canadá
I'm fairly new to ASP (I'm a PHP programmer) and have no clue how to do it.
I've noticed that the email is not set to encode in any special way like the equivalent for PHP......
I know this probably sounds like a newbie question, but I was under the impression that secure pages (https) don't appear in the history/address bar history list - this appears to be incorrect?
Should I really be putting some form of expiry command at the head of each of these pages if I don't want casual users to see them? I use Classic ASP so is it better to use a command via this lang or the old META methods?
i made a page in asp using querystrings for get some data and when i put in one of the variables in blank in the address bar i get this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
/history.asp, line 82
i don't know how to fix it...in my code i have sth like this:
If Request.QueryString("var1")="sth" AND Request.QueryString("var2")>0 Then 'make some process End If
so in the "var2" when it's empty i get an error :/ should i do another if for when is it empty just for in some way "handle" it and don't let occure problems while some user does sth like that??
I've noticed a strange problem with setting cookies in ASP when the cookie name you're setting exists in the querystring. The company I work for has many partner sites who link to our site like this: www.mycompany.com/partner.asp?PartnerID=??? The partner.asp page then sets a cookie called PartnerID containing the value from the querystring.
We have noticed, however, that if the partner calls the partner.asp page and alters the capitalization of 'PartnerID' then another cookie gets set which takes the capitalization of 'PartnerID' from the querystring. All of the other asp pages in the site then seem to read the first cookie set and thus it appears that the 'wrong' partner settings are being used.
Has anyone experienced this problem before? Unfortunately altering the cookie or querystring names would be a non-trivial task so this is not an option at the moment.
Code: response.redirect(request.querystring("page")) It worked fine because I didn't need to pass on any other values from the querystrings. But now, I need something that will redirect the page and pass all querystring values. I tried this:
Code: response.redirect(request.querystring("page") & "&" & request.querystring) But it brings me to something like this: http://www.site.com/thepage.asp&page%3D/thepage.asp&id%3D7 instead of what I would like for it to say: http://www.site.com/thepage.asp&page=/thepage.asp&id=7
Now.... I know that I could have written:
Code: response.redirect(request.querystring("page") & "&id=" & request.querystring("id")) But that won't work because I actually have many querystrings and I won't know which ones are used, etc. I want it to just transfer all the querystring data.
Oh, and if the redirect could take out the "page" querystring.. that would be great. Because I don't need it.. it is only used to know what page to go to. I just need to keep all the other querystrings.
Can ASP use valueless or variable less QueryStrings like this: http://yoursite.com/forum/activate.asp?985486. (Not a real link). I would also like to know if it can use addresses like this: http://yoursite.com/forum/activate.asp/ZeeMan48. (Not a real link either.) I would like to know for some work I am doing.
I can populate the id and type values in my form fields just fine but equip_id and mac_addr will never be consistent. Certain case will have only one equip_id and one mac_addr value and in other case I will have equip_id0 thru equip_id20 and same with mac_addr. I simply want to parse whatever response I get and display those equip_id and mac_addr values dynamically in a select box. Is that possible?
I need to find out how to incorporate a popup window that passes a querystring, after some quick research I found that by using JavaScript that you can pop up a window Code:
which is used to send mails.while we put some chinese characters inside the text box and then click on submit button in the mail,chinese characters are appearing as garbage.
could anyone please help to resolve this issue so that it doesnt come as garbage?
I am able to create and read cookies, however, I have to *create cookies from querystrings* (I cannot do this from form values, because the response page *redirects to the page I am working on, so there is no direct way to use Request.Form("var")*
Anyway, when I create the cookie, and remove the querystrings, of course, the cookie no longer works.
How do I take querystring values and turn them into cookies, such as page.asp?name=dave
to create a cookie 'username' with value 'dave'
and when they visit just plain page.asp, it remembers the value 'dave'
Whenever I click on a link (on the shoppingcart site I'm developing) that contains a querystring with the category name and an anchor name (whatever the name of the '#' bit in the URL is), SQL retrieves the category name from the querystring, filters out the appropriate information on the products and the page jumps down to the anchor link.
Once the customer clicks on a product, the processing page is meant to redirect, via the server.redirect command, back to the products page with a querystring identical to the initial filtering one (with the anchor name attached), thus teh customer is back to the same product that he clicked on, without having to scroll down every few seconds to add more of the same product.
However, even though the querystring sent by the response.redirect command is identical, the ASP code can't seperate it again properly and thus the SQL statement shows nothing, as the ASP coding thinks that the info following (and including) the # is apart of the 'category' part of the querystring.