Questions tagged as 'c#'

1
answer

Insert current date into a field [closed]

I am using% co.de% of .Net to create a project as a learning base for BD with C #. I chose an easier way that would be to work most of the time in design mode through dataAdapters . The battle I face is to insert the current date into a DB...
asked by 13.12.2015 / 02:51
1
answer

DB table not accessible

I have an associative class (User Stream) between User and Stream, where User Stream contains user permissions to Stream, to know who can access a certain stream, I must go to this associative. Problem: trying to do ... db.FluxoUsuario.toLi...
asked by 29.12.2015 / 13:30
1
answer

wkHtmlToPdf - Header and footer on all pages

I'm trying to generate a "report" using the Rotating, but I'm having difficulty for the header and footer to repeat on all pages: This is the sketch of what I've done: Controller using System; using System.Collections.Generic; using Sy...
asked by 28.12.2015 / 15:53
2
answers

Send a list of data in a viewbag and receive a foreach in the view

The query data is correct, but I can not return the data to the view. Controller: var disponib = (from d in db.Disponibilidade join c in db.Catequista on d.CatequistaID equals c.CatequistaID where c.Catequist...
asked by 23.03.2016 / 16:15
1
answer

Parameters in Query

When assembling a Query using AddWithValue. Even if it's right, the return is not as expected. In the example below, the return is Zero var query = "SELECT nome,usuario,email,administrador FROM GSCUsuarios WHERE @parametroWhere = @parametro...
asked by 16.12.2015 / 21:26
1
answer

Is it possible to create individual events for the instances of a form in C #?

Let's say I have a customer registration form: var frmCadCli1 = new frmCadastroCliente(); And I just called this form: frmCadCli1.Show(); When I call this form, immediately before it is shown the Form_Load event...
asked by 09.12.2015 / 20:29
1
answer

create unity3D custom mask

How do I create a date mask on the 3D unity platform, so that when I type it, it automatically places the "/" characters? Example: 00/00/0000     
asked by 26.02.2016 / 14:31
1
answer

Thread - How to use it without freezing screen?

I have a system that traverses some html elements, collecting some links. I would like for a wait time, but whenever I use Thread.Sleep it freezes my program by the time set. I have already used Application.DoEvents (); and Thread.Join and non...
asked by 29.01.2016 / 02:03
1
answer

Display a TimeSpan formatted time

I have two variables: TimeSpan horaI = new TimeSpan(10, 00, 00); TimeSpan horaF = new TimeSpan(22, 00, 00); I need to display them on the screen as follows 10:00 AM and 10:00 PM. But I can not do it. How could I do this?...
asked by 10.11.2015 / 14:24
2
answers

Sending Model to Controller via Ajax

I have a strongly typed View with a small form and a javascript function with ajax usage: function emitir () { $.ajax({ type: "POST", traditional: true, url: '@Url.Action("EmissaoRapida", "CND")', data: { mo...
asked by 10.11.2015 / 17:10