Questions tagged as 'asp.net-mvc'

1
answer

Get Ip and HostName of visitors filling in contact form

Good afternoon, gentlemen. I have a web application in asp.net mvc + angularjs that has a contact form. I would like to know what the user ip and hostname of him that is filling this information, I can do this in javascrip or asp.net?     
asked by 07.05.2016 / 22:24
1
answer

Error rendering PartialView in a View

I have a View and inside it I want to render a PartialView . What happens is that the partial is of a different model , but that has a relationship between them. I want to show a partial as if it were index , where I show everyth...
asked by 19.06.2016 / 00:55
1
answer

Error editing ViewModel data

In design I have a ViewModel and inside it my models and everything. What happens is that I'm trying to edit data that is already saved in the database. I can bring the edited data of the view, but when I actually save it, this error is gener...
asked by 22.06.2016 / 05:29
2
answers

Function to call other and popular inputs

In my view I have several functions in which in my current logic, they work like this: I fill in the data previously and I have 4 buttons that I click on and they are doing some accounts. What happens is that I wanted to be able to call all t...
asked by 23.06.2016 / 06:16
1
answer

Join multiple values of type IQueryable

I'm receiving from my View an array of values with the days of the week. Sunday, Monday, etc. I want to compare this array with a string attribute of my database and save it to a variable of type "IQueryable". And go adding the contents of the t...
asked by 18.04.2016 / 12:50
0
answers

Which APSNET 5 authentication files can be excluded if you use only Single Authentication

When you create an ASP.NET 5 MVC 6 project with the Individual User Account authentication form, a standard authentication form is created with with unique authentication (Registration and Login by the site itself), double (Registration and...
asked by 18.04.2016 / 01:20
1
answer

Update, Insert in the Entity Framework Using View?

I'm having an error in my project when trying to give a Update or an Insert via Entity Framework, where I mapped a view of data. defined. I also saw that I could change that, but I could not find where. Does anyone know how...
asked by 10.04.2016 / 08:10
1
answer

Return to View of two tables using HomeViewModel?

I have the following situation, in my Models folder, I have: public class HomeViewModel { public HomeViewModel() { // apenas para garantir que NUNCA seja nulo! Facilica código na view PreviewImages = new List<Gener...
asked by 25.10.2016 / 17:26
0
answers

Refresh all open tabs in the brownser of an aspnet mcv c #

Hello. I'm developing an application and wanted it when a user logged in or logged in to update all the tabs that the application has open in the browser. Example: User John is logged on to tab 1. User Maria duplicates the tab and LogOf...
asked by 28.04.2016 / 20:33
1
answer

Posting a method by clicking a button type = button

I'm making an application where when I click a button I have to send an email. I have my page a input type=Text and a button type="button" that with css is thus -> . I need that when I load that arrow, an email is sent as...
asked by 12.04.2016 / 18:49