Questions tagged as '.net'

1
answer

How do I insert any file extension into a SQL database? [closed]

I have always worked by attaching only images to my BDD tables, I remember converting to MemoryStream and then to Byte and inserting ... But I need to insert any kind of file extension into my database.     
asked by 11.12.2014 / 19:54
1
answer

Constructor abstract class

I'm not able to develop the following environment: public abstract class AplicacaoGenerica<TEntity> where TEntity : class { private IRepositorio<TEntity> repositorio; public AplicacaoGenerica(IRepositorio<TEntity> rep...
asked by 09.09.2014 / 16:09
1
answer

Which reference import for TableAttribute?

I can not get my app to find the table tag. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dominio { [Table("Loja_Carrossel")] public class Carrossel { public int Id { get;...
asked by 09.06.2014 / 21:10
1
answer

Using KeyPress event with Regex

I'm doing a C # application on Windows Form using .Net Framework 3.5 . In this application I have a textbox for the entry of CPF or CNPJ. I need this field to have only numbers and CPF / CNPJ characters (./-). I would like to validate...
asked by 10.06.2014 / 20:47
1
answer

Maintenance and retrieval of service URLs

I'm working on a Web Forms project that has a DLL, and in that DLL there are references to external services. We have 3 environments (development, homologation and production) and for each environment there is a specific URL for each of the serv...
asked by 10.07.2014 / 23:04
3
answers

How to display "from" within DateTimePicker

No DateTimePicker I can display anything using d for day, MM or MMMM for month and yy or yyyy for year. However, I would like to simply display in the customformat property: April 15th. Howe...
asked by 15.04.2014 / 21:36
4
answers

Breaks row in table cell in CSV format to be read by Excel

I have the following code that inserts a value into an excel cell for export context.Response.Write("aa\r\nbb\r\nccc"); o / r / n breaks the line but writes in the cell below, I would like to break the line but continue with the text in the...
asked by 03.04.2014 / 17:41
2
answers

How to know which component is in focus?

I'm doing a form (Windows Forms) in C # and would like to know how do I get the component that is in focus. In my form there is a SplitterPanel and inside it, in Panel2 , has TabControl with several: ComboBox , TextB...
asked by 29.12.2014 / 14:21
1
answer

How to show the build version?

I see in some pages and systems the build version. I would like to show in a view the build version of my project in ASP.Net MVC     
asked by 31.12.2014 / 19:25
3
answers

Convert string positions to integer

Console.Write("Digite um numero de 4 digitos: "); string numero = Convert.ToString(Console.ReadLine()); int soma = 0; for(int i = 0; i < numero.Length; i++) { soma += Convert.ToInt32(numero[i]); } Console.W...
asked by 13.12.2018 / 01:20