Data dodania Pytanie
2017-03-18 15:03 C# codes doesn't work in host »
I open the website(The website created with MVC). I get compilation error. How can i fix this error? ...
(1) odpowiedzi
2017-03-18 13:03 Getting data on from view and render it in partial view of Bootstrap - Modal »
There is a Grid with data which is loaded in View on selecting Edit button of a record in a row i was suppose to load a Bootstrap - Modal with selecte...
(0) odpowiedzi
2017-03-18 04:03 How to POST and Catch a view model with a parent object and list of child objects in EF MVC? »
I want to add a family which has many members and can have many houses. I am trying to make a form and submit the object family with collection of oth...
(1) odpowiedzi
2017-03-17 20:03 collect variables and shorten code »
I am making a project, where I have to compare to rooms to each other and print if there is a change in a room. I made this piece of code there is w...
(2) odpowiedzi
2017-03-17 17:03 How to mix razor and javascript in single line »
This works @Html.Action("LiveBlogHeader", "Blog", new { liveMatchItemId = "12" }) I want to set hidden field's value in it. Something like this @H...
(0) odpowiedzi
2017-03-17 13:03 if statement always print text »
I need to print all the code under my question if there is data in @store.GuaranteePolicy print all the <tr>. If there is no data, then print n...
(1) odpowiedzi
2017-03-16 20:03 set Context.User.identity:name to JavaScript variable »
I need to get the value of the user @Html.Encode(Context.User.Identity.Name) in a JS variable and set this value to an input with id= idAccion in orde...
(1) odpowiedzi
2017-03-16 20:03 Unable to Update List Collection from View to Controller Method »
I am trying to catch a list of Bullet_Points from view to Edit Method. However i am unable to save the collection items to database. @for (int i = 0...
(1) odpowiedzi
2017-03-16 01:03 Razor IF/ELSE show HTML table »
I have two different tables that i'd like to display if a conditional token from my web-application is true otherwise show a different table. I'm not ...
(1) odpowiedzi
2017-03-15 17:03 Asp.net Placeholder equivalent in MVC 5 (Razor) »
I'm looking for the Asp.net placeholder equivalent in MVC5 using Razor. My main problem is that I have too much logic in views/partial views, so I ne...
(1) odpowiedzi
2017-03-15 16:03 How to reset drop down list back to default when there is nothing in textbox? »
I have a textbox #Email and I have two dropped down list menus that is #Carriers and #Phones. When the Email is entered I want to enable only Carriers...
(2) odpowiedzi
2017-03-15 15:03 MVC Call Javascript func from Razor code »
I can't call a func I wrote in the script from the Razor code where I pass the parameters to the controller. Anyone have any Idea ? MyCode: <scr...
(1) odpowiedzi
2017-03-14 19:03 ASP.net Razor MVC5 insert @{} inside javascript within my cshtml page »
new to razor so here is my question. I am wanting to add some dynamic code to my JavaScript created button: $('<button ' + '"class="btn btn-d...
(1) odpowiedzi
2017-03-14 16:03 Generate a list of contacts from a table based on a Bool value »
I am currently developing an asp.NET MVC web application as a front end to a database. I have a MySQL database, one of the tables is contact informati...
(3) odpowiedzi
2017-03-14 10:03 syntax in string and razor »
When I make this piece of code I get a red line between the bracket and payment: > com") payment UPDATE The code is working with the suggestions ...
(1) odpowiedzi
2017-03-13 21:03 How do you use RenderSection based on search results in Razor? »
I have a section in my view: @section SearchResults{ markup.... } In the _Layout I have: @RenderSection{"SearchResults", required:false} What I ...
(0) odpowiedzi
2017-03-13 20:03 Confused on passing parameter to MVC Partial View? »
I inherited an MVC site and was asked to combine two pages into one. Since both Views have their own View Model, I thought instead of pushing the two ...
(1) odpowiedzi
2017-03-13 12:03 Two identical razor views behave totally differently »
I have an ASP.NET MVC project. There is a home page, and an About Us page. To find out what went wrong, I copied everything in the home page into the ...
(1) odpowiedzi
2017-03-12 13:03 Can I override tilde-slash in Razor v2? »
Razor view engine supports tilde-slash paths out of the box like this: <script src="~/js/myscript.js" /> <!-- cool trick by the way!! -->...
(0) odpowiedzi
2017-03-12 06:03 How do Delete view and action get the model id? »
In a standard MVC app, scaffolding controller with views gives a Delete view with this Razor form: @using (Html.BeginForm()) { @Html.AntiForgeryT...
(2) odpowiedzi
2017-03-11 17:03 How to test asp.net core 1.1 mvc actions returing razor views using microsoft.aspnetcore.testhost »
Using Microsoft.aspnetcore.testhost I am unable to make http get to controller action returning razor view. I need to test the response has specific s...
(0) odpowiedzi
2017-03-11 16:03 Visual Studio 2015 MVC razor HTMLHelper intellisense doesn't work for upgraded project »
I have been using Visual Studio 2015 with no problems for over a year now. One of the MVC.net projects that was originally developed on VS 2010 and u...
(1) odpowiedzi
2017-03-11 12:03 An error with displaying multi-level menu »
I'm trying a multi-level menu in mvc4. When I run the code, main children of my menu and also their main children are displayed correctly but at third...
(0) odpowiedzi
2017-03-10 17:03 Display a List of Tuples in a C# cshtml View »
I have tried a few ways to get this Tuple list to display in my cshtml view as uploadModel.ErrorsList but have had no luck, this only displays the typ...
(1) odpowiedzi
2017-03-10 09:03 TextBoxFor default value and keep edited value after validation fail »
Razor code like: @Html.TextBoxFor(Model => Model.Name, new { @Value = student.t_Name }) and I using .NET MVC's model validation in Controller, ...
(2) odpowiedzi
2017-03-10 02:03 Using javascript/jquery from within razor code »
It seems simple but i cant figure out how to call javascript function from within razor code. Problem: I need to get the position of a column in my t...
(2) odpowiedzi
2017-03-09 22:03 Kendo UI EditorFor date blank in Chrome 56.0.2924 »
I'm using Kendo with asp.net mvc @Html.EditorFor(model => model.shipmentDate) It shows blank value in Chrome v56 and that wasn't the case with C...
(0) odpowiedzi
2017-03-09 18:03 ASP.NET MVC rendering sections for dynamically driven content (Widgets) »
I am receiving the following error in ASP.NET MVC. "the following sections have been defined but have not been rendered for the layout page" - Now I k...
(1) odpowiedzi
2017-03-09 14:03 Expected a "{" but found a ")". Block statements must be enclosed in "{" and "}" in Asp.Net MVC 5 »
ContestM ->Model's property public SelectList EmployeeList { get; set; } public int EmployeeId { get; set; } Controller action On button click fro...
(1) odpowiedzi
2017-03-09 11:03 ASP MVC Workflow tool form logic and permissions »
I'm creating a workflow tool that will be used on our company intranet. Users are authenticated using Windows Authentication and I've set up a custom ...
(4) odpowiedzi
2017-03-08 17:03 ASP.NET MVC 4.5 Map Partial View to Main View on Form submit »
Hello Mighty Stackoverflowers, I'm currently working on an ASP.NET MVC 4.5 application. I need to map the input values from my partial view to my mai...
(2) odpowiedzi
2017-03-08 09:03 razor partial view and ajax not refreshing »
it's my very first post here so please be tolerant, I'm struggling with @Ajax.Something calls, it's almost working correctly. I get the proper result...
(2) odpowiedzi
2017-03-08 02:03 How to control DisplayNameFor result, when using FluentAPI »
Working on an ASP.NET MVC 5 app. Using Fluent API to define model maps. I want to change the column name appearance so that if I do a DisplayFor it ap...
(1) odpowiedzi
2017-03-07 08:03 Call generic method with type from javascript using ajax »
Can't seem to find any example on how to call generic method with type from javascript using ajax public virtual JsonResult GetData<T>(Some...
(0) odpowiedzi
2017-03-07 02:03 Display two model in a View? »
I have two model in the Controller public ActionResult Search(int? id) { var yearSummary = from ti in db.TrainingRecordDBSet ...
(1) odpowiedzi