Questions tagged as '.net'

1
answer

Is it possible to return the child class through a method in the parent class?

I am doing a builder and would like it to have the following behavior: abstract class ClassePaiBuilder { public ClassePaiBuilder SetAtributo(string atributo) { // codigo return this; } public string Build()...
asked by 16.10.2015 / 02:13
1
answer

Generate sequence key based on sum of digits

   I have a cyclic function where an initial string can have any value in the check digit, but all future submissions receive a previously calculated value. In this function, I get a string (which will always be a number) and in thi...
asked by 16.10.2015 / 20:00
2
answers

Error configuring application on IIS Local (Integrated pool)

Save personal, I am new to .NET and am having an error creating an application on the local iis. Below exception and my pool print. My iis resources and project are the same as a friend and on the machine it works. Does anyone know what...
asked by 15.10.2015 / 04:49
2
answers

Simplify LINQ p = p.Type.ToUpper (). Equals ("S") && p.Mode.ToUpper (). Equals ("S") ..., n

How to simplify the LINQ expression? p => p.Tipo.ToUpper().Equals("S") && p.Modo.ToUpper().Equals("S")...,n     
asked by 05.10.2015 / 23:50
2
answers

Javascript - Populating a field with paragraph

I'm developing a javascript to populate a text box, however I came across a situation that is generating me difficulty. I need popular with this message for example: TEST TEST TEST But I can not bring row breaks when I populate the f...
asked by 28.08.2015 / 15:30
2
answers

WebServices with C #, do de-para

I need to create a WebService to export products. Creating the WebService is fine, but depending on the client, I will have to change the name of the elements. Example, Product Code element: Generic <codigo>1</codigo><d...
asked by 17.07.2015 / 15:45
2
answers

Digital Signature of RPS Batch (NFS-e) error: Badly formed reference element

We have a system that sends lots of RPS to prefectures of several cities of Brazil. The system was sending the batches of RPS without any problems, but last Friday (11/03/2016) it stopped working and returned the message: Malformed reference el...
asked by 16.03.2016 / 16:05
1
answer

Storing data temporarily in ASP.NET MVC

I need to store some strings temporarily in an ASP.NET MVC application, these strings need to be accessible by the application's server-side at any time, and the application itself will be in charge of undoing those stored strings . What is...
asked by 28.03.2016 / 16:22
1
answer

FolderDialog in ConsoleApplication C #

I have a question regarding Console Application, how do I open a window similar to this one where it is possible to select a FOLDER? ItwouldbeafeatureequaltowhatexistsinWindowsFormswhere FolderBrowserDialog . I use the .NET Framework 4.5.   ...
asked by 18.06.2015 / 21:24
2
answers

Datepicker Asp.Net

I'm developing an application and would like to put the date field when it's clicked it displays a calendar for selection in this style: datapicker , but I do not know how to do it.     
asked by 22.06.2015 / 19:38