Questions tagged as 'c#'

0
answers

The input string does not have the correct format. C # SQLServer

Good morning, first of all a greeting, the error that I have is the following:    The input string does not have the correct format. I'll leave the code below, once I select the edit button to send the data of GridView just e...
asked by 27.06.2018 / 18:20
2
answers

avoid repeated number in an array in c #?

I am trying to create a small program in C# that requests 7 number and validates and avoids the repetition of an array number (whole), this is my code: /* 24. Arreglos 2. Un programa que lea 7 valores enteros diferentes y los introd...
asked by 25.01.2018 / 03:47
1
answer

Fill a DropDownList with Date. ASPX C #

Hello! How can I fill a DropDownList that stores me the last five previous dates beginning with, say, today? 06/28/2018 06/27/2018 06/25/2018 And when selecting a date I upload a GridView that is linked to a database; a table that contai...
asked by 28.06.2018 / 15:41
0
answers

XamarinForms-error CS0246: The name of the type or namespace 'X' (missing a using directive or an assembly reference?)

Today in the morning I had this problem and I have not been able to solve it, I understand that the error CS0246 indicates that I am missing some reference, I have tried to add and remove the reference of the application but I have not obtaine...
asked by 25.06.2018 / 22:07
0
answers

Message from Timeout Forms Authentication

I need to show a message when the session of the cookie ends but I do not know how to do it. <authentication mode="Forms"> <forms loginUrl="~/Home/Login" timeout="10" slidingExpiration="true" name="KeyAuth" /> </authentica...
asked by 25.06.2018 / 18:07
0
answers

Do not enter a debug point when I try to make the OnValueChanged event in a HiddenField?

I want to make certain that the value of my textbox that is hidden is certain actions in my codebehind and apparently it should work with the OnValueChanged event but when I try to debug that part of my code it just does not work stops an...
asked by 30.06.2018 / 16:28
0
answers

SQL query does not filter by combo

I have a query in sql that according to a combo search by families of the product, work shifts or code of a product, both the code and the work shift if I do the query but by the group or product family no. could you help me I'm a bit new to SQL...
asked by 29.06.2018 / 14:53
2
answers

How can I send an Arrangement in the post using JSON?

I have a function in ajax that creates an arrangement of an object and sends it to the PageModel with a post. function guardarOrden(data) { return $.ajax({ contentType: 'application/json; charset=utf-8', dataTyp...
asked by 26.06.2018 / 20:03
0
answers

Report Viewer does not present data

I managed to do everything correctly in the Oracle connection and everything works for me, but when the web form appears, the report viewer reports nothing. This is my code: using System; using System.Data; using System.Data.OleDb; using Micro...
asked by 26.06.2018 / 19:05
1
answer

How do I perform a linq query that orders my result in a group?

What I want to do is a group by in my linq query, but I do not really know what the correct syntax is so that it gets it right: Current Code: public List<Section> getSectionsClass() { var context = GetDbContext(); return (from...
asked by 26.06.2018 / 18:48