Questions tagged as 'asp.net-mvc'

1
answer

Register data via different View

I'm a beginner in asp net mvc and would like to know how I can register data from an entity through different View from the same Controller Thank you !!     
asked by 10.05.2017 / 22:18
1
answer

Add parameter using PagedList in record detail and page links

Does anyone know how to keep a parameter between the various pages of the PagedList? The situation is this: I used Scope_Identity when creating a row in a table, since I made the Id of the created parameter item to another acti...
asked by 24.04.2017 / 04:36
1
answer

Inheritance Mapping Type per Type Asp.Net

In my project, I have a type of inheritance that I mapped by TPT. Looking at the documents and several examples I can not identify where I'm going wrong, because the mapping seems to be correct, class definitions, everything. Problem: I have...
asked by 26.04.2017 / 17:22
0
answers

PowerPoint.dll (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))

Error description:    Failed to recover factory COM component classes with CLSID   {91493441-5A91-11CF-8700-00AA0060263B} due to the following error:   80010001 The call was rejected by the call. (Exception from HRESULT:   0x80010001 (RPC_E_C...
asked by 28.03.2017 / 13:32
0
answers

Generate a PDF of a Morris Chart

I'm developing an application that generates a report using the Morris graphics ( link ) The charts are working correctly, now I need to generate a PDF of this chart. However, I came across that to do this, when the SVG chart is different....
asked by 20.03.2017 / 20:46
1
answer

Leave the HTML.DropDownList () with the Bootstrap style?

I have DropDownList in my View and despite having class form-control the list does not have the style of Bootstrap . How can I edit how DropDownList builds lists? @Html.DropDownList("countriesDiretorySelect...
asked by 23.03.2017 / 15:18
1
answer

Retrieve IEnumerable values from View [duplicate]

I have a table / model called ItemPriceFactory: public class ItemTabelaPreco { public string Nome { get; set; } public decimal ValorUnitario { get; set; } public int QtdPacote { get; set; } public decimal ValorPacote { get; s...
asked by 27.04.2017 / 14:35
1
answer

Format String after it is converted from HTML

I made a code that turns all HTML into a String, however, by doing so the code is coming like this: <div class=\"page\">\r\n<div class=\"bloco\">\r\n <table id=\"canhoto\">\r\n The characters \ r \ n I can already remove...
asked by 15.03.2017 / 17:48
0
answers

iTextSharp PDF coming in white

Good afternoon guys, I have the following code: public void GerarPDF(long id) { string HTMLemString = RenderizaHtmlComoString("~/Views/item/item.cshtml", id); var regex = new Regex("(\<script(.+?)\</script\>)|(\&l...
asked by 14.03.2017 / 20:51
1
answer

Remove CSS link with Regex

Good morning, when pulling the html from the entire page in string it also brings some reference links: <link href="~/Content/item/item.min.css" rel="stylesheet" /> I've already removed the tags and, but I need to remove this and I'm...
asked by 15.03.2017 / 14:46