Click here to Skip to main content
15,902,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: To Display details of the Row selected in the GridView Pin
Abhijit Jana26-Dec-08 20:46
professionalAbhijit Jana26-Dec-08 20:46 
AnswerRe: To Display details of the Row selected in the GridView Pin
Nishant Singh26-Dec-08 20:47
Nishant Singh26-Dec-08 20:47 
Questionauthorization in asp.net using sql databse Pin
tejesh12326-Dec-08 19:49
tejesh12326-Dec-08 19:49 
AnswerRe: authorization in asp.net using sql databse Pin
Anand Desai26-Dec-08 20:01
Anand Desai26-Dec-08 20:01 
GeneralRe: authorization in asp.net using sql databse Pin
tejesh12326-Dec-08 20:17
tejesh12326-Dec-08 20:17 
GeneralRe: authorization in asp.net using sql databse Pin
Anand Desai26-Dec-08 20:25
Anand Desai26-Dec-08 20:25 
GeneralRe: authorization in asp.net using sql databse Pin
tejesh12326-Dec-08 20:34
tejesh12326-Dec-08 20:34 
GeneralRe: authorization in asp.net using sql databse Pin
Abhijit Jana26-Dec-08 21:21
professionalAbhijit Jana26-Dec-08 21:21 
You can do it just simple way . Create a Default page that will display the Unauthorized User message. When you click on the link to open the page that time just simple check the roll of user, if the roles permit to access that page , navigate to that page other wise redirect to unauthorized access page. On unauthorized access page give a link to user back to the home page.

<code>OnAdminLinkClicked()
  {
    if(Session["CurrentUserRole"].equals("Admin"))
       {
         Response.redirect("Admin.aspx");
        }
      else
         {
           Response.Redirect("Unauthorized.aspx)
          }
  }</code>

Note: Given code is just a dummy example, not compiled and checked !!!

cheers,
Abhijit

GeneralRe: authorization in asp.net using sql databse Pin
tejesh12326-Dec-08 21:54
tejesh12326-Dec-08 21:54 
GeneralRe: authorization in asp.net using sql databse Pin
tejesh12328-Dec-08 22:12
tejesh12328-Dec-08 22:12 
Questioncheck Email exist or not Pin
kavitha_blueindia26-Dec-08 9:55
kavitha_blueindia26-Dec-08 9:55 
AnswerRe: check Email exist or not Pin
Christian Graus26-Dec-08 10:42
protectorChristian Graus26-Dec-08 10:42 
GeneralRe: check Email exist or not Pin
Tamer Oz26-Dec-08 20:00
Tamer Oz26-Dec-08 20:00 
AnswerWebservice to validate Email address Pin
David Mujica29-Dec-08 9:44
David Mujica29-Dec-08 9:44 
QuestionGridview control Problem Pin
amistry_petlad26-Dec-08 4:21
amistry_petlad26-Dec-08 4:21 
AnswerRe: Gridview control Problem Pin
Nishant Singh26-Dec-08 20:44
Nishant Singh26-Dec-08 20:44 
QuestionProblem in running web page Pin
Girish48126-Dec-08 0:00
Girish48126-Dec-08 0:00 
AnswerRe: Problem in running web page Pin
Brij26-Dec-08 0:05
mentorBrij26-Dec-08 0:05 
GeneralRe: Problem in running web page Pin
Girish48126-Dec-08 0:08
Girish48126-Dec-08 0:08 
GeneralRe: Problem in running web page Pin
Brij26-Dec-08 0:14
mentorBrij26-Dec-08 0:14 
GeneralRe: Problem in running web page Pin
Girish48126-Dec-08 0:25
Girish48126-Dec-08 0:25 
GeneralRe: Problem in running web page Pin
Brij26-Dec-08 0:39
mentorBrij26-Dec-08 0:39 
AnswerRe: Problem in running web page Pin
Abhijit Jana26-Dec-08 0:07
professionalAbhijit Jana26-Dec-08 0:07 
GeneralRe: Problem in running web page Pin
Girish48126-Dec-08 0:12
Girish48126-Dec-08 0:12 
GeneralRe: Problem in running web page Pin
Abhijit Jana26-Dec-08 0:27
professionalAbhijit Jana26-Dec-08 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.