Click here to Skip to main content
15,867,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 21:47
professionalHardevsinh Mori16-Sep-17 21:47 
GeneralRe: SQLTransaction Pin
OriginalGriff16-Sep-17 21:49
mveOriginalGriff16-Sep-17 21:49 
GeneralRe: SQLTransaction Pin
Hardevsinh Mori16-Sep-17 21:51
professionalHardevsinh Mori16-Sep-17 21:51 
GeneralRe: SQLTransaction Pin
OriginalGriff16-Sep-17 21:58
mveOriginalGriff16-Sep-17 21:58 
Questionc# project Pin
Member 1341347616-Sep-17 11:26
Member 1341347616-Sep-17 11:26 
AnswerRe: c# project Pin
Afzaal Ahmad Zeeshan16-Sep-17 11:57
professionalAfzaal Ahmad Zeeshan16-Sep-17 11:57 
AnswerRe: c# project Pin
Mycroft Holmes16-Sep-17 20:50
professionalMycroft Holmes16-Sep-17 20:50 
QuestionRefresh Partial View Pin
sunsher15-Sep-17 22:57
sunsher15-Sep-17 22:57 
Hi,

I am developing a Web Application with Asp.NET MVC5. As I dont have much experience, I am stuck with a functionality using JQuery and Partial View.

I have a Side Menu as a partial view in a page. This partial view contains a DropdownList which is populated from model, and it works fine. However, I want to display a list of items from the db when the dropdown is selected, based on the selection, which is not working.

Partial View (_UserPartialView)
$('#dropdown').change(function(){
var item = $(this).val(); 
$.get("/Controller/GetItems/" +  item, function(data)
{
   ('#target').html(data); 
}); 
 
Controller 
 
public ActionResult (int id)
{
   var test = db.Users.Where(e => e.cId = id);
 
   return PartialView(" _UserPartialView", test);
} 

Please help.

Thanks
AnswerRe: Refresh Partial View Pin
Richard MacCutchan15-Sep-17 23:45
mveRichard MacCutchan15-Sep-17 23:45 
Questionhow add video support in my application? Pin
Le@rner15-Sep-17 19:19
Le@rner15-Sep-17 19:19 
AnswerRe: how add video support in my application? Pin
Richard MacCutchan15-Sep-17 22:05
mveRichard MacCutchan15-Sep-17 22:05 
AnswerRe: how add video support in my application? Pin
jschell18-Sep-17 12:39
jschell18-Sep-17 12:39 
QuestionC# Dropdown to populate Relationship Tables Pin
Member 1341198315-Sep-17 4:56
Member 1341198315-Sep-17 4:56 
AnswerRe: C# Dropdown to populate Relationship Tables Pin
OriginalGriff15-Sep-17 5:28
mveOriginalGriff15-Sep-17 5:28 
Questionhow to encrypting and decryption pixel of image in C# Pin
WI54M13-Sep-17 23:18
WI54M13-Sep-17 23:18 
AnswerRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff13-Sep-17 23:23
mveOriginalGriff13-Sep-17 23:23 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
WI54M13-Sep-17 23:47
WI54M13-Sep-17 23:47 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff14-Sep-17 0:13
mveOriginalGriff14-Sep-17 0:13 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
WI54M14-Sep-17 0:42
WI54M14-Sep-17 0:42 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff14-Sep-17 0:54
mveOriginalGriff14-Sep-17 0:54 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
WI54M14-Sep-17 1:02
WI54M14-Sep-17 1:02 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff14-Sep-17 1:21
mveOriginalGriff14-Sep-17 1:21 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
WI54M14-Sep-17 1:57
WI54M14-Sep-17 1:57 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
OriginalGriff14-Sep-17 2:26
mveOriginalGriff14-Sep-17 2:26 
GeneralRe: how to encrypting and decryption pixel of image in C# Pin
WI54M14-Sep-17 3:35
WI54M14-Sep-17 3: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.