Click here to Skip to main content
14,327,936 members

Web Development

Questionobject vs img Pin
V.4-Jul-18 20:37
professionalV.4-Jul-18 20:37 
AnswerRe: object vs img Pin
Richard Deeming5-Jul-18 1:50
mveRichard Deeming5-Jul-18 1:50 
GeneralRe: object vs img Pin
V.5-Jul-18 18:50
professionalV.5-Jul-18 18:50 
Questionstudent information Pin
Raja Jee2-Jul-18 18:31
memberRaja Jee2-Jul-18 18:31 
AnswerRe: student information Pin
Richard MacCutchan2-Jul-18 21:11
protectorRichard MacCutchan2-Jul-18 21:11 
QuestionCode Stopped Working When Controller Method Is Invoked Using AJAX Instead Of Formaction Pin
MadDashCoder24-Jun-18 1:23
memberMadDashCoder24-Jun-18 1:23 
AnswerRe: Code Stopped Working When Controller Method Is Invoked Using AJAX Instead Of Formaction Pin
Richard Deeming24-Jun-18 5:04
mveRichard Deeming24-Jun-18 5:04 
QuestionMy First Web API Pin
Kevin Marois20-Jun-18 8:47
professionalKevin Marois20-Jun-18 8:47 
I'm creating a app that will have WPF, Web, and Android clients.

My first task is to create a Web API. I want to implement a login method. I already have the Security class done. What I need to do is expose a Login method.

So, I created this:
public class LoginController : ApiController
    public UserEntity Login(string userName, string password)
        // Return value
        UserEntity results = null;

        // Credential object
        var credentials = new CredentialEntity();
        credentials.UserName = userName;
        credentials.Password = password;

        // Create an instance of the App Security class
        var connString = "";
        var appSec = new ApplicationSecurity(connString);

        // Call Login

        // Do stuff when logged in
        if (appSec.IsUserLoggedIn)
            // Do some other stuff here

            // Return the current user's entity to the caller
            results = appSec.CurrentUser;

        return results;

1) is this the right way to expose this?

2) How do you test this in the browser? What would the URL look like?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: My First Web API Pin
Richard Deeming20-Jun-18 10:53
mveRichard Deeming20-Jun-18 10:53 
GeneralRe: My First Web API Pin
Kevin Marois20-Jun-18 10:59
professionalKevin Marois20-Jun-18 10:59 
GeneralRe: My First Web API Pin
Richard Deeming21-Jun-18 12:19
mveRichard Deeming21-Jun-18 12:19 
QuestionPassing jqGrid Data To Server-Side Method Pin
MadDashCoder16-Jun-18 1:54
memberMadDashCoder16-Jun-18 1:54 
QuestionHow you do make user list Pin
Nuxyer13-Jun-18 5:38
memberNuxyer13-Jun-18 5:38 
AnswerRe: How you do make user list Pin
David Mujica14-Jun-18 3:03
memberDavid Mujica14-Jun-18 3:03 
Questionwhere to post CSS questions? Pin
piano001113-Jun-18 0:38
memberpiano001113-Jun-18 0:38 
AnswerRe: where to post CSS questions? Pin
Nuxyer13-Jun-18 5:41
memberNuxyer13-Jun-18 5:41 
QuestionGet more than 1 data entry from DB using PHP Pin
Member 1386791311-Jun-18 4:01
memberMember 1386791311-Jun-18 4:01 
AnswerRe: Get more than 1 data entry from DB using PHP Pin
Jochen Arndt11-Jun-18 22:55
mveJochen Arndt11-Jun-18 22:55 
GeneralRe: Get more than 1 data entry from DB using PHP Pin
Member 1386791312-Jun-18 2:34
memberMember 1386791312-Jun-18 2:34 
QuestionSignalR - resources Pin
0x01AA9-Jun-18 9:15
professional0x01AA9-Jun-18 9:15 
QuestionMagento 2: config url rewrite? Pin
Vicent Nguyen7-Jun-18 18:06
professionalVicent Nguyen7-Jun-18 18:06 
Questionhow to merge two powerpoint presentation slides into one ppt using php or javascript ? Pin
Member 1385293031-May-18 2:22
memberMember 1385293031-May-18 2:22 
QuestionMVC - Video chat with my screen sharing web Pin
Gunasekararan30-May-18 1:24
professionalGunasekararan30-May-18 1:24 
QuestionIs this code correct? Pin
X2A coding25-May-18 4:28
professionalX2A coding25-May-18 4:28 
QuestionRe: Is this code correct? Pin
Richard MacCutchan25-May-18 4:35
protectorRichard MacCutchan25-May-18 4:35 

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.