Questions tagged as 'asp.net'

1
answer

Use LINQ aggregator dynamically

I'm trying to create a function to use Linq aggregator functions (sum, average, count) and I'm not succeeding. I have the following code: private double AgreggateDynamic<T>(IEnumerable<T> list, string propertyName, string func)...
asked by 22.01.2016 / 20:24
1
answer

Meaning of expression% # "example"%

I'm used to seeing expressions like <%= "Olá" %> but I came across a code: <asp:Image id="imagemStatusDocumento" runat="server" ImageUrl='<%# ObtemImagem(Eval("NomeTipo")) %>' /> Highlighting the...
asked by 27.10.2017 / 14:41
3
answers

'NT AUTHORITY \ ANONYMOUS LOGON' failed in SQL Server 2012 on remote server

I have a cool running application on my local server. I made some changes to it and prepared to publish a test approval environment. Since we are migrating the local banks and servers to a new data center , I decided to test the new applic...
asked by 24.09.2014 / 20:50
1
answer

LINQ Lambda | Query Syntax VS Method Syntax Performance [duplicate]

Doubt regarding construction and performance of querys using Query Syntax and Method Syntax / LINQ Query Syntax: var VendorQuery = from v in vendors where v.CompanyName.Contains("Toy")...
asked by 27.12.2018 / 10:58
1
answer

Problem with the datakeynames property of the listview component

I get the following error when running the application:    Message = DataBinding: 'DataMinds.Models.Focus.FlowerObject' does not contain a property with the 'Sector.Code' name. The error message refers to the ListView component, wh...
asked by 26.08.2015 / 16:57
2
answers

How to copy a repeater on the same page

I have a repeater control with data filled in an aspx page, the same page has the modal, the modal appears at the click of a button. How do I reuse the same repeater to list in the modal? Repeat: <asp:Repeater ID="rptPagamentos" runat="...
asked by 29.04.2015 / 15:21
2
answers

Add class to a DataTable

I'm making changes to a pagina.aspx of a system, however many things are generated through language functions. <table id="ctl19_tableAreas" style="height:100%;width:100%"> <tbody> <tr style="height:249...
asked by 24.11.2015 / 05:58
1
answer

Doubt on behavior $ .post and $ .ajax

I've always been accustomed to using $.ajax() for all my type requests, and this works perfectly. An example that is even occurring now is the following: $.ajax({ type: "POST", url: "XmlTree.aspx/GetChildren", d...
asked by 28.08.2017 / 20:16
0
answers

How to use OAuth in ASP.NET 5?

In versions prior to ASP.NET 5, there was a middleware called "OAuth Authorization Server Middleware" that allowed adding an OAuth server to the pipeline and configuring token generation. The middleware was easy to use, worked well, and gave acc...
asked by 05.06.2015 / 14:35
1
answer

Select button with one click and only open with two clicks

I have an ImageButton in webform that represents directories in a grid using repeater. How to do that with 1 click just select the button, and only open with two clicks? <asp:Repeater ID="rtInlineBlock" runat="server">...
asked by 25.02.2015 / 21:18