Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating A "Virtual" Page

Status
Not open for further replies.

anonim1

Programmer
Dec 10, 2004
108
US
I don't know the official term for what I'm trying to create, but this is what I want to do:

I have a webform which will display detailed information about a university course (title, instructor, description, etc.). This webform will be databound to a database of courses. The way I know how to do it is by specifying a course in the querystring like where 5 is the course ID in the database. However, this is not pretty in terms of users linking to or bookmarking this page.

I'd like the user to be able to navigate to or where the filename is actually the course name. However, I DO NOT want to have to create a separate webform for each course. I want to create one file which will pull the database record that matches the filename minus the extension (SELECT * FROM COURSES WHERE name='pmo123').

Is this possible? Someone please tell me yes!
 
Yes, it's possible and is known as URL Rewriting. Have a look on google for some examples.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
The following link may give you some idea...
URL Rewriting with ASP.NET

That's one of the articles that the user will have found if they typed "ASP.NET URL Rewriting" into google (which is what I am guessing you did). You don't have to go and type the keywords into google and paste a link to each article that you find, as the poster will also find them very easily.

By all means, chip in with any knowledge you have on the subject (and post links to articles that back up this knowledge or contain an example of what you mean) but there's not much point just listing search results from google on each thread you read.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I'd agree with ca8msm's comments, Prashant, your efforts to help out fellow Tek-Tip users are appreciated, but being a GTPI ("google-to-poster-interface") isn't that helpful - especially when others have already provided the answer and the guidance on what to search for.

So, please continue to help out, but try providing your own knowledge, experience and guidance - which is much more valuable than a lifeless and possibly not always relevant article link.

Star to the first provider of the answer.

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top