Questions tagged as 'c#'

2
answers

Back to previous menu

I'm trying to add a "Back" from one menu to the other, first I tried to use do only on the 2nd. menu to go back to the first, but it only closes. Follow the whole code: namespace ConsoleApp10 { class Program {...
asked by 15.11.2018 / 23:54
2
answers

How to execute query in C # for request control

I'm new to programming and need to add some functionality in a C # asp.net application. One is a control that prevents the user from proceeding with the request if it has any pending on the system. I'll describe it step by step. My view @us...
asked by 11.09.2014 / 21:45
1
answer

C # ManualResetEvent

What does the ManualResetEvent connectDone serve in the code below? If I use it, when running the main thread hangs, as I am using this code inside the Unity3D (game engine) it locks the whole process and this can not occur. What is the real...
asked by 10.06.2014 / 17:47
2
answers

Aspects in Generating XML Error Logs

I have an application developed in C # that uses a SQL Server database, this application is made available through a virtualized application server, I do not have direct access to the database or the application server. I want to create a way...
asked by 13.12.2014 / 02:10
1
answer

How to create a Lambda expression with Group by and Order By

I'm having trouble creating a Lambda sentence with Group by and Order By Together. How do I group by the Scope and IDScope column, and sort by IDEscope. Judgment follows. public static List<Escopos> EscoposCalCliente(int IDCalCLie...
asked by 18.12.2014 / 19:39
1
answer

my bubble sort does not work the way it does

Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int q = Co...
asked by 08.11.2018 / 00:53
2
answers

More than one * Layout * in the app

How do I instantiate a new screen, I have the Main.axml and wanted it when I clicked the button to call my Result.axml . I would like to know how I do this in Xamarin in C #. What if I need 2 Activity's one for each screen. I also need t...
asked by 02.08.2014 / 23:39
2
answers

How to produce JSON in the format that Flot expects?

Doubt on how to serialize to return this JSON. I'm using the Flot library ( link ) to present a chart. I can generate the graphics. In my view I'm using it like this: $.ajax({ url: '/graficos/GeraTesteFlot', metho...
asked by 17.07.2014 / 21:28
1
answer

Where to put the connection string to the database?

I have the form: Thedatabaseandtheregistrationtablehavealreadybeencreated,IamusingwampserverandMySQLWorkbench.Myquestioniswheretoputtheconnectionstring:MySqlConnectionconn=newMySqlConnection("Persist Security Info=False;Server=localhost;Datab...
asked by 05.07.2014 / 23:13
3
answers

Gridview TemplateField

I need to change a specific cell in GridView , but when I try to do this in RowDataBound : TextBox x = ((TextBox)e.Row.Cells[i].FindControl("ctl" + tx.PadLeft(2,'0'))) x.Enable = False; or this way; ((TextBox)e.Row.Cells[i]....
asked by 24.06.2014 / 20:03