Data dodania Pytanie
2017-06-05 16:06 Remove redundant spaces when render inside a <p> tag »
I'd like to render a paragraph without redundant spaces. For example: <p>There are cars, dogs, computers and houses!</p> I have written...
(2) odpowiedzi
2017-06-04 22:06 Returning a view from a method by calling its method »
I have a method in a controller named AspNetAssessment_QuestionController public ActionResult Excel_Data(HttpPostedFileBase excelfile) { if ( exc...
(2) odpowiedzi
2017-06-04 18:06 How to get specific fields to be shown in the search results? »
I'm using ezSearch package installed into Umbraco 7.6. What I am trying to do is to get specific fields to be always shown in the search result under ...
(1) odpowiedzi
2017-06-04 01:06 asp.net MVC - Is there a way to set a TimeSpan's max range in it's editor in a view? »
I want to set a max TimeSpan range so that only 8AM - 8PM can be selected. I'm using razor, so my html looks like this: @Html.EditorFor(model =&gt...
(1) odpowiedzi
2017-06-03 16:06 Create drop down list asp.net core »
I have two view models: public class PersonViewModel { public int Id { get; set; } public string FirstName { get; set; } public string La...
(1) odpowiedzi
2017-06-03 15:06 How can I get my javascript work in an asp.net cshtml file? »
I have a html input for uploading a picture to my ftp, and I want my JS the detect changes on my button. My cshtml is: @using (Html.BeginForm("...
(1) odpowiedzi
2017-06-03 08:06 Date range filter crystal report in MVC 5 razor »
I am doing a website and a option for taking report. And a trail I have retrieve all the data from a table called booking and given a link to download...
(0) odpowiedzi
2017-06-02 19:06 Displaying decimal values retrieved from Sql Server Database with thousands seperator on an Asp.net/Mvc Razor view »
I am working on an ASP.NET/MVC application and I fall into this issue. I am using decimal data type to store my data in the Microsoft SQL Server Datab...
(2) odpowiedzi
2017-06-02 17:06 ASP.NET MVC 5: Make a select required based on the selected option of another select »
I have 2 selects generated (TipoVinculo and CboId) and I need the select CboId to be required if the selected option of the TipoVinculo is not "Estagi...
(1) odpowiedzi
2017-06-02 15:06 Creating a web interface for a database using asp.net mvc 5 »
I'm working on an online store web project. Currently, I'm trying to display the content from a database table on a web page. The table looks like th...
(1) odpowiedzi
2017-06-01 21:06 Html.Raw() in combination with Razor? »
I am trying to add a <span> to my view when my session variable is not null. The value of Session["error"] has the right value (I checked), but ...
(1) odpowiedzi
2017-06-01 17:06 My PartialView is causing my application to breakdown everytime »
I'm trying to load my partial view with some data from database, but I'm getting following issue when I run the application: Child actions are no...
(1) odpowiedzi
2017-06-01 11:06 2sxc | Add second filter by entity dropdown to template app »
I am trying to add another filter to the FAQ Categories>Questions w/ Filter App and have bascially duplicated the working code for the first filter bu...
(1) odpowiedzi
2017-05-31 16:05 Child actions are not allowed to perform redirect actions. (Using PartialViews) »
I'm trying to load my partial view with some data from database, but I'm getting following issue when I run the application: Child actions are no...
(4) odpowiedzi
2017-05-31 10:05 Call JavaScript function from ASP.NET Razor »
I am writing Razor code in a view, and need to call a JavaScript function with the JSON that is rendered by the Razor code: // JavaScript function fu...
(2) odpowiedzi
2017-05-31 08:05 Need to double-click on the checkbox to check »
I have problem, my code does not accept one cliques. It is necessary to click twice to put a tick. If you click on the checkbox once, the tick does no...
(0) odpowiedzi
2017-05-30 21:05 Pass data from view to controller to template view to partial view? »
So I have a bit of a confusing situation that may just require some serious reorganization of my code, but I'll do my best to explain and if any furth...
(0) odpowiedzi
2017-05-30 20:05 Stored procedure in ASP.NET MVC For Each loop »
I'm trying to work in my index view of one model, let's call it Table1. In Table1 there is an ID that links to another table/model, Table2. I want to ...
(2) odpowiedzi
2017-05-30 15:05 How to pass a strongly typed model and a list of models to a view simultaneously »
My end goal is to pass a strongly typed model (to populate a drop-down menu) and a list of models (based on a search query) to a view simultaneously f...
(2) odpowiedzi
2017-05-29 19:05 html.Partial throwing exception with custom virtualpathprovider »
I am trying to load partial razor views from a folder on a share (outside my application). I am using an implementation of virtualpathprovider and Vir...
(0) odpowiedzi
2017-05-29 19:05 Call another Model on page that already contains a model »
I'm trying to call a diferent model on page that already contains a model, i try to use RenderAction but i dont see some examples how to do that, my p...
(0) odpowiedzi
2017-05-29 10:05 Keeping Selected Check Boxes Through Paging in IPagedList<> »
What is the best practice method for keeping selected check box values across pagination? I'm using PagedList<> but when I select an item on page o...
(1) odpowiedzi
2017-05-28 20:05 HTML select change value based on Database entry with vbhtml »
i want to edit some Data in a HTML select Element: <select id="Photoshop" name="Photoshop"> <option selected value= 0> &l...
(1) odpowiedzi
2017-05-28 12:05 Is it possible to enable some static checking for tag helpers? »
For example I can write this code in default mvc template <a asp-area="" asp-route-returnUrlFoo="foo" asp-controller="Account" asp-action="Reg...
(1) odpowiedzi
2017-05-28 11:05 cant pass a value from dropdownlistfor to controller »
here is my GET controller. public ActionResult UppgiftsSida2(int? idet) { Uppgifter uppgiften; if (idet.HasValue) { ...
(0) odpowiedzi
2017-05-27 15:05 how do i use Html.Action() method outside the context »
I want to use HtmlHelper.Action method to generate html string outside the context. what is the best possible way? By initializing HtmlHelper instance...
(1) odpowiedzi
2017-05-27 12:05 How to read value of selected item of drop down in Razor cshtml webmatrix »
@ { var db = Database.Open("InventoryDB-D"); var listAgent = "SELECT catID,catName FROM InvCategoryTBLD"; List < SelectListItem ...
(0) odpowiedzi
2017-05-27 08:05 How to access data from @Html.Raw object in jquery »
I'm accessing ViewBag data using JQuery inside my view. it works fine like below. var theData = '@Html.Raw(Json.Encode(ViewBag.DealDetails))'; conso...
(2) odpowiedzi
2017-05-26 14:05 Cannot accurately parse this JSON in script? »
var var1 = JSON.parse('[{"ItemId":1, "ItemName":"item 1\"", "Unit":"Nos","Remarks":null, "ConsumedQuantity":1.00}, {"ItemId":1253, "ItemName":...
(1) odpowiedzi
2017-05-26 08:05 Text Area row and column size inconsistency in Chrome and Firefox »
I have been using razor to generate two text areas, @Html.TextAreaFor(model => model.Description, new { autocomplete = "off", @cols = 25, @rows = ...
(2) odpowiedzi
2017-05-26 03:05 Data not restored when return viewmodel to view on validation error asp.net mvc 5 »
I'm trying to figure out why my view is not restoring the data to its original state after my form has been submitted and I'm returning the relevant V...
(1) odpowiedzi
2017-05-25 14:05 How to throw an exception if something wrong with tagHelper in asp.net core mvc »
TagHelpers is a nice thing, but they are absolutely silent an it's hard to identify that something goes wrong with them. For example if there is a typ...
(0) odpowiedzi
2017-05-25 12:05 FastReport Net - How to register a data source? »
Fragment from the code: WebReport webReport = new WebReport(); // создаем объект webReport.Report.Load(this.Server.MapPath("~/App_...
(0) odpowiedzi
2017-05-25 03:05 creating dynamic views at runtime asp.net mvc »
I'm fairly new to mvc, and have started learning asp.net mvc 5 and django I want to create an application where the user can create a new view at run...
(1) odpowiedzi
2017-05-24 21:05 Razor View error - Cannot define a class or member that utilizes dynamic »
Using VS2015, .Net 4.6.2. I have a razor view that generates a visual studio error: Error CS1980 Cannot define a class or member that utilizes 'dy...
(0) odpowiedzi