Posts by CelzioBR • 41 points
4 posts
-
0
votes1
answer61
viewsA: C# LINQ Join with OR condition?
The Join is missing In that case the structure should be close to that var query = (from ta in ctx.TableA join tb in ctx.TableB on ta.Id equals tb.Id into TJoin from Tables tbs in…
-
2
votes2
answers156
viewsA: What is the correct way to do an Replace in a string-like variable?
I do it this way. I don’t know if it’s the right one, but it works. public static string RemoveCharSpecials(string document) { var charsToRemove = new string[] { "@", ",", ".", ";", "'", "(", ")",…
-
1
votes1
answer37
viewsA: Add Class Dropdownlistfor
In my case I use it as follows. @Html.DropDownListFor(model => model.Department, (IEnumerable<SelectListItem>)ViewBag.Depts, "", htmlAttributes: new { @id = "departmentList", @class =…
-
1
votes5
answers17754
viewsA: How to solve accent problems with ASP.NET MVC?
In my case I modified the encoding of the saved file. I did the next step in VS Menu "File"-> "Advanced Save Options" and I selected "Unicode(UTF-8 with Signature)-Codepage 65001" Using Asp.net…