Questions tagged as 'asp.net'

2
answers

Change layout of a radioButtonList / checkBoxList WebForms to be compatible with Bootstrap

As is well known, the default layout format of a radiobutton or checkbox in list controls in Asp.Net WebForms is always something like <label></label><input> I wonder if there is any decent way to change the display layou...
asked by 26.02.2014 / 14:38
2
answers

How to call an ASPX page function in another project?

How to call an ASPX page function in another project? When I click on insert I call a project to make the business rules, at some point I need to call a C # function that is on the page and after the return of this function continue in the ma...
asked by 03.04.2014 / 14:38
1
answer

Check C # threads

I'm trying to understand the code below, but to no avail. From what I've researched, GetMaxThreads returns the maximum number of available threads and GetAvailableThreads what it has available. In the case of the output below, is t...
asked by 25.09.2014 / 22:11
1
answer

User property, utility and possible casts

For educational purposes, I was looking at the User property of the Asp.Net MVC Controller class. I saw a example , very interesting , that a base class for controllers has been implemented and it has the CurrentUser property:...
asked by 25.09.2014 / 15:24
1
answer

Response.Write / Flush hangs after many calls

DISCLAIMER: I asked the same question in StackOverflow in English, I'll carry the valid answer from here to there, if necessary, but I know that not all users here access the StackOverflow in English, so I intended to extend the radius of resp...
asked by 01.07.2014 / 19:54
1
answer

Changing a TextBox for Multiline while maintaining CSS

I have a web application with several TextBoxes. However, I need some of them to stick with Multiline because of the text they will contain. Every time I make this change I lose the CSS settings. From what I've researched it seems to me that the...
asked by 01.07.2014 / 13:23
1
answer

Sorting decreasing!

In my cshtml page I have a foreach that reads this information from the database and plots on the screen in the form of a checkbox, I am trying to sort or reverse in descending order on the screen, but I am not getting it, it follows the informa...
asked by 21.12.2018 / 18:32
1
answer

How to disable the Zip Mask to save only the Digits numbers when doing a Post - Asp.net MVC

I'm using a Remark component that has a data-plugin="formatter" in which to apply a zip mask in field . The field has size of 8 characters, but with the mask it gets 9 because of "-" (Ex: 29780-000). When saving the re...
asked by 12.12.2018 / 23:58
1
answer

How to work with Foreign Keys in C # ASP .NET Core?

Good night, guys. I'm a beginner in C # ASP .NET Core and I'm having problems with Foreign Key. I need to populate a combobox with data from a database table. The following is my model Seller using System; using System.Collections.Generi...
asked by 21.11.2018 / 22:07
1
answer

How to pass a parameter along with the Model to a PartialVIew when rendering it

To create some fields dynamically, I'm using a for and rendering. When calling Partial _Contact, I would like to pass the value [i] of the index of for so I can sort the fields. It's not working ... You're giving the page error ... does anyone k...
asked by 23.10.2018 / 23:52