Questions tagged as 'c#'

0
answers

Move Picture in PictureBox C # Windows Forms

I looked for some examples on the internet, but those I tried did not work. I load an image at runtime, this is working normally, but I am not able to move the image that is loaded inside a picturebox, Follow the code: public partial class...
asked by 14.01.2015 / 01:08
0
answers

Remove white space reportviewer

I have a ReportViewer that hides the TextBox if it is blank, however hiding is the white space in the report. The TextBox are positioned vertically then when some hide is a space between them. Does anyone know how to...
asked by 25.11.2014 / 17:07
1
answer

How to validate a date in a DataGridViewTextBoxColumn?

I'm creating a form where the user will enter data through a DataGridView , one of the columns of that DataGridView is of type DataGridViewTextBoxColumn and it will receive a date, I would like to validate that date after the...
asked by 23.01.2015 / 14:31
1
answer

Select Format yyyy-MM-dd HH: mm: ss in MYSQL table column

Date 2014-12-01 10:52:38 2014-12-01 10:52:14 2014-12-01 10:51:57 2014-12-01 10:35:34 2014-12-01 10:23:17 2014-12-01 10:22:18 2014-12-01 09:03:49 2014-12-01 08:53:51 I have this column with these dates and I need to do a select that filters...
asked by 26.01.2015 / 17:30
1
answer

Asp.Net Mvc Remote Validation

So I'm trying to implement RemoteAttribute , but when I click the submit button, it's not giving post to my page. My Controller public class TesteRemoteController : Controller { // GET: TesteRemote public ActionR...
asked by 26.01.2015 / 13:24
0
answers

Read page with asynchronous call

I make a call via WebRequest and this page has a JavaScript function that the result of it can not retrieve (it loads an image). I need to wait to finish loading the page to after the page is fully loaded, and can I load the entire page?...
asked by 12.11.2014 / 13:32
1
answer

How can I allow insertion directly into a DataGridView?

I'm setting DataSource of a DataGridView to List<T> . I enabled by the designer "enable addition". But that line is not appearing with an asterisk to add new elements. My code looks like this: public IEnumerable...
asked by 24.12.2013 / 19:51
2
answers

Closing modalpopupextender on button click

I'm using a modalpopupextender with C # .NET. When I click the button in my gridview, it calls the popup to edit the required information. When I click on the update or cancel, nothing happens! It's like he does not see codebehind!     
asked by 06.03.2014 / 15:08
1
answer

RenderAction does not consider my validations in ASP.NET Models

RenderAction has stopped considering fields marked as [Required] in my models. Example of one of the models: private uint IdNews { get; set; } [Required(ErrorMessage = "Defina o título.")] public string Title { get;...
asked by 08.02.2014 / 01:10
0
answers

Why does my asp.net mvc tables have pk duplicate user?

I'm using asp.net identity for authentication and authorization I have my user class: public class Usuario : IdentityUser<int, ApplicationUserLogin,ApplicationUserRole, ApplicationUserClaim> { } public class ApplicationUserLogin : Id...
asked by 23.09.2014 / 23:46