Questions tagged as 'c#'

3
answers

Array with no size limit

ClsPessoa[] Pessoa = new ClsPessoa[10]; I'm new to C # and would like some help. How can I declare an array of a class as in the example, without inserting a size limit.     
asked by 11.10.2015 / 20:48
1
answer

How to override a class from an external project to call a function

I have a solution where it contains 2 projects. One of them is the project I pulled through github, so I do not want to modify it because every time I update I will lose my settings. In this project there is a class called: public class...
asked by 29.03.2016 / 21:32
1
answer

Validating existing user in C #

The VerifyLoginExist function tells you that the login still exists, but still continues to the next line of code and signs in. I want her to call and return to register for a new name. My database has the cod_user as primary key, user (string)...
asked by 29.03.2016 / 21:34
0
answers

I want to access a method from a webservice made in C #

I'm trying to access the Login method of a certain webservice, but instead of returning the .Token that I ask in the reply, I get a pure webservice HTML My js code: $.ajax({ crossDomain: "true", //contentType: "text/xml",...
asked by 28.03.2016 / 18:20
1
answer

.Text to .Int Converter

I'm automating in C # with selenium webdriver. The elements of the screen I get by Xpath and I save in Variable or WebElement, and I need to transform a text element, which is stored in a variable, and add it with another element, which must als...
asked by 22.03.2016 / 17:51
0
answers

How to load PartialView via Javascript

I have an Asp.Net MVC project where there is a method that returns a PartialView : [HttpPost] public ActionResult MinhaAction(int param1, int param2) { // ... // Código // ... MigraDoc.DocumentObjectModel.Document doc = new...
asked by 21.03.2016 / 20:53
1
answer

My search in BD oracle does not work

I have a method, using Ado.Net to bring DB information (Oracle 11g). There is information in the table (6 records) and when I run it by C# no record comes. See the code below: public class ConexaoBanco { string conexao = Con...
asked by 18.03.2016 / 12:27
1
answer

ReportViewer - MethodAccessException

Good afternoon, I use the VisualStudio 2015 Community on a Windows 10x64 and am encountering the following problem when running the debug of a Windows Form Application project: System.MethodAccessException was unhandled HResult=-21462...
asked by 17.03.2016 / 18:33
0
answers

Arrange ListView by column

I have a ListView with 2 columns: Template | Variants. By clicking on the top I want the table to be organized according to the column I click     
asked by 13.04.2016 / 16:01
2
answers

Using 3D unity tags?

I can not identify my prefabs with the tags that I have defined, I have already added the tags to the prefixes as you can see below: Andmystatus:publicvoidChecks(){for(inty=0;y<gridHeight;++y){for(intx=0;x<gridWidth;++x){if(Grid[x,y]!=nul...
asked by 13.04.2016 / 16:27