Questions tagged as 'c#'

1
answer

Use inner join with BindingSource

I'm trying to query an access database using inner join along with BindingSource , this binding will send the data to a Datagridview . However, when the data is loaded into the grid, the displayed results are a select comm...
asked by 26.08.2014 / 20:18
1
answer

How to position text biased in ReportViewer?

Is there a way to tilt a word (textbox, or other possible way) in the ReportViewer so that it is 45 ° (degrees), for example?     
asked by 16.08.2014 / 20:07
1
answer

Serialization - WebApi for WCF with base type property (abstract)

I have a problem here where I have a WebApi consuming a WCF. Basically I'm having trouble receiving a WCF property that is the base type of the class I'm actually sending. I'll give you an example to make it easier to explain:      [DataContr...
asked by 17.07.2014 / 19:01
3
answers

How to do a select with several 'where like' field %% in C #

The select below works, but it searches all fields and would like idaluno , nomealuno and cpf to be searched and sorted by idaluno SELECT idaluno,nomealuno,responsavel,cpf,rg,fone_contato,desistente FROM aluno...
asked by 26.07.2014 / 21:51
1
answer

How to pass a QueryString using RegisterStartupScript in ASP.NET?

I have this code in my code behind: ScriptManager.RegisterStartupScript(this, typeof(string), Guid.NewGuid().ToString().Replace("-", ""), "window.setTimeout(\" $('#" + calendar.ID + "').fullCalendar({header: {left: 'prev,next today',center: 't...
asked by 07.08.2014 / 16:36
1
answer

How to observe user inactivity and enable or disable the lock screen in Windows Phone 8.1

How do I disable automatic screen lock on windows phone 8.1? phoneService.UserIdleDetectionMode = IdleDetectionMode.Disabled; Before using the above line, however, it is no longer valid for the new version of Windows Phone.     
asked by 07.08.2014 / 01:18
1
answer

Write ListView in SQL Database using Entity Framework and C #

I'm developing a desktop sales application using C # and Entity Framework and am having doubts about writing the items inserted in ListView into the SQL database. How do I write the inserted items to ListView in my table tb_i...
asked by 13.08.2014 / 02:07
1
answer

Empty variable by foreach

Values are not placed in my variable by foreach, what do I do? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.IO; using Android.App; using Android.Content; using Andro...
asked by 12.08.2014 / 03:26
1
answer

ASP.NET Identity customize with own database

I already have my database ready with the login table, and I did not want to change it, so I would like to know if I can customize it with the tables I already have! and how to do it! Below the mapping of the login table in my database: pub...
asked by 12.08.2014 / 21:30
1
answer

How to save a PDF file in SQL Server 2008 using C #

The database is prepared to save the PDF in a field of type VarBinary(MAX) . How do I read this field later?     
asked by 14.02.2015 / 21:45