URL Rewriting - asp.net 2.0

1 view
Skip to first unread message

jack me

unread,
Apr 30, 2008, 3:56:38 AM4/30/08
to and...@badera.us, zor...@sify.com, DotNetDe...@googlegroups.com
Hi

I want to do url rewriting for a site. I can implement on static urls or predefined urls but if I am entering products under a category like books. if i know the book id then ok but i dont know the book id and all things on page are coming dynamically then how i may implement URL Rewriting. What i have to do in web config instead of below line:

<add url="~/books/" mappedUrl="~/ProductsByCategory.aspx?CategoryID=6&amp;CategoryName=books&BookId=10"/>

Thanks

Glenn

unread,
Apr 30, 2008, 3:32:27 PM4/30/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
.htaccess

... Glenn

On Apr 30, 3:56 am, "jack me" <reachtoj...@gmail.com> wrote:
> Hi
>
> I want to do url rewriting for a site. I can implement on static urls or
> predefined urls but if I am entering products under a category like *books*.
> if i know the book id then ok but i dont know the book id and all things on
> page are coming dynamically then how i may implement URL Rewriting. What i
> have to do in web config instead of below line:
>
> <add url="~/books/"
> mappedUrl="~/ProductsByCategory.aspx?CategoryID=6&amp;CategoryName=books&Bo­okId=10"/>
>
> Thanks

Andrew Badera

unread,
Apr 30, 2008, 3:34:17 PM4/30/08
to DotNetDe...@googlegroups.com

Glenn

unread,
Apr 30, 2008, 3:42:43 PM4/30/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I know!!!! Just had to throw that in there.

...Glenn

On Apr 30, 3:34 pm, "Andrew Badera" <and...@badera.us> wrote:
> .htaccess == lose.

jack me

unread,
Apr 30, 2008, 8:51:44 PM4/30/08
to DotNetDe...@googlegroups.com
Hey
no answer..?
whats that

loose means,,,,,,,

i dont know what i had asked wrong....

Just tell me how i can do url rewriting on dynamic urls where i i know the page name not the values.

I am expecting answer.

Thanks

Andrew Badera

unread,
May 1, 2008, 12:49:57 PM5/1/08
to DotNetDe...@googlegroups.com
I'm sure you are.

GIYF.

On Wed, Apr 30, 2008 at 8:51 PM, jack me <reach...@gmail.com> wrote:

I am expecting answer.


TPM

unread,
May 1, 2008, 1:01:19 PM5/1/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

I use this is all of my ASP.NET projects:

http://www.urlrewriter.net/

Another option is to use MonoRails (or the new pre-release MVC
project), but that's a large learning curve for just that feature.


On May 1, 9:49 am, "Andrew Badera" <and...@badera.us> wrote:
> I'm sure you are.
>
> GIYF.
>
> On Wed, Apr 30, 2008 at 8:51 PM, jack me <reachtoj...@gmail.com> wrote:
>
> > I am expecting answer.
>
> --
> --Andy Baderahttp://andrew.badera.us/http://flipbitsnotburgers.blogspot.com/

jack me

unread,
May 4, 2008, 8:55:13 PM5/4/08
to DotNetDe...@googlegroups.com
Thanks TPM
Reply all
Reply to author
Forward
0 new messages