Click here to Skip to main content
15,886,919 members
Home / Discussions / Web Development
   

Web Development

 
QuestionGoogle MAP with Multiple Marked location Pin
Member 118050633-Jun-16 3:37
Member 118050633-Jun-16 3:37 
AnswerRe: Google MAP with Multiple Marked location Pin
Richard MacCutchan3-Jun-16 4:15
mveRichard MacCutchan3-Jun-16 4:15 
AnswerRe: Google MAP with Multiple Marked location Pin
ZurdoDev3-Jun-16 4:39
professionalZurdoDev3-Jun-16 4:39 
QuestionBest alternative for web automation in Internet Explorer Pin
IT - Researcher24-May-16 23:42
IT - Researcher24-May-16 23:42 
QuestionAngularJS controller is not firing, in ASP.NET MVC and AngularJS application Pin
indian14323-May-16 22:17
indian14323-May-16 22:17 
AnswerRe: AngularJS controller is not firing, in ASP.NET MVC and AngularJS application Pin
Nathan Minier24-May-16 1:28
professionalNathan Minier24-May-16 1:28 
GeneralRe: AngularJS controller is not firing, in ASP.NET MVC and AngularJS application Pin
indian14324-May-16 7:05
indian14324-May-16 7:05 
GeneralRe: AngularJS controller is not firing, in ASP.NET MVC and AngularJS application Pin
Nathan Minier25-May-16 2:39
professionalNathan Minier25-May-16 2:39 
Well, you have a couple of issues.

First is a resource leak. Make sure to dispose of your DbContext implementation instances, usually wrapping with a "using" is a good route. In the controller, that would look like:
C#
public ActionResult GetEmployees()
{
   using(var oDAL = new DAL())
   {
      //You're not manipulating the collection, so array is more appropriate.
      return Json(oDAL.employees.ToArray(),JsonRequestBehavior.AllowGet);
   }
}

Now, do you have a connection string named "TestConnectionString" in your web.config?
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

QuestionAdvise needed to start an open sourced web project Pin
Member 1253861822-May-16 1:12
Member 1253861822-May-16 1:12 
AnswerRe: Advise needed to start an open sourced web project Pin
Nathan Minier23-May-16 1:40
professionalNathan Minier23-May-16 1:40 
QuestionHelp with SQLSTATE[HY000] Please Pin
Jassim Rahma18-May-16 2:42
Jassim Rahma18-May-16 2:42 
AnswerRe: Help with SQLSTATE[HY000] Please Pin
Richard Deeming18-May-16 5:12
mveRichard Deeming18-May-16 5:12 
GeneralRe: Help with SQLSTATE[HY000] Please Pin
Jassim Rahma18-May-16 7:35
Jassim Rahma18-May-16 7:35 
QuestionProblem installing curl for Apache and PHP (Required to use moodle) Pin
adkPrasanna16-May-16 22:41
adkPrasanna16-May-16 22:41 
SuggestionRe: Problem installing curl for Apache and PHP (Required to use moodle) Pin
Richard Deeming17-May-16 1:24
mveRichard Deeming17-May-16 1:24 
AnswerRe: Problem installing curl for Apache and PHP (Required to use moodle) Pin
Richard MacCutchan17-May-16 2:56
mveRichard MacCutchan17-May-16 2:56 
GeneralRe: Problem installing curl for Apache and PHP (Required to use moodle) Pin
adkPrasanna17-May-16 6:08
adkPrasanna17-May-16 6:08 
QuestionTab Control Pin
Ali Al Omairi(Abu AlHassan)16-May-16 21:36
professionalAli Al Omairi(Abu AlHassan)16-May-16 21:36 
AnswerRe: Tab Control Pin
Richard Deeming17-May-16 1:23
mveRichard Deeming17-May-16 1:23 
GeneralRe: Tab Control Pin
Ali Al Omairi(Abu AlHassan)17-May-16 5:23
professionalAli Al Omairi(Abu AlHassan)17-May-16 5:23 
GeneralRe: Tab Control Pin
Richard Deeming17-May-16 5:39
mveRichard Deeming17-May-16 5:39 
GeneralRe: Tab Control Pin
Ali Al Omairi(Abu AlHassan)17-May-16 6:17
professionalAli Al Omairi(Abu AlHassan)17-May-16 6:17 
GeneralRe: Tab Control Pin
Richard Deeming17-May-16 6:52
mveRichard Deeming17-May-16 6:52 
Questionfacebook sharing Pin
Priyanka Kolambe16-May-16 21:01
Priyanka Kolambe16-May-16 21:01 
Questionglassfish alternatedocroot error 404 Pin
V.12-May-16 23:28
professionalV.12-May-16 23:28 

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.