Data dodania Pytanie
2017-04-22 22:04 ASP.Net MVC Core 1.0, how avoid reencoding characters from inside a partial view »
characters from inside a view are misencoded by the razor renderer. for instance: MyPartial.cshtml: á á á MyView.cshtml: á á á @Html.Partial(...
(0) odpowiedzi
2017-04-21 23:04 How to have one button do both "enable" and "disable" in ASP.net MVC »
I am new to ASP.Net MVC, and still trying to wrap my head around the controller and passing data to the view and back. Here is my question. I have a ...
(0) odpowiedzi
2017-04-21 21:04 pass data from one controller action to another controller action in ASP.Net MVC 5 »
I need to pass data from one controller action to another. I do not want to use a. Session b. TempData Logic Below code is about the forget pass...
(1) odpowiedzi
2017-04-21 10:04 How to pass object as parameter in Web Api »
I want to pass object as parameter in my web api GET and POST method. My code is, [HttpGet] [Route("mytest/list/{model}")] public IHttpAc...
(1) odpowiedzi
2017-04-20 17:04 Microsft Owin Facebook authentication is not working in MVC application »
I am working in Asp.Net MVC appplication. I am using the default visual studio project template. Google authentication is working fine but facebook do...
(2) odpowiedzi
2017-04-20 13:04 How to have SignalR in my separate Api and mvc client project? »
I'm trying to use SignalR in my client project. What I trying to do is when a method in my api executes , I want to show notification in my client sid...
(1) odpowiedzi
2017-04-20 12:04 Update List in ViewModel with Ajax ASP .NET MVC »
I have a List (List) of Model objects which is presented in a view. I would like to add to that list without refreshing the page - therefore i thought...
(3) odpowiedzi
2017-04-20 09:04 JavaScript Function is run twice? »
I'm a little bit confused. I have a checkbox that a user can click which determines whether a Private Phone number on my page should be visible to al...
(3) odpowiedzi
2017-04-20 08:04 how to add section Scripts to asp.net mvc Razor View without layout page »
My mvc view layout is null. how can i add script inside view. @{ Layout = null; } @section Scripts{ <script type="text/javascript"> $(...
(3) odpowiedzi
2017-04-19 17:04 Select RadioButton based on database value »
Working on MVC 5 app. I have a table with a bunch of columns. One column contains a radio button list of items. Since this is an "edit" view I need ...
(1) odpowiedzi
2017-04-18 22:04 Create a Dynamic List using Entity Framework in MVC Razor »
I would like to make a list populate with vehicle makes using a stored procedure and Entity Framework but when it I get the following error: The mode...
(1) odpowiedzi
2017-04-18 16:04 Razor rendering in jsx »
I'm trying to have a Navbar fixed in my MVC web app. Is there a way I can have something like this in my _Layout.cshtml ? Just looking to take advanta...
(0) odpowiedzi
2017-04-18 14:04 Page loading takes forever »
I have a simple method: public async Task<List<Steam>> Get() { ObjectResult result = new Models.ObjectResult(); using (HttpClient...
(2) odpowiedzi
2017-04-18 14:04 Calling a Web API From a .NET Client (C#) »
I am trying to read a response XML from a service to a class to use it. if i use this URL https://btsvcs.college.edu/HR/Employee/ID/NAGWA_N@COLLEGE.ED...
(3) odpowiedzi
2017-04-18 10:04 Is there something like "RewriteToAction"? »
Knowing RedirectToAction, I was looking for something similar to keep the URL stable for the user and still pass responsibility from one action to ano...
(1) odpowiedzi
2017-04-18 08:04 Calling href with Angular to open modal »
Context I´m working in this Tutorial, is about CRUD with DataTable, but difference I´m using Asp.Net WebApi with Angular I´m into step 9, where t...
(1) odpowiedzi
2017-04-17 16:04 Trouble getting post variables from row-based elements »
I am working on a "Survey" application in MVC 5. Basically it's an application to support surveys for users to fill out. The user can also go back at ...
(1) odpowiedzi
2017-04-17 09:04 Why razor is rounding to a decimal type to 2 decimal places automatically? »
This is the field I have in my View Model: public decimal MyValue { get; set; } Here is how I show the value in a View: @Html.EditorFor(model =&gt...
(2) odpowiedzi
2017-04-16 22:04 Multiple B2C policies for securing different endpoints »
In this post there is a discussion of multiple policies in B2C to secure different endpoints, thereby forcing someone to login again for more sensitiv...
(0) odpowiedzi
2017-04-16 22:04 Entity Framework 6 error with SQL Server 2012 throws EntitySqlException »
I'm developing an intranet app with asp.net mvc 5 with razor syntax and Entity Framework 6, but when I run the app, an EntitySqlException occurs. Whe...
(1) odpowiedzi
2017-04-16 16:04 Form POST parameters wrong generated after return view »
So I have this CSHTML: @using (Html.BeginForm("DeleteProduct", "Shop", FormMethod.Post)) { @Html.Hidden("productId", product.ProductId); @Htm...
(2) odpowiedzi
2017-04-16 11:04 Not to scaffolding with Application Insights packages when creating a new Web projects in Visual Studio 2015 »
When creating a new Web project (WCF, MVC, Web API), Visual Studio always introduces ApplicationInsights packages which I don't use. I have to remove ...
(1) odpowiedzi
2017-04-16 06:04 Read the file name using tag <input type = "file" > while uploading and rename it mvc + angularjs »
I want to read the file name while uploading and rename it,save it to a path. For uploading the file I am using an upload image placed in a table. I a...
(1) odpowiedzi
2017-04-16 01:04 Why isn't my TextBoxFor displaying currency values correctly? »
I have the following TextBoxFor on an MVC form: <div class="col-xs-3"> @Html.TextBoxFor(m => m.SalesSubTotal, null, new { @class = "form-...
(2) odpowiedzi
2017-04-15 21:04 default select option as blank mvc razor »
I want null option selected displayed as --Select-- by default in my dropDown. I'm trying to do it like this <select class="form-control" asp-for=...
(1) odpowiedzi
2017-04-15 15:04 ASP.NET MVC Exercise-displays customer orders »
I use your site for first time and will be very thankful if someone helps me with my exercise for ASP.NET MVC. Please someone explain to me step by st...
(0) odpowiedzi
2017-04-15 14:04 Run code after returning data »
in have a web api like this : public async Task<IHttpActionResult> PostTest(Model model) { db.UserOrders.Add(model); await db.SaveChang...
(0) odpowiedzi
2017-04-15 10:04 Where to use db context for viewmodels in MVC »
The Controller should not directly use the DB context, and the respository should not know about view models (representation). The underlying issue ...
(2) odpowiedzi
2017-04-15 01:04 How to enable a file download via anchor in MVC »
I have the following: <a class="download" href='/doc.txt' download>Download txt</a> And this file is in the root of my web project. ...
(1) odpowiedzi
2017-04-14 23:04 How to create Asp.net mvc secure login page authentication? »
Hi I have an important task while being completely lost. My team is building an external website and have already purchased the certificate. I am lo...
(2) odpowiedzi
2017-04-14 19:04 Can I tell MVC to separate pascal-cased properties in to words automatically? »
I often have C# code like [DisplayName("Number of Questions")] public int NumberOfQuestions { get; set; } Where I use the DisplayName prop...
(0) odpowiedzi
2017-04-14 19:04 Pass html datalist value to Html.Action »
I'm creating an HTML form that lists line items from one organization that need to be mapped to another on. My idea was to take the id of the selected...
(0) odpowiedzi
2017-04-14 18:04 How to create a Countdown (javascript ?) in Razor? »
I am trying to create a auction site ASP.net MVC using on Razor, But I want to create a countdown on my list of bid items. How do I put a countdown in...
(1) odpowiedzi
2017-04-14 16:04 How to serve images from another server in mvc? »
I have the image path served from a database. The path is \\server1.mysite.com/images/banana.jpg How would I display it on my mvc website hosted at h...
(0) odpowiedzi
2017-04-14 15:04 How to make a List variable constant in ASP.NET »
In this code, I am trying to check what rooms are available at the time that has been entered by the user. To test whether the room is free, I change ...
(2) odpowiedzi