Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionReturn message to user if file already exists Pin
Hamiltonian1322-May-17 10:59
Hamiltonian1322-May-17 10:59 
AnswerRe: Return message to user if file already exists Pin
F-ES Sitecore22-May-17 22:59
professionalF-ES Sitecore22-May-17 22:59 
GeneralRe: Return message to user if file already exists Pin
Hamiltonian1324-May-17 8:14
Hamiltonian1324-May-17 8:14 
QuestionSingleton Class in Asp.net application Pin
Rafique Abdullah19-May-17 21:54
Rafique Abdullah19-May-17 21:54 
AnswerRe: Singleton Class in Asp.net application Pin
Nathan Minier20-May-17 12:43
professionalNathan Minier20-May-17 12:43 
GeneralRe: Singleton Class in Asp.net application Pin
Rafique Abdullah22-May-17 7:15
Rafique Abdullah22-May-17 7:15 
GeneralRe: Singleton Class in Asp.net application Pin
F-ES Sitecore22-May-17 22:50
professionalF-ES Sitecore22-May-17 22:50 
QuestionHow to populate dropdownlist in the partial view, base upon the selection of another dropdown value in the view, using angular js Pin
Member 1318632317-May-17 20:16
Member 1318632317-May-17 20:16 
I have dropdown list in a partial class. The drop down in the partial class is generated on angularjs. Problem is now I wanted to populates the dropdown in the partial view based upon the selection of the value of the dropdown list, present in the view.
I write the following code but it is not working.

1) The dropdownlist selectedchange event in cshtml file..
$("#ddOrd").change(function () {

if ($("#ddOrd option:selected").text() == "ASK") {
$.ajax({
type: 'POST',
url: '@Url.Action("GetPayment")',
dataType: 'json',
data: { Ord: $("#ddOrd").val() }
});

}

})

2) in the controller class I made the following changes...
public JsonResult GetPayment(string ord)
{
List<payment> customPaymentlist = db.Payment.Where(obj => obj.Name== "ASK").ToList();
ViewBag.Payment = db.Payment.Where(obj => obj.Name == "ASK").ToList();
ViewBag.Payment = customPaymentlist;
return Json(customPaymentlist);
}

3) The Partial View Contains the following code in which I haven't change any thing.. copying it for just reference...


{{type.payment1}}


I haven't use angularjs before so I am not clear the details of it. Now GetPayment function fetching the required record but the problem is that it is not populating the same record in the dropdownlist in the partial view. Please suggest any solution.

modified 18-May-17 2:23am.

QuestionError Pin
Member 1116162516-May-17 20:10
Member 1116162516-May-17 20:10 
AnswerRe: Error Pin
Kornfeld Eliyahu Peter16-May-17 21:27
professionalKornfeld Eliyahu Peter16-May-17 21:27 
AnswerRe: Error Pin
Richard MacCutchan16-May-17 21:36
mveRichard MacCutchan16-May-17 21:36 
AnswerRe: Error Pin
F-ES Sitecore16-May-17 22:11
professionalF-ES Sitecore16-May-17 22:11 
SuggestionRe: Error Pin
Richard Deeming17-May-17 1:24
mveRichard Deeming17-May-17 1:24 
QuestionTelerik version upgradation issue in Asp.net Pin
Member 1058746112-May-17 1:28
Member 1058746112-May-17 1:28 
SuggestionRe: Telerik version upgradation issue in Asp.net Pin
Richard Deeming12-May-17 4:08
mveRichard Deeming12-May-17 4:08 
QuestionGetting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14311-May-17 8:56
indian14311-May-17 8:56 
SuggestionRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
ZurdoDev11-May-17 9:15
professionalZurdoDev11-May-17 9:15 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14311-May-17 11:20
indian14311-May-17 11:20 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
ZurdoDev12-May-17 0:46
professionalZurdoDev12-May-17 0:46 
SuggestionRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming12-May-17 1:19
mveRichard Deeming12-May-17 1:19 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 7:16
indian14317-May-17 7:16 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming17-May-17 7:30
mveRichard Deeming17-May-17 7:30 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 10:39
indian14317-May-17 10:39 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
Richard Deeming17-May-17 11:23
mveRichard Deeming17-May-17 11:23 
GeneralRe: Getting the Excepption ExceptionType Newtonsoft.Json.JsonSerializationException in my Web API Pin
indian14317-May-17 12:14
indian14317-May-17 12:14 

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.