Loops And URL's
I am not sure how exactly to put this, but what I need to do is the following: taking into account that there are multiple URL's pointing to the same server
If url=blah.com do nothing
if url=blah-blah.com *break out of frameset.
Now I remember there being an easy way to do this but can't for the life of me remember where to find it?
View Replies
ADVERTISEMENT
Attached is the code that I am trying to put together. Does anyone know how to loop (see bold text below) this so it will display all the data from the columns in this row? Code:
View Replies
View Related
i have 2 loops that give me 2 sets of 25 numbers. code:
do while not rs.eof
value = rs("value1")
rs.movenext
loop
do while not rs.eof
value = rs("value2")
rs.movenext
loop
i need to subtract value 1 from value 2 for each value in the loop?
View Replies
View Related
I was hoping someone would be able to explain the "For Each In Loop" set up.
What I'm really asking is when it can be used and how it is set up.
For example:
If I had something like...
Quote: For Each X in objSomeObject
Response.Write X & "<br /">
Next 'X
How do I know I can use the For Each In Loop and what must I do to be able to use the X portion of it?
Sorry if this is a very general question but I want to understand how one can recognise when it is possible to use this structure and when it's not.
More background to this is that I'm going to attempt to use this structure on a listbox in .NET and possible ASP and I want to ensure that I loop through each and every item.
View Replies
View Related
What I'm trying to do is match all buyer requirements in a database table to all available properties in another table. I then want all these matches displayed in a report with the buyer name followed by the relevant matching properties, this should occur until all buyers have been displayed with their matching properties.
The problem is that it only works correctly for the first buyer for which the correct properties are displayed, after that all I get is the buyer names without their matching properties... so it seems to loop perfectly the first time but from then on forgets about the inner loop! Code:
View Replies
View Related
I want to find the next event in my sql database. To do this, I have a query in a while loop. I set a new DateTime variable to the current date and run the query, it checks to see if it found a suitable event, if not, I want to increase the day by one and loop again.
View Replies
View Related
What I have is a recordset listing out a group of names. I've retrieved the field that lists the id numbers for the array and split them to a list. Then I want it to loop through the names listing trying to highlight the ids that need to be hightlighted.
What I am getting is my list repeats the names according to how many ids are in the array. So if I have 2 numbers in the array I see every name on the list twice and the two that I need selected.
I want the list to show the names one time with the correct names selected. What is wrong with this code? Code:
View Replies
View Related
I have two 2-dimensional arrays (made by using GetRows()) What I need to do is:
Loop
If Arr1(0) = Arr2(0) then
do an update....
End if
End Loop
Basically I need to compare each value in Arr1(0) to the values in Arr2(0) - if I get a match, I have to do an update in the database. What is the easiest way to do this .
View Replies
View Related
there are various of loops but i am analyzing to use which one. maybe i could get some opinions from u all. there are
while wend, for loop, do loop
my situation is if i need 2 execute on a daily basis data on the particular month and will stop on the last day of the month.. without interseeing to the next month
can anyone might help me by suggesting on the suitable loop 2 use for this problem?
View Replies
View Related
I have some difficulty with deep inner loop. What I want is Eg
Product Category: Air-Cond
Company: ABC
Address: 121, Time City, Malaysia.
Company: XYZ
Address: 1, City, Malaysia.
Product Category: Fridge
Company: MAS
Address: 2, Old Building, Singapore.
Company: SAM
Address: 11 Kiosk, Malaysia.
Basically, the first the first loop is to get all product category and one by one insert into the second inner loop. But, I need another inner loop under the second one, which is to categorized by country. Code:
View Replies
View Related
I have successfully paged through a recordset on my page using the .recordCount, etc. methods, the only thing is I have 2 independent recordsets looping on the page, which when there was not paging involved this worked fine, however now I need to span the results of BOTH of these across pages, I just cannot seem to figure out how!
I have one set of records paging fine, but the other either messes the page up, or shows on the first page of results and no more of the other recordset, etc.... so yeah that is basically the problem I am hitting, so I was just wondering is there any examples or ways you could tell me to do this??
View Replies
View Related
We have just signed up for salesforce.com and I need to somehow integrate the canned web-to-lead form from salesforce inside my login/registraiton system without messing up the existing 'join' form.My registration form is built on top of database while the alesform form isstatically generated form which is similiar but not exactly the same.
Post to two different urls at once for my main Join form.Or, perhaps 'hide' the salesforce.com form and somehow populate the values in the form and when the visitor clicks my Join form it also posts the sf form?
View Replies
View Related
if it is possible to store the URL of a browser window as a variable? For example:
var loc = window.location.href
in JavaScript will store the contents of the address bar as the variable loc.
View Replies
View Related
Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any way to wrap these long URLs such that my table doesn't get widened? e.g. wrapping at "/" or something similar?
View Replies
View Related
Are using this practice? If yes which method are you using?
View Replies
View Related
has any one tried SE Friendly URLs with ASP & IIS? There's nothing like mod_rewrite for IIS. Ofcourse there are some 3rd party COM available but how many of us can use them on shared webservers?
So, is there a way to do it?
For those people who don't know what I'm talking about,
Normal URLs with querystrings look like
http://www.example.com/myPage.asp?id=1
while SE Friendly URL will look like
http://www.example.com/mPage/1/
The operative words being look like. You will see the 2nd URL in the browser's address bar but the server will take it as the 1st URL.
View Replies
View Related
I need to convert the Query Strings into Clean URLs, Found some articles on
PHP and Apache server.. How do we it them with ASP ??
View Replies
View Related
My application runs on ASP and the business logic is embedded in Dlls written in VB. The application hosts a list of articles for the user to view and these are accessible through some complex urls like "http://mysite/articles/category1?articleid=34512". I would like to denote a friendly url to these articles such as "http://mysite/articles/kb_TaxPlanning.asp". I am thinking of using an ISAPI filter to do the work for me. My friend was trying on using a httphandler, but it did not work. Please share with us the resources for creating an isapi filter for the same. Also how to use the same for the expected result?
View Replies
View Related
I have a dynamic table that displays names of companies. Some companies have URLs and some don't. I would like for those companies with URLs to open a new browser and show their website, for those with no URL just to open nothing. So far I have this, however doesn't work.
View Replies
View Related
Is there a way to add a header to a page that will change what text the
browser displays in the address field?
For example, say I point my browser to
http://www.domain.com/request.asp?a=1&b=2.
I would like IIS to send back the content generated by the page
request.asp, but would like the address is in the browser to read
"http://www.domain.com/request/index.asp"
Is there any possible way to do this? It seems like this should be possible.
View Replies
View Related
I'd like to save images from urls ? I need to save images with a procedure that i get it the url of image. if anyone know about this problem, let me know?
View Replies
View Related
how to create urls friendly in the term of 'search engine friendly'. I have a website writen in ASP. For example when i click to new page-About us, the url is ....
View Replies
View Related
I have a form on my site that users must fill out before downloading a pdf document, however, i would like the form to send them an email with a temorary URL.
which they can click to download from, and which expires after 'x' days. is this an asp thing? or do i have to move to .net to do this?
View Replies
View Related
Anyone know of a site that gives all of the syntax of relative addressing for URLS?
for example: /, ./, ../, etc.
View Replies
View Related
Has anyone seen a good solution for Search Engine Safe URLs with Classic ASP? I've been looking for a while and short of using the 404 or installing tool on the server I was hoping there might be something else.In ColdFusion you can do a server.com/myfile.cfm/id/410 and it just works ... (well, after you parse the slashes)
View Replies
View Related
I having trouble with some of my classic asp pages being dropped from google.Specifically, a set of four pages reused many times with the content identified via query strings (max 3 variables). I was under the impression that google no longer has a problem with urls appended with query strings. Does anyone know if it is possible to incur penalties for the "over use" of such pages? My product detail page for example is used to display 230 seperate products.
if using static urls may help get my pages re-indexed, but I have had difficulty finding a way to do this with classic asp. Could anyone suggest a suitable method or advise possible reasons for my google disaster?
View Replies
View Related
I have this asp search engine that displays the urls for the files found, only the display shows %20. I need to remove the %20 and display a space instead; is there some way I can mask or remove that for displaying results for users?
View Replies
View Related
I am sending an email to subscibers of a news letter with the url of the latest newsletter in the email. this is built up in code. how do i encode it to include special characters such as spaces as %20. I have tried a simple replace routine but this gives errors on invalid chars.
View Replies
View Related
When someone buys something on my site from a detail page, I show them a cart. When they hit continue shopping, the only option I have right now is to take them back to the detail page. What I really would like to do is take them all the way back to the catalog page they used to get to the detail.
View Replies
View Related
I downloaded this simple function from 4Guys that uses RegEx to convert all URLs into hyperlinks. I need to alter it slightly so that the end of the link will be determined by a space (it does this now), or a "?", which ever comes first.
The problem is, I don't have a good grasp on RegEx patterns and I can't find how to do this. My pattern is below. Can someone tell me how to alter it to do this?
objRegExp.Pattern = "(www|http|S+@)S+"
View Replies
View Related