Questions tagged as 'c#'

1
answer

How to send a .js function from an asp.net button?

As I command to call a function of javascript from asp.net, I already did it of different forms, but it marks to me undefined, empty field, or it did not mark to me nothing and as far as I respect the form to do it is thus. / p> Code to obtain...
asked by 24.03.2017 / 22:42
1
answer

How to show pop-up window asp c #

Good afternoon. I would like you to help me, I'm doing a modal that runs as long as it registers and an error message appears. So far what I have achieved if you register but the modal message is not displayed. I'm doing my insertion wi...
asked by 24.03.2017 / 20:38
1
answer

Countdown depending on the dates of a list [closed]

Good, my query is the following I have a windows Form as in the following image. What I'm looking for is that when I hit Start. the time above only count the total seconds to the back. Until reaching zero. It will then be when that date...
asked by 31.03.2017 / 21:50
1
answer

Get the path of a resource c #

I have the following resource included to my project: Is there any possible way to get the resource path or an alias to call it? Since it is essential that you can know the route or alias of the resource to be able to use it, f...
asked by 01.04.2017 / 00:17
1
answer

Can objects have the same name in a class? [closed]

I am starting in the world of programming, I have named two objects with the same name and there is no error. I have a method that instantiates the class with this line: clsDatos objdatos = new clsDatos(); ... and another method that ins...
asked by 16.03.2017 / 18:50
1
answer

Change the color randomly for each column in a Chart c #

Good morning, I have a program that allows me to graph by connecting to a database. But, I would like it to change color automatically for each column, since it only allows me to keep a color (blue) in the graphics area. This is the method th...
asked by 10.03.2017 / 16:06
2
answers

How to get the values of the view to the MVC controller - RAZOR

I currently have this code in a view, and I want to get all the values to pass them to the controller and create them in the database I have 2 models Subjects: namespace CalculaNotas.Models public class Materias { public int materiasId...
asked by 17.03.2017 / 03:43
1
answer

Remove elements from a two-dimensional array in C #

I am doing a program that simulates a database of a library, which should allow operations such as entering new books, unsubscribing, consulting and others, this is the code I have: using System; using System.Collections.Generic; using System....
asked by 11.03.2017 / 17:45
2
answers

assignment of values to compound classes C #

I have the following problem, which may seem a bit silly, but I do not give with the answer. I have the next class public class miClase { public int miId {get; set;} public string miString {get; set;} public tipo1 miTipo1 {get; set;} }...
asked by 10.03.2017 / 20:17
3
answers

C # ASP.NET - Web service works on Win 7 but not on Win 2012 Server

I did a development in C # ASPX on a Win 7 platform and in this the web services (REST) work perfectly. I recently deployed in a Win 2012 Server and I have a special WS that brings the dollar change (TRM) from Banco de la República (Colombia). I...
asked by 15.03.2017 / 14:50