Questions tagged as 'c#'

1
answer

How to do a select in C # using database / Sql-Server?

In a previous question, I needed to do a select by a specific date: How to do a select by date in C #? Now I need to make a select that brings records whose date is within a specific week or month. How should I proceed?     
asked by 06.04.2017 / 12:05
2
answers

Use more than one model in View - C # MVC

I have two tables in my database: Celular and Marca . To register a cell phone, I need to select a tag for it, ie two models in a view . How do I get two Models to be accessed in the same view? CellularController public cla...
asked by 10.04.2017 / 04:47
1
answer

How to create an integer variable in hexadecimal?

I'm trying to create an integer variable in hexadecimal, but an error occurs saying it is not in the correct format. [DllImport("user32.dll")] public static extern short GetKeyState(int vKey); static void Main(string[] args) { string[] lin...
asked by 06.04.2017 / 12:31
1
answer

ASP.NET - Access DropDownList item attribute in Code Behind

I have a DropDownList in which I add items as below: var item= new ListItem("Texto do Item", "Valor do Item"); item.Attributes.Add("NomeAtributo", "ValorAtributo"); The DropDownList is rendered on the screen with the attribute...
asked by 06.04.2017 / 20:43
1
answer

Filter with Linq or Lambda using Join and Group By

Good Afternoon In a table where it is always inserted new records can occur to have the same Date and the same RateCode, however I want to get a list of this table but for each Date group, RateCode would like me to return the last record inse...
asked by 11.05.2017 / 19:48
1
answer

How to create a MesageBox listing data in C #? [closed]

I want to create a notification, using the messagebox, to list all products registered in the system with a minimum quantity as soon as I run the system.     
asked by 03.03.2017 / 08:18
1
answer

Would it be correct to use a static class to consume a web service?

A question that comes up when I'm programming when it comes to programming static classes. Microsoft's official documentation says the following about static classes:    The static class can be used as a convenient container for sets of...
asked by 05.03.2017 / 06:06
2
answers

How do you change sprite sheet in unity without having to do more animations?

Hello, I'm making a game where you can make a character change in unity. The game will be in 2d, for android and I'm having trouble doing character swapping. I have made a functional trading system, but it is very extensive and will be ext...
asked by 21.02.2017 / 01:40
1
answer

How to synchronize an offline database with an online database?

I have two identical databases, one offline and one online. In every field of a table I have a column called online with values 0 (did not send the data) or 1 (already sent the data). I usually check if there is any field in my tabl...
asked by 20.02.2017 / 23:44
1
answer

Convert Html to readable text using MVC C # [duplicate]

I have text in the database like this: Example only: <ul> <li><strong>&nbsp;asdsdasdadsdadsa <em>asdsd asdsdasdasdad</em></strong> <table border="1" cellpadding="1" cellspacing="1" style="wi...
asked by 21.02.2017 / 19:38