Posts by Alexandre Soares Machado • 421 points
10 posts
-
4
votes2
answers392
viewsA: Open View with Parameters
Try to build the url this way: var url = '@Url.Action("Action", "Controller")' + '?id=' + id + '&tipo=' + tipo; $.ajax({ type: 'GET', url: url, dataType: 'html', success: function (data) { //…
-
1
votes2
answers113
viewsA: How to limit the amount of addresses a user may have in the database
Celina, what Voce can do, is in your application, make a select in the database and take the amount of records (addresses) and block the inclusion of a new address if it is greater than 5. select…
-
1
votes1
answer110
viewsA: Installing Visual Studio 2015 - Error during installation
It seems to be a failure to download the package (Voce would have to look at the installation error log) But an alternative is to download the VS2015 ISO For the Community version…
-
3
votes1
answer384
viewsA: Pass data from one form to another class
Cesar, if I understand, Voce wants when Voce change his checkbox and this is marked he perform an action. You can do it like this: private void metroToggle1_CheckedChanged(object sender, EventArgs…
-
0
votes3
answers1182
viewsA: Separate a string in C#
Test this code. var texto = "Existem 67 calorias em Mistura de Vegetais (Milho, Feijão Verde, Ervilhas,Cenouras) (sem Sal, Enlatado) (1 chávena)."; var texto1 = texto.Replace("Existem ",…
c#answered Alexandre Soares Machado 421 -
1
votes1
answer318
viewsA: How to update a Treeview of C#directories
William, to help you identify where the bug is, you can include in your codes a Try...catch, so you can identify where the bug is. Voce can put a breakpoint in the throw. Using breakpoint you can…
-
1
votes1
answer110
viewsA: Displaying Bitmap in C#application
Raphael, is this a winform application? Voce is showing this image in a Picturebox? If this is the case, you can place the image directly in pictureBox. Bitmap original = new…
-
0
votes1
answer84
viewsA: Problem with Combobox - Systemdatarowview
William, Also try to put Valuemember. cmbTipo.ValueMember = "nome_bolo_tipo";
-
10
votes1
answer8641
viewsA: Error in Assembly reference
Jeremiah, this can happen if Voce is loading a 32bit dll for a 64bit project or configured for both. In this case Voce must change the target platform to x86 in the project properties.
c#answered Alexandre Soares Machado 421 -
2
votes1
answer59
viewsA: Search information in the database in one SQL code line per logged in user
Allan is missing a space between quotes and group by in your select. "+ HttpContext.Current.Session["ID"] +" group by