Click here to Skip to main content
15,887,860 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to dynamically add roles to authorize attribute for controller and action in ASP.Net MVC Pin
Eddy Vluggen5-Jan-17 4:05
professionalEddy Vluggen5-Jan-17 4:05 
Questionasp.net_add two entries to the same selected row cell of table from different pages. Pin
Member 129357304-Jan-17 23:44
Member 129357304-Jan-17 23:44 
AnswerRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Afzaal Ahmad Zeeshan5-Jan-17 7:45
professionalAfzaal Ahmad Zeeshan5-Jan-17 7:45 
GeneralRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Member 129357305-Jan-17 22:01
Member 129357305-Jan-17 22:01 
AnswerRe: asp.net_add two entries to the same selected row cell of table from different pages. Pin
Afzaal Ahmad Zeeshan5-Jan-17 22:10
professionalAfzaal Ahmad Zeeshan5-Jan-17 22:10 
QuestionFew questions regarding MCSD and MCPD exam for dotnet Pin
Tridip Bhattacharjee4-Jan-17 22:21
professionalTridip Bhattacharjee4-Jan-17 22:21 
AnswerRe: Few questions regarding MCSD and MCPD exam for dotnet Pin
Richard MacCutchan5-Jan-17 1:00
mveRichard MacCutchan5-Jan-17 1:00 
QuestionPassing Model info in MVC Pin
eejaynic2-Jan-17 8:27
eejaynic2-Jan-17 8:27 
Take a peek! This is my controller:

public ActionResult SaveInfo(GetOrderDetail_Result items) //This method will call a stored proc to pass parameters
{
var hold = items.Master_OrderNum;
//cb.SaveAgentViewInfo(master_OrderNum);

return View(Index());
}

When I pass the model to the Action method none of the properties are initialized from the view page.
The master_OrderNumnumber comes through as a null.

I'm calling this in my View:
document.location = '@Url.Action("SaveInfo", "ControllerName", new { Model })';

I actually use a foreach(var item in Model) to print certain things to divs on the cshtml page and all that works perfectly. But after passing that same model everything is blank inside in the controller. I don't know what side it should be initialized on. I'm new to MVC!

Help!!
AnswerRe: Passing Model info in MVC Pin
eejaynic2-Jan-17 13:42
eejaynic2-Jan-17 13:42 
QuestionCreate and Use an ASP.NET Core Website Template Pin
xiecsuk1-Jan-17 23:03
xiecsuk1-Jan-17 23:03 
AnswerRe: Create and Use an ASP.NET Core Website Template Pin
Afzaal Ahmad Zeeshan2-Jan-17 21:53
professionalAfzaal Ahmad Zeeshan2-Jan-17 21:53 
GeneralRe: Create and Use an ASP.NET Core Website Template Pin
xiecsuk2-Jan-17 22:29
xiecsuk2-Jan-17 22:29 
Questiontargeting .js files into different directories using typescript and tsconfig file - need really some help Pin
indian14331-Dec-16 5:51
indian14331-Dec-16 5:51 
QuestionCalling get method using typescript - need really some help Pin
indian14331-Dec-16 5:40
indian14331-Dec-16 5:40 
QuestionHow Can I Expand the Field Name Column in an MVC Details view? Pin
Member 1282452923-Dec-16 14:41
Member 1282452923-Dec-16 14:41 
AnswerRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Afzaal Ahmad Zeeshan24-Dec-16 1:31
professionalAfzaal Ahmad Zeeshan24-Dec-16 1:31 
GeneralRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Member 1282452924-Dec-16 6:04
Member 1282452924-Dec-16 6:04 
GeneralRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Afzaal Ahmad Zeeshan24-Dec-16 7:29
professionalAfzaal Ahmad Zeeshan24-Dec-16 7:29 
AnswerRe: How Can I Expand the Field Name Column in an MVC Details view? Pin
Richard Deeming10-Jan-17 4:06
mveRichard Deeming10-Jan-17 4:06 
QuestionASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 3:00
pmcm22-Dec-16 3:00 
AnswerRe: ASP Button not displaying on Windows 2012 Server Pin
Afzaal Ahmad Zeeshan22-Dec-16 3:57
professionalAfzaal Ahmad Zeeshan22-Dec-16 3:57 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 4:02
pmcm22-Dec-16 4:02 
AnswerRe: ASP Button not displaying on Windows 2012 Server Pin
ZurdoDev22-Dec-16 5:15
professionalZurdoDev22-Dec-16 5:15 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
pmcm22-Dec-16 23:47
pmcm22-Dec-16 23:47 
GeneralRe: ASP Button not displaying on Windows 2012 Server Pin
ZurdoDev23-Dec-16 2:12
professionalZurdoDev23-Dec-16 2:12 

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.