Questions tagged as 'c#'

1
answer

Class Service layer BLL

Is it a bad practice to have a very extensive method within my class of service? Or would it be better to break them down into smaller methods in the same class and call them?     
asked by 15.07.2014 / 18:11
1
answer

How to display bank data in Textboxes?

Hello! My scenario is as follows: I'm developing a web application in C # ASP.NET, and I'm having some difficulties getting the database's data (via LINQ to SQL) to the page controls. Below is one of the controls in my .aspx where I...
asked by 15.07.2014 / 15:33
2
answers

Visual Studio 2013 only opens 2012 projects

Whenever I create a new project in VS2013, I have no project option, only the option: WEB >> Visual Studio 2012 . So yes, I have several project options like MVC 3 and 4 and so it goes. How do I update? I tried NuGet, but it's still...
asked by 17.07.2014 / 22:54
1
answer

Getting text into another text

I want to get a List(Of String) of text blocks, however there is a problem: { --isso é um bloco; echo "Aqui tem um } no meio";} And I would like to get this: --isso é um bloco; echo "Aqui tem um } no meio"; but it's coming bac...
asked by 16.06.2015 / 00:22
2
answers

InvalidOperationException when using the Set method of the DatabaseContext

When you use the DbContext.Set () method, the following exception is raised:    The entity type is not part of the model for the current   context If I create a DbSet directly in the DatabaseContext, it works. But my current need is to cr...
asked by 25.07.2014 / 21:13
2
answers

Context does not load Bank data

My context is not bringing the bank's data. Error messages.    Value can not be null.       "Value can not be null. \ r \ n Parameter name: connection"       Value can not be null. Parameter name: connection Connection string string...
asked by 21.07.2014 / 16:06
2
answers

I can not call JavaScript function in textBox

I have the following java script function to format my date fields: function MascaraData(data){ if(mascaraInteiro(data)==false){ event.returnValue = false; } return formataCampo(data, '00/00/0000', event); } but I can not call th...
asked by 24.09.2014 / 19:04
1
answer

Retrieving the values from my form

I'm trying to retrieve the values of a form. Is this a good way to get them back to get through my DAL? <div id="myModal_Veiculos" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">...
asked by 23.09.2014 / 05:57
2
answers

Pass data between forms

I'm developing my CBT and I needed to make the data collected in the register serve as a login, because we do not have a server yet to save this data, so they are being made with ArrayList . Follow the code: public partial class Frm...
asked by 24.04.2014 / 02:04
3
answers

Declare variable within my cshtml

I have this code in my cshtml file <div class="grid_19 box-resultado"> @{ string nm, dia, mes, ano, sexo, numpassaporte, diavalidade, mesvalidade, anovalidade, paisemissao, dados = ""; ....... I need to dec...
asked by 14.03.2014 / 20:35