Questions tagged as 'c#'

5
answers

How and when can I use a do while? and how is its syntax [closed]

Good morning everyone, I'm learning to program and at the moment I'm better at handling the for cycle, but regarding the while I would like to understand it since I've seen several exercises that solve them with do, instead of just the while   ...
asked by 30.08.2017 / 18:19
2
answers

Get Tweets in c #

I have a class for Twitter in which I receive my last tweet, in principle I authenticate well and it returns my last tweet, but in a chain all, along with rare characters and without accents type:    [{"created_at": "Thu Feb 04 10:29:14 +0000...
asked by 27.10.2016 / 17:19
1
answer

two switch in visual C #

Can I make two switches in the same method in visual C #? I try to do it and in the second switch I get an error message that says unreachable code. thanks for the help. private bool CalcularLibro() { switch (TipoPasta.ToUpper()) { case...
asked by 01.10.2018 / 04:12
2
answers

Send form to SQL DB and bring it in table

I am working with WebForms, my form is as follows: <div class="form-group formulario" id="formulariogral"> <form action=""> <div id="titulos"> <h1 class="title" >titulo</h1>...
asked by 26.05.2016 / 18:01
2
answers

Insert a related table record from c # to sql server

I need help! I'm working with inheritance. Client: Person and I need to insert from the Client class, where the methods are (register, modify, delete, list). I need you to insert yourself in a method! The idea that I have is to identify the id o...
asked by 14.04.2016 / 12:09
3
answers

How to use the LIKE operator [closed]

I have this sentence in c # to perform a parameterized or filtered search using the like. else if(rbnombre.Checked==true) { try { if (txtbusqueda.Text == "") {...
asked by 05.09.2017 / 20:47
0
answers

Compatibility between MySQLDriverCS and libmysql.dll

Some time ago I have random problems with the connection between my generated application with
asked by 13.01.2016 / 18:34
1
answer

Right way to interact between ViewModels MVVM

I am building a WPF application with the MVVM design pattern. I am using DataTemplates to load user controls within a ContentControl: <DataTemplate DataType="{x:Type menu:MenuViewModel}"> <menu:MenuView/> </DataTemplate>...
asked by 08.02.2016 / 20:59
2
answers

Round decimal in c # always to the highest number

I'm trying to round a decimal number, but what normally happens is that if the number is assuming 40.40 stays in 40 , and if it's 40.60 goes up to 41 my code is as follows: decimal price = 13224.60m; int aux = (int)...
asked by 25.03.2017 / 20:36
2
answers

ASP.NET MVC + AngularJs + Bootstrap

I'm working with ASP.NET MVC 4. I have some doubts, when installing Angulars is there a Bootstrap for Angulars? , oh you do not have to see each other, is the installation of both independent? .     
asked by 27.12.2016 / 05:11