473,505 Members | 13,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!!


Nov 19 '05 #1
7 1196
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!!
|
|
|
|
Nov 19 '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
Nov 19 '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!!


Nov 19 '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
Nov 19 '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
Nov 19 '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
Nov 19 '05 #7
Hello Gold,

If it was truly a folder then it would be search/?hl=en... Notice the /

--
Matt Berther
http://www.mattberther.com
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!!


Nov 19 '05 #8

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

Similar topics

3
20968
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
2365
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...
6
1725
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 ...
27
4592
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
50249
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...
4
2293
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
13026
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
8535
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
9426
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
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
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
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7018
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
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.