Click here to Skip to main content
15,913,925 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhi Pin
Drij26-Dec-08 22:46
Drij26-Dec-08 22:46 
AnswerRe: hi Pin
Brij26-Dec-08 23:27
mentorBrij26-Dec-08 23:27 
AnswerRe: hi Pin
Abhijit Jana27-Dec-08 0:13
professionalAbhijit Jana27-Dec-08 0:13 
QuestionTo Display details of the Row selected in the GridView Pin
Samiullah26-Dec-08 20:10
Samiullah26-Dec-08 20:10 
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 
Hi,

tejesh123 wrote:
The resources/access rights are stored in sql server which maps to group/user


Create session variables each for every right (like bit 1 for authorized and 0 for not). After login check for those in database and according to that set the session variables.

tejesh123 wrote:
Authorization is required at the menus


Check for those variables while loading menu, if true then show link and otherwise.

tejesh123 wrote:
also it must able protect the user from directly opening the pages by typing in the url.


At !PostBack, check if session variables have values or not and at not, redirect to Home Page.

note: create all variables in one .cs page and render that whole page as Session (eg. SessionVariables sp = new SessionVariables(); sp = session["SessionVariables"]; where session["SessionVariables"] is created in previous page like session["SessionVariables"] = sp;)

Hope this helps!!!

Anand Desai
Developer
Atharva Infotech

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 
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 

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.