Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hello
When a member(suppose neetu) login on a page s/he should be redirected on index.html?id=2001 page with the url
www.mysite.com/member/neetu

neetu(id) is coming from database and member is a folder i created

so i m trying this with url rewriting and routing too.....but nothing works...can u plz give me exacting idea how can i do this.please tell me I am using asp.net 2.0
the best example is your url(codeproject)...its not showing any
C#
page.aspx
Posted
Updated 26-Oct-12 7:00am
v11
Comments
Miss Maheshwari 24-Oct-12 23:45pm    
your url (codeproject) is the best example... its not like any page.aspx so you people must have the answer of my question
[no name] 25-Oct-12 1:53am    
Why we need a rewriting or routing ? do you really want to do it from IIS (rewriting or routing). In case, if you have created your neetu.aspx manually in members folder, why dont you simply use a stringbuilder and use that string to RESPONSE.REDIRECT your user to respective page.
Miss Maheshwari 26-Oct-12 8:51am    
i haven't created any neetu.aspx(i.e. a member and lots of member can be there...)i am just redirecting the member after login to index.aspx but i dont want to the url like this i just want to show the url like /member/member_name(that is coming from database)..
[no name] 26-Oct-12 8:56am    
Just to hide the page name ? Follow these 2 steps
1. Make index.aspx as default page for your folder\
2. use Server.Tranfser(yourURL);

1 solution

 
Share this answer
 
Comments
Miss Maheshwari 23-Oct-12 8:15am    
i have already checked that but no use...after google i posted question here
Ambesha 23-Oct-12 8:19am    
your url seems that this is MVC application and please share the code you have dione till for this
Miss Maheshwari 24-Oct-12 13:13pm    
Its not mvc as i have explained it vry clearly...

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