Questions tagged as 'c#'

0
answers

Error deleting row in GridView ASP.NET C # [duplicate]

I have the following GridView : IfIdeletealinefromGridandtrytosaveit,itreturnsthefollowingerror  Theinputstringwasnotinacorrectformat.Thiserrorgivesassoonasitentersthemethod,inthefirstiteminthelistobjBonusValor.BonFxCodigo=Convert.To...
asked by 26.06.2017 / 18:47
3
answers

Value processing null c #

I have a method that gives me an execption, how do I handle this ?: thanks public string CarregaProdutosDermaClube(string codigoproduto) { //consulta os dados var tbuscar = new BuscaProdutosDermaClubeDAL(); var retorno = tbuscar.P...
asked by 01.06.2017 / 16:11
2
answers

Doubts with the ASP.NET MVC view system (C #)

I'm developing an image bank with Microsoft ASP MVC ASP.NET, and I have a question, studying the competition, I realized that when you click on an image within the search result, or they pass a parameter to the view so : Sofarsogood,Icandoit,bu...
asked by 24.05.2017 / 22:11
2
answers

Suggestion Migration System and modeling of individuals and legal entities in a system with Entity Framework

Well, the question is this. I have a database that has the purpose of making the cash book of a company, basically this bank has a CaixaCorrido table with columns Id , PessoaNome , DataHora , Descricao , Valor...
asked by 09.03.2016 / 15:23
0
answers

My bootstrap logo is too large and the remaining menus have a large empty space between them

<body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-to...
asked by 23.05.2017 / 10:22
1
answer

How do I add a value to my database?

I need that, if the value is null, it would add the variable getid() to the database. string comando = "SELECT COUNT(*) FROM usuarios WHERE username=@Usuario AND senha=@Senha AND tipo=1"; var connection = new MySqlConnection(connString)...
asked by 07.06.2017 / 15:26
4
answers

how to generate an xml in memory

With the code below, I generate a file and write it somewhere, however, instead of writing to disk, I wanted to generate it in memory, how do I do that? using (var context = new ClassContexto(ClassMaster.conexao())) {...
asked by 19.01.2017 / 17:47
3
answers

Automatic punctuation in lines of a MultiLine TextBox

I need help, so I have to write the data from a MultiLine TextBox to a Database, which is already working, but I have to do an automatic punctuation in that information that was entered by the user, I'll give you an example: Isto é a p...
asked by 20.06.2017 / 23:19
1
answer

Compare TextBox with field in a SQLServer table

I'm stuck on this if . I want to compare my textbox with a field in a table in sql server , but I do not know how to continue. follow the code: using (SqlConnection connection = new SqlConnection(connectionString)) { str...
asked by 05.06.2017 / 23:26
1
answer

know how much a process is consuming from i / o disk

Alright? I can already monitor CPU, Ram memory, Disk ... but, I have not yet figured out a way to know how much a process is wasting disk. Is there any way in C # to do this?     
asked by 06.06.2017 / 23:57