Click here to Skip to main content
15,898,538 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 20:32
Venkatesh Mookkan14-Jun-07 20:32 
AnswerRe: Problem in firing the Linkbutton Click Event Pin
Chetan Ranpariya14-Jun-07 20:45
Chetan Ranpariya14-Jun-07 20:45 
GeneralRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 21:31
Venkatesh Mookkan14-Jun-07 21:31 
GeneralRe: Problem in firing the Linkbutton Click Event Pin
Chetan Ranpariya14-Jun-07 21:52
Chetan Ranpariya14-Jun-07 21:52 
GeneralRe: Problem in firing the Linkbutton Click Event Pin
Venkatesh Mookkan14-Jun-07 22:02
Venkatesh Mookkan14-Jun-07 22:02 
QuestionProblem in Deploying Web Apllication using ASP.net 2.0 Pin
krishsenthilraj14-Jun-07 18:56
krishsenthilraj14-Jun-07 18:56 
QuestionRestricting access to pages inside a folder Pin
Biju Sam14-Jun-07 18:07
Biju Sam14-Jun-07 18:07 
AnswerRe: Restricting access to pages inside a folder Pin
RepliCrux14-Jun-07 19:37
RepliCrux14-Jun-07 19:37 
You must have a list of users, roles and UserRoles. You will have to use windows security to load the roles for the current user. Then ;

protected void Page_Load(object sender, EventArgs e)
CheckRole()
{
if(!IsPostBack)
{
//Do Something
}

public void CheckRole()
{
if (!Context.User.IsInRole("Manager"))
{
thow new Exception("Access Denied");
}
}
}

You can usethe windows security using the following:

using System.Security.Principal;
and then

IIdentity identity;
String[] roles = {"manager","employee"};
GenericPrincipal g = new GenericPrincipal(identity, roles);

You will have to fix the IIdentity part above.
GeneralRe: Restricting access to pages inside a folder Pin
Not Active15-Jun-07 2:00
mentorNot Active15-Jun-07 2:00 
AnswerRe: Restricting access to pages inside a folder Pin
Not Active15-Jun-07 1:59
mentorNot Active15-Jun-07 1:59 
Questionabout datatable Pin
lockepeak14-Jun-07 16:30
lockepeak14-Jun-07 16:30 
AnswerRe: about datatable Pin
Christian Graus14-Jun-07 17:57
protectorChristian Graus14-Jun-07 17:57 
AnswerRe: about datatable Pin
_AK_14-Jun-07 22:02
_AK_14-Jun-07 22:02 
Questionasp.net using crystal report Pin
moomoooomoo14-Jun-07 14:54
moomoooomoo14-Jun-07 14:54 
AnswerRe: asp.net using crystal report Pin
Sathesh Sakthivel14-Jun-07 15:06
Sathesh Sakthivel14-Jun-07 15:06 
QuestionPage has expired issue. [modified] Pin
terife14-Jun-07 13:37
terife14-Jun-07 13:37 
QuestionObject reference not set to an instance of an objec [modified] Pin
ASPnoob14-Jun-07 13:20
ASPnoob14-Jun-07 13:20 
AnswerRe: Object reference not set to an instance of an objec Pin
Christian Graus14-Jun-07 13:56
protectorChristian Graus14-Jun-07 13:56 
GeneralRe: Object reference not set to an instance of an objec Pin
ASPnoob14-Jun-07 14:09
ASPnoob14-Jun-07 14:09 
GeneralRe: Object reference not set to an instance of an objec Pin
Not Active14-Jun-07 14:36
mentorNot Active14-Jun-07 14:36 
GeneralRe: Object reference not set to an instance of an objec [modified] Pin
ASPnoob14-Jun-07 18:13
ASPnoob14-Jun-07 18:13 
AnswerRe: Object reference not set to an instance of an objec Pin
Chetan Ranpariya14-Jun-07 21:08
Chetan Ranpariya14-Jun-07 21:08 
AnswerRe: Object reference not set to an instance of an objec Pin
ShuklaGirish14-Jun-07 20:42
ShuklaGirish14-Jun-07 20:42 
AnswerRe: Object reference not set to an instance of an objec Pin
ShuklaGirish14-Jun-07 20:58
ShuklaGirish14-Jun-07 20:58 
GeneralRe: Object reference not set to an instance of an objec Pin
ASPnoob14-Jun-07 21:54
ASPnoob14-Jun-07 21:54 

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.