Questions tagged as 'c#'

1
answer

How to create a Helper for Datepicker creation

I would like to create an MVC Helper for creating a DatePicker . Example: @Html.DatePicker();     
asked by 11.06.2015 / 22:31
1
answer

Await ignored in asynchronous method c #

I need to use the return of an asynchronous method for validation but even with the use of "await" the method is still running before I get the function return. var teste = await new VendaService().EnviarVendaParaServicoCentral(new List<...
asked by 22.09.2015 / 19:15
1
answer

Notifications API PagSeguro

Sirs, good night! I'm doing an integration with the pagseguro for my site. I've set the page to receive the notification whenever its status changes as per the code below. protected void Page_Load(object sender, EventArgs e) {...
asked by 22.09.2015 / 04:57
1
answer

Alignment of cells in itextsharp

I have a problem and I can not find a solution, I'm using itextesharp in a windowsfroms application, I've created a table with 7 cells and I would like to align some right and others centered. unfortunately I can only align all the cells to the...
asked by 17.09.2015 / 00:31
1
answer

Catch the file path opened by the process name in C #

I have an application that works based on the current client process. I need to get the filename and its absolute path when opened. That is: If for example the client opens the file "test.txt", I need to get the path "c: \ project \ test.txt"...
asked by 08.05.2015 / 14:39
1
answer

Learn ASP.NET without mastering C #? [closed]

Basic question. I want to start programming for web with asp.net mvc, however I know very, very little C #, just the basics of language. Would it be a bad deal to start with asp.net and go catching the C # language as it progresses through ASP.N...
asked by 09.05.2015 / 00:45
1
answer

How to check if a file is corrupted in C #?

How to check if a file is corrupted in C #? Ex: I have a "xpto.txt" file in a directory and need to verify that the file is not corrupted.     
asked by 14.05.2015 / 22:36
1
answer

Concatenate project name to create Template in Visual Studio 2013 C #

I'm creating a project template and editing the .vstemplate file has something like this: <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"> <TemplateData> <Name&...
asked by 16.04.2015 / 15:57
1
answer

Create item in another project Visual studio 2013 Template

I'm creating a template in visual studio, but I want it to add an item to a project and it's created in all other solution projects, can anyone help me? the code is more or less this: <VSTemplate Version="3.0.0" xmlns="http://schemas.micros...
asked by 17.04.2015 / 17:45
1
answer

C # MySQL transaction in different classes and methods

How do I interact with a transaction between two methods that are in different classes? In my method where I open the transaction it is as follows: public string InserirFuncionarioM(FuncionariosDTO Funcionario) { MySqlTransacti...
asked by 19.04.2015 / 14:54