In my page after sign in am redirecting to home page (This is fixed) but when am trying to click on job apply button,it should check the user is login or not like
if(Id!=0)
Redirect to page.aspx
else
Redirect to login page
In this case after login it should not redirect to home page ,it should be redirect to page.aspx,for this how to write the logic?
Khargesh RajputPosted Mar 20, 2015, 3:28 AM
To do this
on job
set session as fromjob or you want
and on login page check if user com from job page then session["fromjob"] has some value then it will redirect to job applypage
else // if user directly come to login
redirect to userhomepage or default
Usha RajPosted Mar 20, 2015, 2:57 AM
Khargesh RajputPosted Mar 20, 2015, 2:48 AM
if(session["loginname"]!=null)
{
redirect to apply job
}
else
{
redirect login page
}
and at login click set session as loginname for logged in user