Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Connect asp . net with Windows Application Pin
sashidhar12-Nov-09 17:34
sashidhar12-Nov-09 17:34 
GeneralRe: Connect asp . net with Windows Application Pin
Shameel12-Nov-09 23:44
professionalShameel12-Nov-09 23:44 
GeneralRe: Connect asp . net with Windows Application Pin
sashidhar13-Nov-09 0:08
sashidhar13-Nov-09 0:08 
AnswerRe: Connect asp . net with Windows Application Pin
N a v a n e e t h12-Nov-09 17:39
N a v a n e e t h12-Nov-09 17:39 
AnswerRe: Connect asp . net with Windows Application Pin
Amit Patel198512-Nov-09 20:08
Amit Patel198512-Nov-09 20:08 
GeneralRe: Connect asp . net with Windows Application Pin
Shameel12-Nov-09 23:47
professionalShameel12-Nov-09 23:47 
Question2 master pages & 2 roles. Pin
gerrybrennan12-Nov-09 7:04
gerrybrennan12-Nov-09 7:04 
AnswerRe: 2 master pages & 2 roles. Pin
Petr Pechovic12-Nov-09 7:18
professionalPetr Pechovic12-Nov-09 7:18 
Hi,

One option could be:

Don't use Login Control. Create just 2 textboxes and one button. On the button click you can have this action:

protected void Signin_click(object sender, object args) {
      
            if (Membership.ValidateUser(txtLogin.Text, txtPassword.Text)) {
                // login successful
                FormsAuthentication.SetAuthCookie(txtLogin.Text, false);
                string returnUrl = Request.QueryString["ReturnUrl"];
                if (string.IsNullOrEmpty(returnUrl)) {

                    if (admin) {
                       Response.Redirect("my_admin_page.aspx", false);
                    } else if (user) {
                       Response.Redirect("my_user_page.aspx", false);
                    }
                } else {
                    Response.Redirect(returnUrl, false);
                }
            } else {
                // give user the message that login failed!
            }
        }


Petr Pechovic
GeneralRe: 2 master pages & 2 roles. Pin
Not Active12-Nov-09 7:27
mentorNot Active12-Nov-09 7:27 
GeneralRe: 2 master pages & 2 roles. Pin
Petr Pechovic12-Nov-09 7:34
professionalPetr Pechovic12-Nov-09 7:34 
AnswerRe: 2 master pages & 2 roles. Pin
Not Active12-Nov-09 7:28
mentorNot Active12-Nov-09 7:28 
QuestionHelp Pin
Ganeshklncit12-Nov-09 6:21
Ganeshklncit12-Nov-09 6:21 
AnswerUnhelpful subject, and not much more Pin
The Man from U.N.C.L.E.12-Nov-09 6:31
The Man from U.N.C.L.E.12-Nov-09 6:31 
AnswerRe: Help Pin
Abhishek Sur12-Nov-09 6:46
professionalAbhishek Sur12-Nov-09 6:46 
AnswerRe: Help Pin
Not Active12-Nov-09 7:23
mentorNot Active12-Nov-09 7:23 
AnswerRe: Help Pin
Shameel13-Nov-09 0:08
professionalShameel13-Nov-09 0:08 
AnswerRe: Help Pin
FEMDEV13-Nov-09 5:03
FEMDEV13-Nov-09 5:03 
QuestionMail box Pin
deepikadurge12-Nov-09 2:27
deepikadurge12-Nov-09 2:27 
AnswerRe: Mail box Pin
Richard MacCutchan12-Nov-09 2:36
mveRichard MacCutchan12-Nov-09 2:36 
AnswerRe: Mail box Pin
Abhishek Sur12-Nov-09 4:06
professionalAbhishek Sur12-Nov-09 4:06 
GeneralRe: Mail box Pin
deepikadurge12-Nov-09 17:40
deepikadurge12-Nov-09 17:40 
GeneralRe: Mail box Pin
Abhishek Sur12-Nov-09 22:00
professionalAbhishek Sur12-Nov-09 22:00 
GeneralRe: Mail box Pin
deepikadurge13-Nov-09 1:31
deepikadurge13-Nov-09 1:31 
GeneralRe: Mail box Pin
deepikadurge12-Nov-09 20:03
deepikadurge12-Nov-09 20:03 
AnswerRe: Mail box Pin
Abhijit Jana12-Nov-09 5:07
professionalAbhijit Jana12-Nov-09 5:07 

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.