MVC mutiple select for List property

I'm fairly new to ASP.Net MVC so forgive me for anything that should just be obvious. I have an object that contains a property that is a list. I only dont know how I should implement this in the create. this is the object: public class TeamMember...
more »

2017-08-11 21:08 (3) Answers

Entity Framework - nested entites are null

I have one-to-many relationship, which I designed using this. and I use Code-First approach. i.e.: public class JobData { [Key] public int JobDataId { get; set; } public int JobId { get; set; } ... public virtual ICollection<...
more »

2017-08-11 15:08 (1) Answers

ASP.Net - Issues with Repeater / DataBinding

I'm trying to bind my labelIDs in my application. I cannot get it to work. I'm sure sure if the name needs to match the name in the .cs file? My code in the .aspx file: <asp:Repeater ID="Repeater_weatherReports" runat="server" onitemcommand=...
more »

2017-08-11 14:08 (1) Answers

C# Sort vs JavaScript Sort

I am having following array as input to sort values in descending order: var cars = ["8587009748118224023Po","8587009748118224023PP","8587009748118224023P,","8587009748118224023P$","8587009748118224023P<","8587009748118224023P?"] In C#, I am us...
more »

2017-08-11 07:08 (2) Answers

passing a list to a list<T>

I am working with openxml, and have something that is pulling my hairs up, basicly i am editing a pré existing document, it is a template, the template should mantain the first page and the second, so every section i add(paragraph, table etc..) it s...
more »

2017-08-09 18:08 (1) Answers

How to save run configurations - Visual Studio Mac

I am developing an application on macOS with Visual Studio for Mac, and I can specify a custom run configuration. There seems to be no way to specify a run profile, where all arguments and settings in the custom configuration are saved, inst...
more »

2017-08-09 06:08 (0) Answers

Email Blast HTML Sizing Issues

So I have an email blast that I was building and am fairly new to HTML specific email blasts, I have the images and links working properly but my problem is when viewing the blast on a phone the media query I tried to embed isn't working. I'm using ...
more »

2017-08-08 22:08 (1) Answers

Email error while sending mail from C# code

I am getting the following error The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required How to resolve this? My code: MailMessage mail = new MailMessage(); mail...
more »

2017-08-08 20:08 (1) Answers

Why doesn't my web service return aaData ?

I have written a webservice to perform sorting, search on server side and return data to jquery data table. public void getUsers1(int iDisplayLength, int iDisplayStart, int iSortCol_0, string sSortDir_0, string sSearch) { try ...
more »

2017-08-08 15:08 (0) Answers

Microsoft.SqlServer.Types in ASP NET Core

I'm trying to get the nuget package Microsoft.SqlServer.Types to work in ASP Core targeting full framework 461. I need to use the types SqlGeography and SqlHierarchyId. But when I run my test I get following error 'Unable to load DLL SqlServerSpatial...
more »

2017-08-08 10:08 (0) Answers

Attribute to apply to non-OK responses

If I have controller GET methods, such as: [HttpGet] [Route("accountrecv({accountid})/promisepay", Name = "GetPromisePay")] public HttpResponseMessage GetPromisePay(int accountid) { var query = Request.RequestUri.Query; ...
more »

2017-08-07 18:08 (2) Answers

Regex for comma delimited list with line breaks

The format I would like to allow in my text boxes are comma delimited lists followed by a line break in between the comma delimited lists. Here is an example of what I want from the user: 1,2,3 1,2,4 1,2,5 1,2,6 So far I have limited the user usin...
more »

2017-08-06 17:08 (1) Answers