Questions tagged as 'c#'

1
answer

Assigning ListBox values to vector

When you play the items one by one within a vector, position 0 with 0, and so on, works correctly. But the code shows a malfunction because, in the first iteration goes normal in the second of the error:    InvalidArgument = Value of '1' is n...
asked by 15.01.2015 / 17:33
2
answers

Save data group in Post method

I'm using the BeginCollectionItem to save a list of data in my add method. For this, I created a ViewModel with the main data to the list that I want to save, in the POST method I have ViewModel TypePresitionVenueViewMod...
asked by 23.06.2015 / 14:31
3
answers

Operator '+' can not be applied to operands of types 'decimal' and 'double' - NCalc

I'm using the NCalc lib A simple formula like "Abs (-1) + Cos (2)" gives the following exception:    Operator '+' can not be applied to operands of types 'decimal' and 'double' Why? How to solve? The calculation is to be executed as...
asked by 25.03.2015 / 14:21
2
answers

Problem inserting double value in MySQL

query += txtServidor.Text + "',";<br> query += double.Parse(txtVencimento.Text) + ",";<br> query += int.Parse(txtBanco.Text) + ",'";<br> INSERT INTO tbl_associados VALUES(10,'testando','001.318.555-55','categoria','ativo',...
asked by 30.03.2015 / 14:58
1
answer

Combobox equal to Google search

How to do so that in the combobox I type letters and returns any text corresponding to those letters that I typed. Example: I have a LisItem type list in the combobox hi to all Hi to all my haters Hi to all of you Hi to all my fri...
asked by 20.03.2015 / 18:34
2
answers

Server too busy

I constantly have this situation: Server Too Busy when I run my webforms application. What should I do to resolve this situation? I think it's IIS Express, but I've already been told it can be a database.     
asked by 13.01.2015 / 13:53
1
answer

Doubt about using multiple user controls on the same page

The most difficult thing here is to ask the right question to not get downvote, but come on. I will try to explain well, because the doubt is complex or boring. I will ask specific questions to avoid questions with multiple answers. Here it goes...
asked by 06.01.2015 / 18:13
1
answer

Reference to styles and script's in Master.Page using ResolveUrl

In Master.Page I make references to the styles and scripts that will be inherited by the other pages through ResolveUrl. <script src="<%# ResolveUrl("~/") %>Scripts/jquery-1.11.1.js" type='text/javascript'></script> <scrip...
asked by 24.11.2014 / 15:35
3
answers

Back to page that called

Is there a way for me to make a code on a quit button that will return me to the page that called? Fixing the page does not give, because this page (queryprocess) is called from several others. I did so and it is giving me error: <span i...
asked by 25.11.2014 / 17:42
1
answer

Implicit type conversion error

   Error 1 Can not implicitly convert type 'CachedCurrent.Customer' to 'string' C: \ course \ CachedCurrent \ CachedCurrent \ Form1.cs 47 31 CachedCurrent Follow the class namespace CursoCAvancado { public partial class Form1 : Form...
asked by 20.11.2014 / 01:29