Questions tagged as 'c#'

1
answer

Capture the value of a Label [closed]

I need to capture the value of a label (c #) that has been inserted via Jquery, eg: <asp:Label runat="server" ID="lblIPLocal" Visible="true"></asp:Label> //Alimenta a Label $("[id*=lblIPLocal]").text("teste"); //Porem depo...
asked by 01.11.2017 / 17:41
3
answers

DataAnnotations problem in string [] fields

I need an help to validate a string[] field, since whenever I send this empty field, it returns error, even though it is in the correct format: The field is this: [RegularExpression(@"^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z...
asked by 19.09.2018 / 21:19
1
answer

How to do a split of an integer inside string?

Follow string: 11 blabalba, balbalba balballbal baba 12 balbal13, afafaf14 1414adad1414 I want it to return something like this (separated by split): array 0: 11 array 1: blabalba, balbalba balballbal baba Second line: array 0: 12...
asked by 08.11.2017 / 03:06
1
answer

C # Windows Forms - Get a User ID Logged in

I need to get the ID of a user already logged in to the application to create another product. How do I do this? So,soon,andwiththeemailandpasswordlogged,IwanttofindtheIDloggedinwhenIregisterthecar,itpullsthatIDandregister.Ihavealreadytried...
asked by 13.11.2017 / 02:48
1
answer

How to check if an email exists?

I would like to know how to check if an email exists / is real. I'm doing a site (in ASP.NET), which for the person to do "register", has to enter an email and a password. But how do I check if the email is real? I know I could check if you have...
asked by 23.08.2017 / 15:05
1
answer

How to add properties in an ExpandoObject ()? [duplicate]

I was using dynamic type and was warned that it has a performance problem. How could I make the code below using ExpandoObject ? dynamic dObject = new ExpandoObject(); dObject.a= a; And how could I sort a list of ExpandoOb...
asked by 17.08.2017 / 17:28
1
answer

How to edit items in sqlite.net with xamarin [closed]

I'm learning to use sqlite.net in Xamarin , but at the time of editing an item is not working, I debugged the code and gave breakpoint to EditItens() and saw values passed to conexao.Query<Itens> are corre...
asked by 14.10.2017 / 00:41
1
answer

Reporting in C #! [closed]

Hello, I'm looking for a library / tool that lets you create reports in C #. There is Fast Report and Crystal Reports but both are paid ... I wanted something Open Source / Free and it does not have to have many resources. Any tips?     
asked by 08.10.2017 / 15:55
1
answer

Help with app pages! [closed]

I need a help or a direction, I will try to be brief, this is the following I am developing an app for a client, and I need this app in very little time for that reason I decided not to develop by common means, having the speed in mind chose the...
asked by 26.07.2017 / 21:30
2
answers

Linq equivalent to the t-sql command

How to make LINQ equivalent to the following SQL? Select sum(case when periodo = 1 then isnull(valor,0) else 0 end) Jan, sum(case when periodo = 2 then isnull(valor,0) else 0 end) Feb, sum(case when periodo = 3 then isnull(valo...
asked by 06.06.2018 / 21:20