Questions tagged as 'asp.net'

2
answers

Set model property in javascript variable

I have an Action Usuario that displays user details among other actions that can be performed. I also have a javascript code that needs to part of setting a model property in the javascript variable. Here is the code below: @mode...
asked by 23.07.2015 / 20:44
1
answer

Create list of Actions with parameters and then execute it

I would like to create a list of Actions with parameters and then make a foreach in that list and exit executing the methods, each with their respective parameters. Something more or less with the code below. private List<Action&...
asked by 21.02.2018 / 22:17
2
answers

Calling an asynchronous and synchronous method

I have a synchronous method, in it I call another method of another controller that would have to be executed asynchronously. I call this another method this way: Task.Run(() => _notificacaoController.NotificacaoIosTodos(titulo, c...
asked by 10.05.2017 / 16:43
2
answers

How to edit data from a Table after postback in ASP.NET?

I have a Table in a Web Form in ASP.NET and just below in the same form I added a TextBox in which you fill in the fields to add a new row to the Table. The insertion part in the table works fine, but only once the second time I try to add anoth...
asked by 19.12.2013 / 16:07
1
answer

ASP.NET Text-Box Character Limiter

I'm trying to implement a character limiter for this text-box, but I have no idea how to do this. It is a page of insertion of posts in a portal and the title must have a limit. <div class="form-group col-md-12"> <div class="form-...
asked by 25.08.2017 / 21:56
2
answers

How to save and retrieve all Sessions of a user

I'm developing a system in which I need to recover all users logged in or logged on to the server. Context: When the user logs in to the system, in addition to creating the session , I save the information with the logon date and session tim...
asked by 28.10.2014 / 19:34
2
answers

Decimal variable removing the decimal places

I have a variable in decimal that receives a value from a textbox , but when this variable receives the value with decimal places it removes the decimal place and stores the value without it. p> What happens: TextBox value: 2.5;...
asked by 27.01.2015 / 13:15
2
answers

Different databases for the same application asp.net C #

In a club management system each club has its own database. There is a DAL class where it is in charge of getting the web.config to string from application connection . How to ensure that the login application loads the correct...
asked by 15.01.2015 / 14:17
1
answer

Foreach or is within an Anynimous Type C #

I am putting together a return of an Api in JSON , and the return I am in AnynimousType I believe that is how it is called, in it I name the variables as they will for Json, I needed to make a foreach to return the parcels, of a form o...
asked by 01.12.2018 / 06:29
3
answers

Click on a tr to open a link

In the site I'm doing, there's a need to click on a row of the table it redirects to another page, but the row's id's are dynamic because each row should redirect to a page that shows more information. My View: @foreach (projeto1.Entidade.P...
asked by 21.03.2017 / 15:05