i have one datagrid which contain jobseekerid and firstname and one datalist which contain all other details of jobseeker. Now while login as a jobseeker it enters into joobseeker home page which contain these datagrid and datalist.
Now my problem is while login datagrid showing all the joobseekerid and firstname.i want to show particular id and firstname by which iam login. and while selecting dat id the particular details should shown in datalist..Plz help
Thank you
ArshadPosted Dec 4, 2008, 12:31 AM
Select * from table name where.......................
You are not using where clause, coz of that its coming all.
Thats all
Pankaj GuptaPosted Dec 3, 2008, 7:36 AM
In this case, if you have to only show the one user at a time, i think you don't need to use the data grid. you show with the help of some other records. if this not solve your problem, please describe it.
Ghaffar AbdulPosted Dec 2, 2008, 1:09 AM
Hi,
You can use sql membership for this purpose and then show and hide or mangage users.
Then you can display or hide controls like i.e.
if (User.Identity.IsAuthenticated == true){
if (Roles.IsUserInRole("JobSeeker") == true) { label1.visible = true;}else{label1.visible=false;}
}
You can find some of best articles on how to use membership provider at:
http://aspnet.4guysfromrolla.com/default.aspx
Regards