Questions tagged as 'c#'

1
answer

C # Web Api Error StatusCode: 500

Good I am developing an application that consumes an Api Web Service but when I run it I get Error StatusCode: 500, ReasonPhrase: 'Internal Server Error' This Is The Api Web Code The Connection Probe and It Works. Code C # [Ht...
asked by 06.02.2018 / 02:54
1
answer

Hide @ Html.ActionLink in @foraech with Razor

My problem is that I want to hide the @Html.ActionLink from this view: <table class="table"> <tr> <th> @Html.DisplayNameFor(model => model.Subject.Name) </th> <th> @Html.DisplayNameF...
asked by 03.04.2018 / 01:03
1
answer

mvc recover data from view and refresh

I have only one view in my project, of which the user has to enter a client name to look for it in a mailbox. <form action="registrarCliente" method="post"> <input id="textCliente" name="textCliente" /> <input id="btnAdd" type...
asked by 07.02.2018 / 09:36
1
answer

Help with a list type object or modify code to make it work

I am working on a project in which I have to show boxes that enter an inventory, what happens is that of these boxes I have to show some of their data that are what type of pieces, according to their date of entry to the inventory show a number...
asked by 06.02.2018 / 22:51
1
answer

how to replace a file when they stop using? C #

I am making an application that shows some pdfs and has two accesses, one the user that views them and another the administrator that updates the pdf. The problem is that updating the files will give an error if another person is viewing them....
asked by 30.01.2018 / 17:22
1
answer

Unable to load the file or assembly 'Microsoft.CSharp

I have the following problem and I can not find a similar problem anywhere, has anyone had it? The following error appears in the console when debugging my web project. No se puede cargar el archivo o ensamblado 'Microsoft.CSharp, Version=4...
asked by 18.02.2018 / 20:10
1
answer

Change color selected item in CheckBoxList, C #

Is it possible to change the background color of the selected item in a CheckBoxList? Something like this: foreach (var item_select in checkBoxList1.CheckedItems) { checkBoxList1.Items[item_select].BackColor = Color.SeaGreen; }...
asked by 23.01.2018 / 19:52
1
answer

C # MySql Connection Error

I'm doing a project in C # but when I try to make the connection to the database it does not open and it generates the next error this is my code private void Form1_Load(object sender, EventArgs e) { try {...
asked by 23.01.2018 / 20:01
2
answers

validate existence before inserting

Hello good afternoon everyone, I previously asked this same question but I was recommended to open a new thread, I have to validate that before making an insert check if that record exists. If it exists, show me an alert message and ask me if I...
asked by 03.08.2018 / 17:21
1
answer

How to make the text appear in a new line in a table

I'm working with mvc, but when I show a table it appears like this link This is my view <table class="table"> <tr> @for (int i = 0; i < Methods.CurrentTable.GetColumns().Count(); i++) { <th> @...
asked by 03.08.2018 / 21:54