Questions tagged as 'asp.net'

1
answer

Checbox Selected List View

I have ListView where in the end I have a CheckBox referencing my data. I need to create a button that triggers a method that traverses% selected% and takes its value. How to do this method? <asp:ListView I...
asked by 23.01.2017 / 14:00
1
answer

Create thumbnail without stretching / shrinking image in C #

I have this code that creates thumbnails for my project: //**** INICIO GUARDA THUMB ********** // valores para altura e largura do thumb: int resizeToWidth = 260; //px int resizeToHeight = 260; //px //busca-se a main image Image thu...
asked by 09.01.2017 / 14:24
1
answer

Do I need to enable Cross-Origin Requests for ASP.NET Web API?

I did a test application, where I point to a web api that is online, the address of this api works and return the data if it is posted in the browser URL, it does a GET. In the test application I have: <Div> <Select id="metho...
asked by 27.12.2016 / 20:25
1
answer

How to hide parts of a page based on user permissions using asp.net identity? [closed]

I have a project in mvc and I'm using asp.net identity, I have different types of profiles, example adm / tutor / master / user and I have access areas for each profile, besides the "home" view that has the urls that match each profile. I wanted...
asked by 07.12.2016 / 18:09
1
answer

Show image when mouseover in gridview row

On an HR management site, there is a readiness history query. Here's how the page was made: ASPX FILE <%@ Page Language="C#" AutoEventWireup="true" CodeFile="historicoProntidao.aspx.cs" Inherits="historicoProntidao" %> <!DOCTYPE h...
asked by 13.12.2016 / 13:51
1
answer

Control 'ContentPlaceHolder1_Name' of type 'TextBox' should be inserted in a format tag with runat = server

I'm doing a job for college, an application web forms in Asp.net C #. I'm having a problem and so far everything was fine, but out of the blue is giving this error. I looked for some related things, and this piece ended up "showing" my web page,...
asked by 27.11.2016 / 21:13
1
answer

Error accessing array indexes inside a LINQ expression

I am doing a query to search all the meteorologies with a certain date, but when executing the following error occurs: An exception of type 'System.NotSupportedException' occurred in EntityFramework.SqlServer.dll but was not handled in user co...
asked by 13.11.2016 / 18:19
1
answer

C # ASP.NET Method Get with parameter returning 404

Good afternoon guys, I'd like to know if anyone can help me. My Web Service has a Get method that returns the entire List of Products, however I would like to create a method that returns a Product according to a code passed to it. At the moment...
asked by 03.12.2016 / 20:50
1
answer

.Include () does not load child class - Lazyloading C #

I was using the DDD Model with Repositories and with 3 layers of data, (with% of%,% with% and% with of%), with the help of some users here I decided to change the project and now I've finished removing 2 layers to Serviço and Repositor...
asked by 04.11.2016 / 16:44
1
answer

How to share a webservice through FTP?

Contextualization I'm developing an application in C # to access a webservice test that I created. This webservice is simple, it only has a method that returns a string. The webservice I created through Visual Studio, through an Asp.net pr...
asked by 09.10.2016 / 22:44