Questions tagged as 'asp.net-mvc'

3
answers

How to create razor dropdownlist in .net mvc via ajax?

I would like to dynamically load my dropdownlist without submitting the page! my project is in .net mvc! architecture @Html.Label("Categoria do Veiculo: ") @Html.DropDownListFor(v => v.CodigoCategoriaVeiculo,Model.TipoModeloEquipamento...
asked by 20.02.2015 / 20:32
1
answer

Controller Edit - Inserting Values

My method responsible for editing is inserting values into the CONSUL_EnciclopediasCONSUL_Promocoes table instead of editing. If I have the options x with id = 1 and y id = 2 within the course a with id = 1 and I originally choose the opt...
asked by 12.09.2014 / 19:49
1
answer

Is there a way in ASP.Net MVC, in controller to access a variable in sessionstorage or localstorage?

I need to get the value of a variable stored in the sessionstorage through a controller where this method is not passed the parameter of this variable. Session / localstorage are administered through javascript. In contrast situations it...
asked by 01.02.2014 / 19:33
2
answers

Error receiving POST in PagSeguro

I have a platform that makes purchases via PagSeguro form. The problem is that I'm only getting the POST in which the StatusTransacao is as "Awaiting Payment", ie in the case of a ticket generated. If the purchase was approved, I do not r...
asked by 09.01.2015 / 13:00
1
answer

User permissions

I do not know how I can be implementing user permissions on my systems and would like to get some north. From my class: public class Loja_Usuarios { public int ID { get; set; } public string Nome { get; set; } public string Logi...
asked by 20.06.2014 / 19:49
1
answer

Create Web Service by reusing code from an already published site. Good practices in Asp.NET MVC

I need to create a web service in JSON reusing the maximum code my site has, but I do not know how to do it, if I should add a solution in my site project etc. I can not abstract the idea, I need to after that access it from a Wind...
asked by 06.06.2014 / 02:13
1
answer

Model with dynamic type properties

I have a select in the database that loads several items and loads everything into one model. The point is that one of the items, depending on how the select is done, is brought up with different type. Ex: The property in the model: public...
asked by 18.06.2014 / 19:18
3
answers

Error generating PDF with RotativaW7

Well, I'm having a problem here to generate a pdf with the data coming from the bank. My system has a student register and its occurrences. What I wanted is that, when detailing the data, I could print these data on the screen (the data of the s...
asked by 05.06.2014 / 23:45
2
answers

Relative path to txt in ASP

Good afternoon, I am generating a file with Asp net the function saved in HD if I put the path, however this file will be saved on a server and I am having difficulty to place the relative path of the location where this file will be saved, I do...
asked by 23.10.2018 / 20:09
2
answers

Slow AJAX Problems in ASP .NET MVC C #

I'm having a slow response problem from my AJAX. I use the following code to search and return a list of results: Javascript function enviaBusca(url) { var resultado = $('#resultados'), mensagem = $('#mensagem'), palavra...
asked by 09.11.2018 / 16:48