Questions tagged as 'c#'

1
answer

C # foreach interrupted

When I try to move the controls from a FlowLayouPanel to another flpPropriedades -> flpReserva through a foreach loop it leaves the middle and does not complete the transition. foreach (Control control in flpPropriedade...
asked by 24.06.2016 / 11:00
0
answers

Window Modal Semantic UI Submit and Validation on Form

I have a modal window using the semantic framework UI, I can give submit calmly using the Helper @ Html.BeginForm it does the validation of 1 field, but the others do not. I need to do this validation via jquery when I submit it by looking at...
asked by 15.06.2016 / 00:48
0
answers

How to Fix Class Registration?

I'm trying to call an application outside my application and when I call this app I get the following error. Retrieving the COM class factory for component with CLSID {7BB8A242-8662-40D0-A0E0-D796BF2162E7} failed due to the following error:...
asked by 14.06.2016 / 18:43
1
answer

Show DataReader return date in View?

I have a form where I have in View: <div class="col-md-2 form-group"> @Html.LabelFor(x => x.CLIENTEDESDE) @Html.TextBoxFor(x => x.CLIENTEDESDE, new { @class = "form-control", type = "date" }) @Html.ValidationMessageFor(...
asked by 15.06.2016 / 17:34
1
answer

Set listview cell color for specific words

I need to load specific data into the listview so the cell in question is formatted with color defined. The code below formats the entire line and needs to format only the defined cell. foreach (ListViewItem item in lsvDados.Items)...
asked by 25.06.2016 / 22:06
1
answer

Default Value of Role in a dropdown

I have in my index the users, each user has a Dropdown with Roles, when does Get does not show the value that is by default in Dropdown Controller: public ActionResult IndexGestor(string roles) { //query entre 2 bases...
asked by 13.06.2016 / 16:00
0
answers

Instantiate Unit of Work with only 1 context. EF 6 Simple Injector

In a simple application, I have the code below that works to some extent, very well. However, for each Service that is instantiated for the Form, a new unit of work is created, consequently a new Context. So while the user is working on form, he...
asked by 13.06.2016 / 03:09
1
answer

Doubt with ViewBag, loading information for editing

I'm having an error, when I go to make a registration, I loaded the information this way: //lista var tbuscarCategoria = new CadastroCategoriaAplicacao(); var listarCategoria = tbuscarCategoria.ListarTodos(); ViewBag.Categoria = new SelectL...
asked by 17.06.2016 / 06:10
1
answer

I created my project, I have been editing every day, and recently from scratch it failed to recognize an existing namespace

I created my project in Visual Studio 2013, I have been editing every day, and recently it has stopped recognizing an existing namespace. The namespace appears in red with the message "The type or namespace 'Models' does not exist in namespac...
asked by 16.06.2016 / 20:29
1
answer

How to print two images on two different pages at once?

Hello I can print a panel (pnlPrint) using the following code. But, I'm not able to print a datagridview that already belongs to the same Form together on the second page so that the two leave in the same impression. I could make two differen...
asked by 16.06.2016 / 19:25