Questions tagged as 'c#'

1
answer

Write information in the browser console via .Net

I need to show information in the console in the browser the classic console.log of JavaScript, but I would like to do this in the browser with .Net and not in the output of Visual Studio because I believe that Azure is preventing t...
asked by 05.01.2016 / 18:55
1
answer

I can not insert into DateTime fields in sql database

I can not insert into the dataCriation and dataRefMove fields in the sql database private Contexto contexto; public void Inserir(RegCabecalho regCabecalho) { var strQuery = ""; strQuery += " INSERT INTO...
asked by 24.03.2016 / 23:08
1
answer

Remove WPF window border

I have this window with an image defined as background , ok, but note that the image is not occupying the entire window. How can I remove these borders? Remembering that the window has the following properties in XAML: AllowsTransparency="...
asked by 26.03.2016 / 22:23
1
answer

Use of except in a lambda expression

I have this expression and it does not work: var busca = listaCommiter.Where(l => l.Except(listaFarm.ToString())); I have already removed the ToString () and still nothing. listaCommiter and listaFarm are two string list...
asked by 02.03.2016 / 12:03
1
answer

Authentication for multiple users with ASP.NET MVC and .NET 4.5

I am developing a system where there is a need for two types of users, the client, which will only access the frontend , and the administrator associated with backoffice . I need these users to be authenticated in different "cookies", since th...
asked by 29.02.2016 / 20:00
1
answer

Thousands separator

How could I put thousands separator in a textBoxFor() ? Example: Value entered in View 1.321 (The point is only to facilitate visually) and the controller would receive the value 1321 to insert into the base. My field is...
asked by 21.12.2015 / 18:21
1
answer

Picturebox + Picture

I have Picturebox1 with an image (cameras-hdv-merlin-courses.png) example: private void pictureBox1_Click(object sender, EventArgs e) { } By hovering over her, I'd like you to zoom in, kind of understand. How can...
asked by 21.02.2016 / 03:22
1
answer

JArray add values

How to add a set of JArray values to an existing json. void adicionar(string name, string gamedir, string, lastVersionid, string javaArgs) { /* adiciona ao json existente... */ } Existing json code ... { "profiles": { "nathan130...
asked by 10.12.2015 / 23:32
1
answer

I need to do a validation on start date and end date with javascript

I need to validate the start date and end date ... So the end date can not be less than the start date, but since I started messing with javascript less than two weeks ago I'm knocking a little. It would be this case below: Both for DataInici...
asked by 10.12.2015 / 15:01
2
answers

C # MVC 4 - Action gives Error 404 [closed]

I'm a beginner in C # MVC 4 and I set up a website for learning purposes. On the contact page of the site there is a form that automatically sends emails. When I squeeze it locally straight from Visual Studio 2013 (IIS Express) it sends the e...
asked by 14.12.2015 / 18:25