Posts by Lucas • 49 points
7 posts
-
0
votes2
answers642
views -
0
votes2
answers580
viewsA: Send Angularjs object to C#API POST
You own the EMPRESAS_PARTICIPANTES class? Here’s an example I did: public HttpResponseMessage Post([FromBody]RRNC plano) { try { rnc.Salvar(plano); this.texto = new HttpError(mensagem.PostWeb());…
-
0
votes1
answer370
viewsA: Concatenate SQL Server records
When you want to make conditions in SQL use CASE Select CASE WHEN Permitir = '1' THEN CONCAT(FormID, AcaoID) ELSE FormID END FROM PermissaoAcoesForms This is what you need?…
-
1
votes2
answers68
viewsA: Create more fields and avoid JOIN decreases load?
It’s not very recommended to do this Pros: You win in performance in queries; Visibly it is better to consult in the table. Cons: Your application will have to handle the two tables when you have…
-
1
votes1
answer527
viewsA: Format HTML5 Input Calendar with javascript
For field formatting problems I use javascript libraries. In my opinion the best for dates is the Datepicker https://github.com/Eonasdan/bootstrap-datetimepicker…
-
1
votes2
answers9722
viewsA: Square root C#
Could be the type of variables you’re using. protected void Button1_Click(object sender, EventArgs e) { double primeiro = 2; double resutado = Convert.ToSingle(Math.Sqrt(primeiro)); janela.Text =…
-
1
votes0
answers126
viewsQ: Error org.xmlpull.v1.Xmlpullparserexception: expected: START_TAG
Good night, you guys! I’m developing an android application that should connect with a c#webservice, but I’m having some problems connecting with my webservice. When I put the W3c webservice to test…