in social networking website like orkut we login with our username....
how it possible to navigate to once profile to other and returns to ours profile. i am facing problem in my project in navgation frorm once useraccount to other return to own useraccount.
what helps to navigate to from one useraccount to another.......plz decribe it brifely........
Thanks
Loading
Dipa AhujaPosted May 10, 2010, 3:02 AM
Deepak PandeyPosted May 9, 2010, 1:58 PM
Diya......
I hv done the same thing that what u r saying....
but my problem is that what code i write in the page load so that same page i mean profile form will be utlize for both...
if u want the source code that i hv tried then i will email on oyour email address...
but u hv to answer on my email id...........
thanks for replay...............
Again thanks...........
Dipa AhujaPosted May 9, 2010, 12:10 PM
Deepak PandeyPosted May 9, 2010, 11:43 AM
Diya........
I liked your answer............
but i not want to use sqldatasource if it is possible without sqldatasource then how..
thanks for the reply................
Dipa AhujaPosted May 9, 2010, 10:43 AM
now i have created a search.aspx here i can search the user by entering its email address or name and result will be shown in the gridview like orkut..
in profile.aspx
Deepak PandeyPosted May 9, 2010, 10:05 AM
Diya......
what ur saying i know abt that.....
i hv two unique field userid and username.......
but the problem is that how to control the navigation....
i using one master page for both for person how is logged in and person i want to nagiagate others account...
is it possible tio navigate with the same masterpage and same profile....
or i hv to use two master page and two profile for navigation..........
can u give the complete detail what u want to say...
thanks for ur replay........
Dipa AhujaPosted May 9, 2010, 8:29 AM
if you check the address bar of orkut it is somthing like ...
profile.aspx?uid=89897999
you have to provide each user a unique userid so that you can navigate through pages.
and when i create social networking site for profile page i used two pages
1 my profile.aspx , 2 userprofile.aspx
the myprofile is opened without querystring like myprofile.aspx
but for userprofile.aspx?uid=
my profile wil be opened using fix id that is myuser id and the user's profile is depends on the user who's profile we check..
Deepak PandeyPosted May 9, 2010, 6:52 AM
can u describe the method u r telling abt............
Amit ChoudharyPosted May 8, 2010, 11:29 PM
you must user two different pages one for logged in user's profile and other page for another user's profile. for navigation use some unique identity of users for e.g., Userid or Username(its must be unique) and load the page according the query string userid or username. then if you see the logged in user's link in another user's profile then onclick it must go to loggedin user's page.
for this you have to put conditions on databound and onclick when you loading the page..
and condition will be
if (Request.QueryString["Username"]==Membership.GetUser().UserName)
{
}
for page_load event. you have to put some more condition like on button click event or link button click if you are loading page on condition then again check for this condition if requested user in query string is the logged in user itself.
Hope your situation is clear this solution.
Please don't forget to mark "Do you like this post" check box if it helps you.