Questions tagged as 'asp.net'

1
answer

ASP.NET EntityFraord - Grid with Paging

I'm building an asp.net application using entity framwork. To load the grid I use the following instructions: var lista = entity.Usuario.ToList().OrderBy(x=>x.nome); grid.DataSource = lista; grid.DataBind(); But w...
asked by 09.05.2018 / 17:07
1
answer

Using date picker in asp.net

I'm creating a site in asp.net (vb) with a master page behind it and I can not get the date picker to work Can you help me or indicate a date picker even for the nuggets?     
asked by 30.04.2018 / 11:23
1
answer

Getting value inserted in asp.Net text field

I have GridView and in one of the columns I have a textbox field where I enter values in them. I would like to know how I get the values typed from the fields, I've already done the following: for (int i = 0; i <= gvTeste.R...
asked by 12.04.2018 / 14:00
1
answer

Problem when changing entity with E.F and Dapper [closed]

I have a Dapper query, where I search for an entity: var fatura = ObterPorClientedEDataVencimento(cobranca.ClienteId, cobranca.DataCobranca); The Method and properties of my entity are in this Gist , I put it there just so the questio...
asked by 22.03.2018 / 12:50
1
answer

Open webpage asp.net

I created a program where I have a form in vb and a web page in asp.net. I wanted to know how to open the webpage by clicking on a button that is in the form of vb     
asked by 20.04.2018 / 13:20
1
answer

LinkButton with Eval ListView asp.net

I want to do this <%# Eval("campo1").ToString() == "nada consta" ? "nada consta" : Eval("campo1")%> inside the linkButton <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl= '<%# "~/Promocao.aspx?ID="+Eval("...
asked by 15.06.2018 / 16:14
1
answer

Json Date / Date Return (1519339100637) /

Good evening, I'm working with Ajax to return a json that contains a data in Datetime format but I'm getting string /Date(1519339100637)/ . How can I convert to date and time format 23/02/2018 12:00:00: Ajax function: &...
asked by 24.02.2018 / 00:13
1
answer

Treat Action Return in JSon Format

Colleagues Devs, I have an application in C # and ASP.NET with an Action that returns an array in JSON. When I return only one string I get handle with javascript now, when I return an array I do not know how to handle it in javascript. Follo...
asked by 06.02.2018 / 11:20
1
answer

How to load Image from FileUpload to asp: Image tag?

My question is how to load the direct image from FileUpload to the tag <asp:Image> And if it's possible to do these validations on the client side and do the type and size validations via jQuery. Follow the code below:...
asked by 20.02.2018 / 20:08
1
answer

Create nuget package from a REST API Web application

I have a web service API REST in ASP.NET CORE 2.0 several projects (layers) in it. However, for larger forces, it can not be used as a service. It was then suggested to create a nuget package for this WEB API. I've never created a nuget packa...
asked by 10.01.2018 / 21:59