473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

filename without extension in URL query

Joe
If I have a search submit button, when I click submit button, it will submit
the form to search.asp for form processing.
This will be the URL: http://www.mycompany.com/search.asp?q=programming

But when I do search in google, search doesn't have any file extension. How
do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&q...=Google+Search

Please advise. thanks!!


Jul 22 '05 #1
6 1718
custom error pages and/or ISAPI filters.

Custom 404's
http://aspfaq.com/show.asp?id=2162

ISAPI
http://aspfaq.com/show.asp?id=2216
http://aspfaq.com/show.asp?id=2232

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Joe" <ap****@yahoo.com> wrote in message news:eC*************@TK2MSFTNGP15.phx.gbl...
| If I have a search submit button, when I click submit button, it will submit
| the form to search.asp for form processing.
| This will be the URL: http://www.mycompany.com/search.asp?q=programming
|
| But when I do search in google, search doesn't have any file extension. How
| do they do that? I saw some site are like that too.
| http://www.google.com/search?hl=en&q...=Google+Search
|
| Please advise. thanks!!
|
|
|
|
Jul 22 '05 #2
On Thu, 3 Feb 2005 22:26:25 -0800, "Joe" <ap****@yahoo.com> wrote:
If I have a search submit button, when I click submit button, it will submit
the form to search.asp for form processing.
This will be the URL: http://www.mycompany.com/search.asp?q=programming

But when I do search in google, search doesn't have any file extension. How
do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&q...=Google+Search

Please advise. thanks!!


First, use your fifty billion in stock sales to hire a team of
programmers to rewrite a web server to your needs... :)

Jeff
Jul 22 '05 #3
Normally if you are typing an URL like this

http://www.mycomany.com

IIS will try to find a default.htm or default.aspx depending on the
settings, then if it is available it will be sent to the client,So

http://www.google.com/search?hl=en&q...=Google+Search

in this case search is not a filename it is a directory, so all the query
string variables are passed to the default.aspx (assume it is implemented in
asp.net) file in that directoty.

"Joe" wrote:
If I have a search submit button, when I click submit button, it will submit
the form to search.asp for form processing.
This will be the URL: http://www.mycompany.com/search.asp?q=programming

But when I do search in google, search doesn't have any file extension. How
do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&q...=Google+Search

Please advise. thanks!!


Jul 22 '05 #4
Joe wrote:
If I have a search submit button, when I click submit button, it will submit
the form to search.asp for form processing.
This will be the URL: http://www.mycompany.com/search.asp?q=programming

But when I do search in google, search doesn't have any file extension. How
do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&q...=Google+Search

Please advise. thanks!!


Google doesn't run on IIS. The "search" at Google might be
an executable. If the webserver runs on Unix (any flavor)
then executables usually do not have extensions.
--
Hans Kesting
Jul 22 '05 #5
Joe wrote:
If I have a search submit button, when I click submit button, it will
submit the form to search.asp for form processing.
This will be the url:
http://www.mycompany.com/search.asp?q=programming

But when I do search in google, search doesn't have any file
extension. How do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&q...=Google+Search


The necessity to use (or work around) file extensions is imposed by
IIS. Java Servlets for example can easily work exclusively with paths
and path information.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Jul 22 '05 #6
On Fri, 4 Feb 2005 05:07:02 -0800, "Gold"
<Go**@discussions.microsoft.com> wrote:
Normally if you are typing an URL like this

http://www.mycomany.com

IIS will try to find a default.htm or default.aspx depending on the
settings, then if it is available it will be sent to the client,So

http://www.google.com/search?hl=en&q...=Google+Search

in this case search is not a filename it is a directory, so all the query
string variables are passed to the default.aspx (assume it is implemented in
asp.net) file in that directoty.

That's what I'd have thought as the most obvious way to replicate it.

Everyone else seemed to just start IIS/Microsoft bashing :)

I

--
Iain Norman | http://www.eliteforum.org
Jul 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Lucas-Smith | last post by:
Is there some way of using ereg to detect when certain filename extensions are supplied and to return false if so, WITHOUT using the ! operator before ereg () ? I have an API that allows as an...
1
by: hokiegal99 | last post by:
I've written a small script (with much help from this list) that searches through a directory for files without a PC filename extension like .doc .xls and then adds them. The reason for writing the...
27
by: gmtonyhoyt | last post by:
I need assistance coming up with a clean way to handle filename extensions with my application. While I can come up with several ways of doing so on my own, I felt perhaps it would be worth...
2
by: Csharper95 | last post by:
I want to get the file name and path from a SaveFileDialog (for a 'save as' operation) after the user has saved the information under a new file name (and presumably under a new path) ? I want...
7
by: Joe | last post by:
If I have a search submit button, when I click submit button, it will submit the form to search.asp for form processing. This will be the URL: http://www.mycompany.com/search.asp?q=programming ...
4
by: Jed | last post by:
I have looked everywhere and cannot find a resolution for this. I have read several post on this forum that allude to similar issues but I have not found a solution. I am sending dynamic...
10
by: Brian Gruber | last post by:
Hi, I'm looking for a way to rename a whole directory of files in short order. The files in the directory have different lengths, however all of them end with _xxxx the x's represent a randomly...
8
by: Lad | last post by:
Hello, what is a way to get the the extension of a filename from the path? E.g., on my XP windows the path can be C:\Pictures\MyDocs\test.txt and I would like to get the the extension of the...
8
by: gopal | last post by:
Hi, I would like to display only the file names in SaveFileDialog control when i open it the Window in the without the complete file path Example if the file - -- test.doc is in folder...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.