Questions tagged as 'c#'

1
answer

Change the FormBorderStyle property to None without losing the Sizable functions in C #

Hello, I'm a little problem, because I need to change the design of my Form referring to its border, and the way I found it in doing this was to change the property FormBorderStyle to None and make the necessary changes in the desig...
asked by 15.03.2016 / 14:12
1
answer

Explanation for the error in the following code

I began to solve the problems of the Euler project as a way of training in learning.    If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.       Find the sum of a...
asked by 27.05.2016 / 07:01
1
answer

Element visible but not yet clickable

In my automated tests with selenium, I have a method that waits for the element for a certain time, until the element is visible on the screen (VisibilityOfAllElementsLocatedBy). However, when the element is visible it is still not clickable,...
asked by 07.04.2016 / 15:35
1
answer

What is the difference between FormsAuthentication createPersistentCookie true or false?

In an ASP.NET Web Forms application that uses FormsAuthentication in Login I would like to know: What's the difference in using FormsAuthentication.RedirectFromLoginPage with createPersistentCookie true and false? What changes in applica...
asked by 05.04.2016 / 19:36
2
answers

How to execute c # codices in the browser?

Is there any way to integrate HTML and C #? Or how to make a Debug for C #? So, this question I'm asking other people, who know program C # apps, who are venturing into the Web world end up building a site in C # in place of JS, PHP or others...
asked by 05.04.2016 / 14:39
2
answers

Is there a difference between connecting to the bank using a class and through visual studio: ToolsConect_to_database? [closed]

I'm learning C # and would like to know if there is a difference between the two connection types mentioned in the title. If so, which ones?     
asked by 20.03.2016 / 20:09
1
answer

Validating form with DataAnnotations in MVC

I'm trying to validate forms using DataAnnotation, I tried directly on model or my viewmodel and none of them works. View Model: public class CieloViewModelTransacaoPartial { [Required(ErrorMessage = "Token é obrigatório")...
asked by 02.05.2016 / 16:57
1
answer

Insert via EntityFramework "IDENTITY_INSERT is set to OFF" error

I have several models and for some reason one of them has the following error: Cannot insert explicit value for identity column in table 'tbl_boleto' when IDENTITY_INSERT is set to OFF. I remember that I have already entered a record, but...
asked by 03.03.2016 / 13:17
1
answer

Argument data type xml is invalid for argument 1 of len function

I'm mapping a property to the xml-type database using Migrations . public string Xml { get; set; } this.Property(t => t.Xml).HasColumnName("Xml").HasColumnType("xml"); However, querying the class using Linq returns the error. _...
asked by 23.02.2016 / 14:59
1
answer

The multi-part identifier "System.Data.DataRowView" can not be associated

try                 { if (cmbFavorecido.SelectedValue != null ) { txtID.Text = cmbFavorecido.SelectedValue.ToString(); cn = conexao.ConectarSqlServer();...
asked by 25.02.2016 / 12:29