Questions tagged as 'c#'

1
answer

How do I accept 0 and negative values in decimal attribute using DataAnnotations?

I have a class with decimals that can receive a value of -10.00 to 10.00 ( including 0 ), equivalent is a numeric (5.2) . The problem is that when creating my MetaData class, even specifying the range validation has not worked. Home Not...
asked by 29.07.2015 / 15:34
2
answers

Go through a table (grid) Razor MVC

I have a table that is populated by a Model in HTML Razor in a partialView , a field of this table I left as editable using @Html.TextBoxFor . After the user edit this field I need to update in the DB, but first I need to retr...
asked by 12.06.2015 / 17:03
1
answer

Check for an element with Selenium

I am automating a website and in a certain part it presents a listbox that when one of its options is selected if it has available values it presents a table with those values. What I want is to make the system check if this table exists for eac...
asked by 19.08.2015 / 20:06
1
answer

Conditional formatting in a gridView

I have a gridView where all the bank information is loaded from my SQLServer . My question is this. How do I change the font color when a date is less than the system date (for example, to redirect the accounts that are due)?...
asked by 12.08.2015 / 23:42
1
answer

HttpContext receive jQuery parameter

I'm having a hard time receiving a parameter from a registration form for an .ashx. This is a simple form that will receive cadastral data and upload a resume. The upload script I downloaded from the net and is using jQuery / Ajax and C # / H...
asked by 13.08.2015 / 21:04
1
answer

Change the color of a line and deselect a DataGrid

I have a method where I can change the color of a row in my DataGrid. I followed this link: Link The problem is how to take the selection off when it is painted. Type, go back to the original color. I tried the following way: public...
asked by 16.06.2015 / 18:46
1
answer

Get data from a column in the database to a variable

In a part of my code I have the handling of an exception that uses this message. //Grava log com sucesso da importação fundo.registerLog(Resources.MensagemSucessoImportacao); The message is inside a Resource file, however it is concatena...
asked by 04.06.2015 / 21:08
1
answer

How to block the registration of an already registered user

I'm developing an application that manages Courses in ASP.NET MVC, I'm still a beginner, and I'm trying to do the following: The Student has a screen where he lists all the courses for him to choose and make his enrollment in any of these cour...
asked by 08.06.2015 / 15:45
1
answer

Adding the RadioButton in the DataGrid at runtime

At some point in the software, I need to populate a DataGrid in runtime. I was able to perform this operation partially. My problem is that even though I enter RadioButton.Content , it just does not display past content. Also, Group...
asked by 03.02.2016 / 18:36
1
answer

Output from a method or event - C # / WPF

I am using a return to be able to exit the textEstado_Validate event. The problem is that when it exits this event, it enters textEstado_KeyDown . How can I prevent it from going into any other methods and events? private v...
asked by 03.02.2016 / 19:43