Questions tagged as 'asp.net'

1
answer

How to start the ASP.NET State Service?

I set up my Web.config with the following statement: <sessionState timeout="30" mode="StateServer" /> But when I run the application (an ASP.NET site), I get the following error:    Can not make the session state request to...
asked by 09.09.2017 / 17:52
1
answer

Incorrect mime for XLS files

I'm doing a migration of a certain system written in ASP.NET (site) and in a certain part of that system there is a place where a XLS file is uploaded. There is a check against the mime type of the file to see if it is actually an XLS...
asked by 14.07.2017 / 13:43
0
answers

DropdownList with Modal

Good afternoon. I have a screen with a grid made in webforms, and clicking on the button in the grid, a modal with the corresponding registry information is displayed. In this modal I have some dropdownlist attached to tables. Only if I put the...
asked by 06.06.2017 / 19:12
0
answers

How to set language according to .resx file

I am aware of the existence of this question: Internationalization using ASP.Net MVC But I have some doubts. I have these language files (I'll have more in the future): Thesysteminquestiondoesnotgiveanypostbackinthepages,soIcannotcha...
asked by 18.04.2017 / 15:37
2
answers

The conversion failed to convert the varchar value 'No' to the data type tinyint

I am trying to solve an error I think of converting a variable created by me to store data that is in an Excel sheet. The error happens when I try to insert the data that is in this variable in the SQL Server , that is in the (query)....
asked by 03.03.2017 / 18:11
1
answer

An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code asp.net

I'm having trouble getting this error resolved. My purpose is to collect data from an Excel file storing it in C # variables, which in turn will be inserted in SQL Server 2012. Reading is done line by line. Here is the code where the error happe...
asked by 24.02.2017 / 10:50
1
answer

JSON conversions

I am a beginner in C # and ASP.NET, and I have doubts about JSON and dictionaries I have a serialized dictionary that has been stored in the database with: var json = new System.Web.Script.Serialization.JavaScriptSerializer() .Serialize(fil...
asked by 05.09.2016 / 16:19
0
answers

Keep Tab Selected After PostBack

I'm trying to keep the selected tab, after postback, I'm trying to do it this way: <script type="text/javascript"> $(function () { $("#myTabs").tabs({ activate: function () { var se...
asked by 29.08.2017 / 13:42
1
answer

How do I use an existing database in an ASP.NET MVC C # and Identity application?

I need to authenticate users. So I created my database with all my business rules, made the connection to the ASP.NET MVC application, and started programming. Now, when I was doing the part of user I noticed that there are two connection...
asked by 12.10.2016 / 13:55
1
answer

Pre-filled model returns null in HttpPost

I'm building a page in the ASP.NET project where I have a model that contains 2 lists, which I fill in one initially in the get and then go to the View where I fill in another list, but when I receive this object, it returns me with all data in...
asked by 12.09.2016 / 22:58