Questions tagged as 'c#'

1
answer

Extract date as String Sqlserver C #

When I run a query on sql server from C # the fields of the date type are extracted as Date(1445580000000) when formatted in JSON. Although in the query specify the CONVERT to do so in yyyy-mm-dd , the same thing happened to m...
asked by 27.10.2016 / 01:28
3
answers

ASP.Net MVC - Send data from a view to a controller

How do I do the following? I have a classic view with tables created with razor as follows: ... @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.a) </td>...
asked by 24.11.2016 / 21:50
1
answer

Touring a DataGridView in C #

I need to pass all the data from a DataGridView to a database in MySQL, the only option to do is going through DataGrid and inserting. My previous code was: foreach (DataGridViewRow dgvRenglon in dtaPagos.Rows) { MessageBo...
asked by 09.02.2017 / 05:05
2
answers

Signalr in webBrowser1 C #

Someone with a little experience can help me. I have a chat application with SignalR on a host that in functional browsers 100% But I want to load that web application in a webBrowser control of Visual Studio (C #) and I get an error when i...
asked by 30.03.2017 / 18:34
3
answers

Error "ExecuteNonQuery: Connection property has not been initialized."

Why do you return the following error?    ExecuteNonQuery: Connection property has not been initialized. Code: public bool IngresarUsuario(Prueba objeto) { using (SqlConnection con = new SqlConnection(strConnection)) { t...
asked by 07.11.2016 / 22:38
2
answers

Solve cors problem in portal azure

I have an API to consume an uploaded service to my azure portal, but I have the following problems:    OPTIONS [ API path ] 404 (Not Found)    XMLHttpRequest can not load [ API Path ].   Response to preflight request does not pass acc...
asked by 04.04.2017 / 18:50
1
answer

C # Syntax of Arrangement Arrangements

We are seeing multidimensional arrays and I could understand them, but I can not find the syntax for an array arrangement, I want a 3-dimensional array arrangement for example int[][][] tabla = new int[][][]; and I want to access an elemen...
asked by 04.04.2017 / 10:22
1
answer

How to get the time, using a textbox

I am developing something similar to an activities agenda, in which the user can choose the days in which he wishes the agenda to apply as well as the activities of the same, the problem that I have is that in the agenda the user you must choose...
asked by 25.10.2016 / 19:15
2
answers

could not find the file or assembly name "System.Core"

When I run my application directly from the mobile device this throws me this error, I check in my project and the assembly if it is there with the version that indicates the error that is 3.5.0.0 what would be the solution for this error t...
asked by 24.10.2016 / 19:34
1
answer

Connection c # with postgresql

They could help me with my connection to register data private void btnAgregar_Click(object sender, EventArgs e) { try { NpgsqlConnection cn = new NpgsqlConnection("DRIVER={PostgreSQL ANSI};" + "SERVER=localhost;"...
asked by 17.10.2016 / 19:35