Questions tagged as 'c#'

1
answer

.Net Reflector compilation errors

I'm studying C # and am trying to learn a bit of reverse engineering. I have the following error: private void button1_Click(object sender, EventArgs e) { this.Result = true; this.ConfigName = this.textBox1.Text; string sourceFi...
asked by 15.09.2015 / 09:37
1
answer

Delete user session in ASP.NET MVC with [Authorize]

I have a web system developed in ASP.NET MVC 4. One of the features is user management. A CRUD of users. My login method is as follows: [HttpPost] public ActionResult Login(LoginViewModel loginViewModel) { if (_loginSer...
asked by 31.10.2016 / 15:04
1
answer

How to update a DropDownList without refreshing the page

I have a Dropdown of States, and a Cities, and a ZIP field, which is making use of the online API of the mails, when I put a zip, my system checks if the city already exists in the database, and if it has not, it is added. so far so good, the pr...
asked by 19.11.2016 / 03:34
2
answers

C # - Problems reading data from an XML returned from a site

I want to get the location of an external IP and for that I used a site where I simply put the IP that I want and it returns the XML with the information. Example: freegeoip.net/xml/4.2.2.2 that is: freegeoip.net/[tipo]/[ip] For thi...
asked by 18.10.2016 / 14:54
1
answer

Two classes mapping the same table with the Entity Framework

I'm trying to make entity map two classes to the same table this is possible? Scenario: My identity is decoupled (Eduardo Pires' tuto) from my domain and from the presentation layer on the domain layer I have a usuario...
asked by 17.01.2017 / 00:13
1
answer

Disable IIS Caching

I'm having problems with IIS cache (I believe the problem is it) , whenever I make any changes to the database, the changes do not happen on the site, / p> Changes only appear when I turn off and turn on IIS. Attempts I added this comma...
asked by 11.01.2017 / 14:49
1
answer

ASP.NET BeginForm does not apply the route mapping when making the request

I have a route problem (again), I use ASP.NET MVC5, and I have the following route mapped: routes.MapRoute( "Search_route", "Home/Search/{search_input}/{search_input_category}", new { controller = "Home", action =...
asked by 28.08.2017 / 16:06
1
answer

Stack / Stack with priority in C #?

My teacher passed 2 exercises, the first was to create a simple stack ( Stack ) to run unit tests in this class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threa...
asked by 06.09.2017 / 07:05
1
answer

Push Notification Amazon SNS - Message Cut

Hello, I'm using Amazon SNS to do Push shots through C #. On the Android device, the message is cut on a line, and when you click it, the application is redirected directly to the application. But there are other pushs, in the same device,...
asked by 22.09.2016 / 18:49
1
answer

Is there an SmtpClient.Timeout with infinite value?

Is there any way to put SmtpClient.Timeout with the infinite value? If yes, how?     
asked by 28.09.2016 / 16:01