Questions tagged as '.net'

1
answer

How to start in MVC5 ASP.NET?

Hello! About a month or so I started to venture into the C # world and then started studying the .NET Framework. Soon after, I also studied ASP.NET because of the need in my company. Today I use Visual Studio 2013 to create Web Apps with the MVC...
asked by 22.05.2015 / 01:06
1
answer

Manipulating ListView C #

I have a ListView that displays the data on the screen and has multiple rows and columns. For example: Cl1 | Cl2 | Cl3 L1 aa | bb | cc L2 ab | bc | cd L3 ac | bd | ce I would like to know if you have some native...
asked by 03.12.2014 / 21:09
1
answer

Access URL without receiving response

I have a page that performs several tasks. This page is open to system end users, who can access it via the browser. In certain situations I would like to trigger page rendering with a console application. Something like: using System.Net;...
asked by 05.11.2014 / 17:15
2
answers

Possible SHA256 return 128bytes after signing?

I am using the following code to get my certificate and sign my CNPJs, however I am using the SHA256 algorithm, but it is returning 128bytes. Does anyone know what's wrong? Follow the Code: Dim data = Encoding.UTF8.GetBytes(Me.txtCNPJSoftwar...
asked by 06.11.2014 / 12:21
1
answer

Refer to the "parent" of the class

How do I reference the "parent" within the method? I remember that in Java I only used this , but in C #? Example: public class UPlayer : RocketPlayer { public void SendMessage(object obj) { RocketPlayer pl = base;//n...
asked by 03.07.2015 / 05:59
1
answer

How to concatenate properties of a single List with LINQ?

I need to concatenate two properties of each item in my list, in the example below it works but would like to know how I can do the same thing using LINQ instead of foreach ? public partial class Form1 : Form { public Form1() {...
asked by 05.03.2015 / 13:27
2
answers

How to know the current status of the form?

I'm a beginner in the field, I could not find my question elsewhere. Is there a code that shows the state of the form? For example: if it is in focus, is it minimized or maximized? Thanks in advance!     
asked by 24.03.2015 / 16:14
1
answer

Appcache in Asp.net MVC

I need to use the html5 appcache to store some web pages. Before using MVC I simply made this regular expression to check whether it is connected or not. var offlinePages = /^\/(index|about|schedule|location).htm$/; And in this loop I test:...
asked by 15.08.2014 / 16:17
1
answer

Reapping the HttpClient and life cycle of an ApiController

Based on on this site and also on I came to the conclusion that I should not use the class HttpClient in a using block even though it implements IDisposable . This would help reuse the already instantiated object and bring...
asked by 17.12.2018 / 16:49
1
answer

Generic object reference error

   System.NullReferenceException: Object reference not set to an instance of an object. This error is giving in the following code snippet: Arquivo arquivo = new Arquivo(); ArquivoVersao versao = new ArquivoVersao(); versao.XNOME = "teste"...
asked by 06.02.2015 / 19:48