Questions tagged as 'asp.net'

1
answer

Jquery Selector in a User Control, inside a gridview

Good afternoon, I have the following code: <asp:GridView runat="server" Style="border: 0px !important;" ID="gdvDadosHistoricoMedico" OnRowDataBound="gdvDadosHistoricoMedico_RowDataBound" AutoGenerateColumns="fals...
asked by 07.05.2018 / 22:21
0
answers

How can I access the IDs that are inside a GridView?

Example: I want to get the value that was typed inside this TextBox and as soon as I trigger the event of the bthResposta button I can retrieve it to be able to set the properties of the class ./ Obs. To access this field, I c...
asked by 14.05.2018 / 18:25
1
answer

receive date from the datapicker as a Date

I placed on my site in asp.net the datepicker of this site and I want to receive the value as Date instead of String, so that it does not trouble with the date type of other countries. /* Brazilian initialisation for the jQuery UI date...
asked by 02.05.2018 / 17:37
0
answers

Get a column value from a ListView asp c # when clicking the link a

I want to get and pass to another page a value from the listView column. The ListView fields: ID: 01; Name: Daniel; Field: field; <%# Eval("campo").ToString() == "nada consta" ? "nada consta" : Eval("campo") + "<a href='Promocao.aspx'>...
asked by 13.06.2018 / 20:22
0
answers

Conversion failed when converting the varchar value '@userID' to data type int

The error is what is in the title, conversion char to int. "Conversion failed when converting the varchar value '@userID' to data type int." Thanks for any help and if you have any tips on good practice, it's even better, because I'm new to this...
asked by 10.04.2018 / 20:48
1
answer

Add dynamic gridview checkbox

I'm adding the gridview fields via code, but the checkbox does not appear, instead of the checkbox, it appears: "System.Web.UI.WebControls.CheckBox" Here's how I'm doing: CheckBox check = new CheckBox(); if (Session["dt1"] != null) {...
asked by 03.05.2018 / 19:30
0
answers

Get first row and first column gridview JavaScript

I'm trying to get the value of the first row and first column of the gridview through javascript, however it is returning error. Here's how I'm trying to do it: var grid = document.getElementById("#<%=GridView12.ClientID %>"); var cell =...
asked by 27.03.2018 / 15:14
0
answers

Validate user token of multiple applications in a single OAuth2-based authentication WebAPI

I am in the following scenario: I developed an API that is only used for authentication and authorization of company users, which I am calling SecurityAPI. All services work as expected and the API is based on OAuth2. In the company I have...
asked by 27.03.2018 / 15:33
1
answer

Change the dynamic menu item in asp.net, from "mouse hover" to click

I have a dynamic menu in ASP.NET and one of these menu items contains a submenu, however to access this submenu a mouse hover event does not appear in my code. I need to change this "mouse hover" event to click somehow, even if it is by css or j...
asked by 25.04.2018 / 14:33
1
answer

How to get the percentage of Postgre database storage space through EF Core in Asp.net Core

I need to create in my application a feature that checks the database ( PostGreSQL ) for the percentage of storage space used to be displayed on a chart. I have a generic repository, and I thought about creating a GetStorage() fu...
asked by 19.03.2018 / 00:07