Questions tagged as '.net'

1
answer

How to serialize a dateTime displaying in dd-MM-yyyy format hh: mm: ss

How do I send to View() of my Controller in Json format, the date formatted in the dd-MM-yyyy hh:mm:ss pattern? In the data transport between View and Controller I'm using AJAX. public ActionResult GetList(Object abc) { ......
asked by 06.01.2017 / 20:23
1
answer

Is it possible to validate the import of an excel file with regular expression?

I'm importing an excel file using asp.net and validate to see if it's really an excel or not. I do not want to use if and else , so I'm trying to do this through annotations . My main idea now is to use regular expressions , I...
asked by 15.12.2015 / 20:49
2
answers

Error: "connection rejected by remote interface" using Firebird 3 in .Net

I have an application in asp.net, which currently uses firebird 2.5.1 and works normally. I am testing version 3.0 Release Candidate for migrate the version soon, but does not open the connection, the following occurs: error:    "connection r...
asked by 16.12.2015 / 13:14
1
answer

Sql generated by Linq

Hello, I would like to know how to view the sql code that a linq expression generates to be run by ADO.Net. I'm using NHibernate as an ORM framework.     
asked by 03.03.2016 / 20:49
1
answer

"arithmetic exception, numeric overflow, or string truncation string right truncation" in search using LINQ

I have a table in a Firebird database CREATE TABLE CIDADE ( CID_CD SMALLINT NOT NULL, CID_DS CHAR(20) NOT NULL, CID_UF CHAR(2) NOT NULL, CID_DISTANCIA_SEDE SMALLINT NOT NULL, CID_CD_ALTERNATIVO INTEGER...
asked by 08.01.2016 / 17:13
1
answer

UserControl x Form - Cancel screen event after UC validation

I have a UserControl, which does a validation on the Validated event, and on the screen, I have the Confirm button. When I use the ALT + C shortcut to run the button event, it will perform validated event validation, and then the button event...
asked by 21.07.2015 / 22:35
1
answer

Disable Scrollbar from a Form MDI Container

Does anyone know how to prevent Child Forms from moving across the screen and displaying a scrollbar? I wish there was a limit to move the Child Forms ... That they only move up to the size of the screen and do not pass it I do not wan...
asked by 01.06.2015 / 22:53
1
answer

Insert objects into an Array without copying them

Is there any way I can put items in Array without multiplying them? I'm trying the following. I want to add the items from the MethodList list in the toAdd list, but without repeating what is in the sourceItems list:...
asked by 04.06.2015 / 02:39
1
answer

Windows Service 'System.TypeInitializationException' at startup

Hello, I'm creating a windows service to perform a backup job. I have created other services before but never had a similar problem. It was all going well, during the development I installed the service on a computer and was running it nor...
asked by 14.04.2015 / 00:54
1
answer

Transitions, Effects for WinForms .NET

How to get the effects of fade-in and out, transitions, moves, and so on, in forms and their controls in VB.NET, natively or with FrameWorks?     
asked by 28.04.2015 / 14:37