Questions tagged as 'c#'

0
answers

Service that detects if an image is captured from a scanner

I am working with a Twain scanner application using this library for C # and I am interested in that application detecting if has scanned an image independently (without the application requesting the acquisition of the image). I have reviewed...
asked by 04.04.2018 / 10:06
0
answers

Why does not the pageindexchanging gridview event work for me?

Hi, I have a gridview in asp .net and I use the following code to change the page in the griview and it does not work. This is my code: <asp:GridView ID="grid1" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexC...
asked by 19.03.2018 / 19:38
0
answers

Query Entity Framework c # with two types of data

I want to know if I have these two values in my table for verification the data type I get error using (RARGEntities datosEntity = new RARGEntities()) { RegistroDatos datos = datosEntity.RegistroDatos.Where(x => x.CodPersona == CodP...
asked by 16.03.2018 / 14:15
1
answer

Modify user in app.config

I have a dll where user and password are passed through the app.config to the webservice and I would like to see how to do this so that instead of passing a hardcode a variable is passed which can then be reported to the dll in time execu...
asked by 21.03.2018 / 15:16
2
answers

Access query with c #

I'm doing an Access query in windowsForm I get an error when changing the fixed dates by dateTimePicker how can I make the date the right way, that it works p> OleDbDataReader read = MSAConnection.read(@" select p.cod,...
asked by 16.03.2018 / 16:02
2
answers

Delete table record with composite key

I'm starting to use EntityFramework and MVC in C # .NET, and I have a problem trying to delete a record from a table that uses a composite key. Driver: // GET: DocenteCursoes/Delete/5 public ActionResult Delete(string curso, string do...
asked by 13.03.2018 / 20:18
0
answers

Does a server have access to the internet to run a .NET page inside an intranet?

Currently working in local mode with a Web application developed in .NET using c #, Html and JavaScript, which works perfectly (in local mode). But, when I do the publication in the server of this Web App, the functionalities of it are lost,...
asked by 13.03.2018 / 16:37
0
answers

Error on the remote server: (414) Request-URI Too Long. C #

private void Send() { string sql = @"SELECT cod, Format(fecha, 'Short Date') as fecha, Format(hora, 'Short Time') as hora, Num, 1 as Tipo FROM Contro...
asked by 13.03.2018 / 14:50
3
answers

How can I make a Vista pass a ListModels to a controller? One of the fields of the Model is loaded by the user in the view

I have a view that corresponds to a survey. It is loaded with the questions and at the same time in the last column has a DropDowList with the possible answers. The problem I have is that I can not get my controller to receive the data of the qu...
asked by 13.03.2018 / 13:49
1
answer

obtenet information field in select distinct sum Linq

I have a list of elements as follows public class MedicamentoDevolverDto { public int IdMedicamento { get; set; } public string CodigoMedicamento { get; set; } public string Medicamento { get; set; } public int StockActualC...
asked by 10.03.2018 / 15:05