Hello All,
In my app I have a page that shows articles something like
showarticle.asp x?articleid=xxx x, I want that it looks like:
/showarticle/article-one-title.aspx and so forth, so I was thinking to use
the “new” asp.net 2.0 URL Mapping instead of write a http module to handle
this.
I set the settings this way: <urlMappings configSource="M appings.xml" /and
I‘m planning to update the xml file every time a new article is added. I’m
not happy with this way, will be better to use the HTTP Handler? Any
recommendation?
Thanks! 4 2302
Hi,
ed wrote:
Hello All,
In my app I have a page that shows articles something like
showarticle.asp x?articleid=xxx x, I want that it looks like:
/showarticle/article-one-title.aspx and so forth, so I was thinking to use
the “new” asp.net 2.0 URL Mapping instead of write a http module to handle
this.
I set the settings this way: <urlMappings configSource="M appings.xml" /and
I‘m planning to update the xml file every time a new article is added. I’m
not happy with this way, will be better to use the HTTP Handler? Any
recommendation?
Thanks!
It really depends on your use case. If a program can deduct the mapping
according to the article's name or content, then I would rather
recommend going with a HttpModule. It's quite easy to do in 2.0 anyway.
The urlMappings solution is easier, but if you must update and upload
the config file every few days, it might be too much of a trouble.
Note additionally that every modification to the web.config file causes
the application to restart, and all existing sessions are closed. In a
productive environment, it might not be possible at all. http://msdn.microsoft.com/library/de...lrewriting.asp
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
IIS 7 will probably support URL rewriting at some point, or try one one
of the ASP.NET 2.0 rewriting components that are available, this one is
supposed to be good: http://www.urlrewriting.net/
ed wrote:
Hello All,
In my app I have a page that shows articles something like
showarticle.asp x?articleid=xxx x, I want that it looks like:
/showarticle/article-one-title.aspx and so forth, so I was thinking to use
the "new" asp.net 2.0 URL Mapping instead of write a http module to handle
this.
I set the settings this way: <urlMappings configSource="M appings.xml" /and
I'm planning to update the xml file every time a new article is added. I'm
not happy with this way, will be better to use the HTTP Handler? Any
recommendation?
Thanks!
Thanks so much for your advice. I was afraid for the app restart too.
Will be nice to be able to write in the future something like this:
<urlMappings configSource="G etMapingXMl.asp x" /and this page will build the
xml with the updated mappings ;-) hehehe don't you think?.
"Laurent Bugnion" wrote:
Hi,
ed wrote:
Hello All,
In my app I have a page that shows articles something like
showarticle.asp x?articleid=xxx x, I want that it looks like:
/showarticle/article-one-title.aspx and so forth, so I was thinking to use
the “new” asp.net 2.0 URL Mapping instead of write a http module to handle
this.
I set the settings this way: <urlMappings configSource="M appings.xml" /and
I‘m planning to update the xml file every time a new article is added. I’m
not happy with this way, will be better to use the HTTP Handler? Any
recommendation?
Thanks!
It really depends on your use case. If a program can deduct the mapping
according to the article's name or content, then I would rather
recommend going with a HttpModule. It's quite easy to do in 2.0 anyway.
The urlMappings solution is easier, but if you must update and upload
the config file every few days, it might be too much of a trouble.
Note additionally that every modification to the web.config file causes
the application to restart, and all existing sessions are closed. In a
productive environment, it might not be possible at all.
http://msdn.microsoft.com/library/de...lrewriting.asp
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Hi,
ed wrote:
Thanks so much for your advice. I was afraid for the app restart too.
Will be nice to be able to write in the future something like this:
<urlMappings configSource="G etMapingXMl.asp x" /and this page will build the
xml with the updated mappings ;-) hehehe don't you think?.
I doubt that will happen, considering how easy it is to use HttpModules
in ASP.NET 2.0 to rewrite URLs, and also how many solutions already
exist on internet.
Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Frank |
last post by:
Hi there,
In web.xml, I know it's possible to do path mapping:
<path-mapping url-pattern="/aaa/*" real-path="C:\TEMP\"/>
So a call to myserver.com/mywebapp/aaa will redirect to c:\temp.
Is it possible to do the same but with a URL?
|
by: Pierre Fortin |
last post by:
Hi!
"Python Essential Reference" - 2nd Ed, on P. 47 states that a string
format can include "*" for a field width (no restrictions noted); yet...
>>> "%*d" % (6,2) # works as expected
' 2'
Now, with a mapping....
|
by: naruto |
last post by:
Hi all,
I have the following being defined in a A.cxx file.
// define in source file. Not exported to the outside world (this
cannot be
// moved to the header file )
#define CHANNEL_0 0
#define CHANNEL_1 1
#define CHANNEL_2 2
|
by: mike |
last post by:
regards:
Where to find tag mapping-table of HTML translated to XHTML1.0
Any positive suggestion is welcome.
thank you
May goodness be with you all
|
by: Tamas Hegedus |
last post by:
Hi!
I am looking for an xml-object mapping tool ('XML Data Binding-design
time product') where I can define the mapping rules in 'binding files'
and the parser is generated automatically.
Similar to the solution of Dave Kuhlman
(http://www.rexx.com/~dkuhlman/generateDS.html) where the mapping is
defined in an xml file (if I am understand well).
| |
by: Elder Hyde |
last post by:
I was reading this interview with Hejlsberg, when suddenly the
conversation turned to O/R mapping. Hejlsberg talked as if he had had to
design an O/R mapping for .NET (he said ".NET had each one of
those"--"those" representing, among others, O/R mapping).
Probably I'm missing something really obvious, but a google search only
gave me commercial O/R mapping tool! Is there any free O/R mapping tool
that comes with .NET?
Elder
|
by: BentleyInc |
last post by:
I'm trying to find a way to add a whildcard application mapping to
aspnet_isapi.dll in IIS programmatically.... been looking into IIS
administrator reference but didn't find the right function to use.
The equivalent GUI steps would be, open IIS, select my
application->properties, app configuration, in whildcard application mapping
type the path to aspnet_isapi.dll.
Thanks,
Jingmei Li
|
by: none |
last post by:
Hi,
I'm trying to establish table mappings, and I've hit a snag.
At the point to where I try to fill the schema (DB_adapter.FillSchema),
I get an exception, and the message is as follows:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Invalid column name 'Unique_ref'.
Invalid column name 'ID_string'.
Invalid column name 'Sequence'.
|
by: Ram |
last post by:
Hey,
I'm having a trouble mapping a connecting between 2 of my tables.
We have 2 tables - the simplest "dept", "emp" tables which are mapped
to 2 classes.
Class Dept contains 2 properties for emps - 1 for manager and the
second for workers (Collection).
How can I map this?
We can add additional fields in the emp table that indicates the
property in the depts?
|
by: Jan Kucera |
last post by:
Hi,
does anybody know about wildcard mapping ASP.NET 2 in IIS6?
Any tutorial?
Thanks,
Jan
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |