Click here to Skip to main content
15,885,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a datalist and pagercontrol, So when page load showing first page of listview then i want url to be:
www.project.com/book/1

and paging is done for second page then

http://www.project.shop.com/book/2

please help.
Thanks in advance
Posted

You can use URL Rewriting.

Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]
 
Share this answer
 
Comments
thatraja 30-May-11 14:07pm    
Good links 5!
Sandeep Mewara 30-May-11 14:09pm    
Thanks Raja. :)
Espen Harlinn 30-May-11 19:21pm    
My 5, 200K - that's great Sandeep :)
Sandeep Mewara 30-May-11 23:56pm    
Yeah. Thanks Espen. :)
Prasanta_Prince 31-May-11 3:41am    
Good one..
 
Share this answer
 
Comments
rahul dev123 30-May-11 6:46am    
please send me different solution it does not work

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900