Questions tagged as 'c#'

1
answer

Called Ajax with C # does not work

I created a project in VisualStudio 2015, a template ... The problem is that I can not make calls from jQuery Ajax. What is the reason? C # [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public static Response&...
asked by 24.05.2017 / 17:45
2
answers

Error updating data from a GridView with DropDown

I have a GridView in which I bring information from the database, and with it I also fill DropDownList but when I want to edit the records this fails and tells me that it could not be converted from DropDownList a String...
asked by 24.05.2017 / 16:49
2
answers

How to invoke a public static int variable in c #

I am doing a questionnaire, and I need to add the variables of several forms. First I declare them as public static int , and I call them from a form that executes a graph. This is part of the code that I use to invoke my variables. But at...
asked by 25.05.2017 / 03:44
1
answer

Change images of a groupbox with a click on a picturebox in C #

Good afternoon. I need your help please. I'm a computer student and I'm doing a fast food sales system project. In the program I have in a form, in the designer 2 groupbox and a datagridview, in the first groupbox I have 4 picturebox with...
asked by 24.05.2017 / 20:54
0
answers

Generate dynamic tables for word by code in VB.net

Hi boy, I have a query that I am generating a table for a word document using code, I have a word that I use as the base where the title comes from, a paragraph and a row with 5 columns that are the heading I want for the table that genre by vb....
asked by 24.05.2017 / 23:35
1
answer

File.Exists (path) returns unexpected result

I am new working with C # and I need to know if certain files exist in a directory, which is in the same location as the app. For this I use File.Exists(path) , but in all cases it returns false while the paths of the analyzed files...
asked by 18.05.2017 / 17:55
2
answers

c # class to manage different BD providers

I have the following code, this class where I define the interface namespace classBD.clases.connexiones { public interface IConexion { void OpenConection(); void CloseConnection(); void ExecuteQueries(string Qu...
asked by 18.05.2017 / 08:03
0
answers

Error when including a webform file in a view for MVC C #

Along with saying hello, I wanted to ask for your great help: It turns out that I want to incorporate in a view, a partial one that is a webform: I have a view called See: public ActionResult Ver(){ return View(); } in the cshtml I call...
asked by 18.05.2017 / 05:39
1
answer

autocomplete textbox / combobox and gridview

I give up, I have not found an answer, I am a beginner in C # and I have a class where every weekend the teacher leaves us a challenge-type task, and this time it was a search engine, but using the data generated via a code. single column of the...
asked by 20.05.2017 / 02:22
2
answers

Formula Casteo Decimal asp.net

Good afternoon: I'm making a Nominal Rate formula for that they gave me this formula: = (((TEA + 1) ^ (1/12)) - 1) * 12 decimal x = 3.141592654M ; double pi = (double) x ; dtorequest.Tasa = Convert.ToDecimal((Math.Pow((Convert...
asked by 08.06.2017 / 22:59