Questions tagged as 'asp.net-mvc'

1
answer

Textarea unicode problem in IE8 and MVC2

I'm having trouble in a textarea field. I have a field textarea the client type in this field inserts ç ã àèìáéí, in the perfect textarea, in js it is also ok, but when I retrieve in the controller the textarea field, This only happens with...
asked by 21.11.2014 / 12:24
2
answers

how to edit aspnetuserroles using a different user table

I made a table of users, however I use helper to insert the same user in aspnetuser also, so I save a user I create a permission in both, how do I edit the permission of that? public async Task<ActionResult> Edit([Bind(Inc...
asked by 29.10.2018 / 14:04
1
answer

How to get enum string in an ASP.MVC grid

I have the following enum: public enum RegiaoEnum { CENTRO = 1, NORTE = 2, SUL = 3, SUDESTE = 4, CENTROOESTE = 5 } And the following View: @using MeuDominio.Enums; <div class="animate"> <table ng-table="vm....
asked by 08.06.2018 / 15:24
1
answer

Error trying to update data in Asp.Net application MVC - db.Entry (ladA) .State = EntityState.Modified

I'm having problems at the time of editing, more specifically in the line below, db.Entry (ladA) .State = EntityState.Modified; db.SaveChanges (); The update that precedes the above lines usually occurs, where I indicate below....
asked by 10.06.2018 / 01:10
1
answer

Return in the view more than one data list

In my return view (), how can I return two or more lists? These lists are the results of a linq query.     
asked by 18.09.2014 / 19:52
0
answers

Multiple MDI windows in Web, similar to Windows Forms

I want to work with multiple independent windows in the web environment with JavaScript, jQuery, and so on. Similar to using MDI in Windows Forms. I know how to make this environment in Silverlight, but I want to do it with a browser language...
asked by 04.11.2014 / 20:36
1
answer

How do I test methods of HtmlHelper, AjaxHelper, and UrlHelper?

I wrote some extensions to the MVC helpers. The problem is that I do not know how to do to test these methods since I do not have these objects in a test drive. How do I test the methods I've created?     
asked by 27.12.2013 / 23:17
2
answers

WebGrid with RadioButton

I want to select a WebGrid line through a RadioButton and click the Preview button, / em> with the selected line information. How do I pass information from the selected line to controller ? CSHTML: @model IEnumerable<WebA...
asked by 21.01.2017 / 21:50
1
answer

Unity and UnitOfWork

Save Galley, I've created a small project to apply IoC using Unity from MS. First of all I've always used the UnitOfWork concept just instantiated it in my controllers , but now I want to inject them. When I start the web application i...
asked by 31.03.2017 / 21:51
1
answer

Error 500 when downloading an xlm via iframe;

Good afternoon, I have a WEB application with EXTJS with the option to export a report in XML format through a POST via ashx, currently one of the clients that has this application is reporting a problem in the least peculiar. The same is not ab...
asked by 29.03.2017 / 21:24