Questions tagged as '.net'

1
answer

Return from Json [closed]

I do not understand the JSON operation, but here I have a Controller code that returns a JSON and I want to know how to display this data on the screen. public ActionResult ShowPlaylists() { if (string.IsNullOrEmpty(Session["token"].ToStri...
asked by 01.11.2016 / 04:12
1
answer

How to cached in C # .NET an information for multiple users?

I have a list of objects, and I would like every user who accessed a page to add their objects to the cache. And that this cache was worth to the next person who accessed the same url. Example, I have the url "/ objects / id-6", the first use...
asked by 30.11.2017 / 21:22
1
answer

Control of XML NameSpaces in C #

Hello I'm building an XML file and it has the xmlns attribute on the parent element, but I do not want it to appear in the child as it's occurring below: FollowthecodeinC#language:eSocialevt1210Lote=newXDocument(newXDeclaration("1.0", "UT...
asked by 05.04.2018 / 13:35
2
answers

Problem to send values of type 11.50 to SQL Server database

I have a formatting problem of values of type R $ when I send to the database 11.50 in the database it is of type 1150. This is the push button of the submit button for the database has a database management class cl_GestorBD private...
asked by 06.06.2018 / 15:50
1
answer

How to validate a regular expression text not allowing everything in white space?

I need to validate a line from a text file, where I already have part of the expression, but I lack the part where from position X to position Y I have 30 characters that correspond to the type string that can contain anything, which would corre...
asked by 25.07.2014 / 19:06
2
answers

Error "NullReferenceExeption was unhandled" when compiling

Follow the code below: public partial class Form1 : Form { public Form1() { button1.Click += Button1_Click; } private void Button1_Click(object sender, EventArgs e) { decimal n1, n2, result; n1 = C...
asked by 08.12.2015 / 00:48
2
answers

How can I call a void method of the class to display a msg in a form [closed]

I have a public void listarProduto() method. It needs to have all the input information by the user. My problem is it's time to call this method within a MessageBox() on the form for the message to appear.     
asked by 31.08.2017 / 21:57
1
answer

MessageBox appears twice [closed]

I have the following code which is fired by Handles Button1.Click . Dim X, Cf As Double Dim A, B, C, D, J As String A = TextBox2.Text B = TextBox3.Text C = TextBox4.Text D = TextBox9.Text J = ComboBox2.Text If...
asked by 15.12.2015 / 15:59
1
answer

Unity code does not compile [closed]

using UnityEngine; using System.Collections; public class Player : MovingObject { public int pointsPerFood = 10; // Numero de pontos cada vez que pegar comida. public int pointsPerSoda = 20; // "" pegar Soda. public int wallDamage =...
asked by 06.09.2015 / 19:51
1
answer

Would it be possible to pass a string from one form to another? [closed]

Imagine a Form that asks you for a color, then it would have a TextBox , and from that TextBox I wanted it to Press the "OK" button for example, this sends the text from this TextBox to another Form , so that i...
asked by 09.12.2015 / 15:22