Questions tagged as 'c#'

1
answer

Master page does not load in ASP.NET

My master page does not load in ASP.NET. I know why it does not carry, I do not know how to solve it. The master page is in a folder behind the page "isaque.aspx". Code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="isaque.aspx.cs...
asked by 23.08.2017 / 13:39
1
answer

Run Modal Open Script in Ajax. W#

Problem: I'm in the view index, it has a button that opens the Create view on a modal screen, on that modal screen I want to execute a javascript code, but for some reason it is not running. I'm opening a modal view with the following code:...
asked by 23.08.2017 / 20:04
0
answers

Composite key navigation

Hello, I have a class with 2 composite keys public class Produto_Empresa { [Key,Column(Order = 0)] public int id_produto { get; set; } [Key, Column(Order = 1)] public int id_empresa { get; set; } } I wond...
asked by 04.09.2017 / 15:45
1
answer

Date format problem (mm / dd / yyyy)

I have an ASP.NET Core application and can not seem to find a solution to my date format problem. My application is published on a Microsoft Azure server, which is probably in the US (although it appears in South of Brazil) and has caused me the...
asked by 04.09.2017 / 15:42
1
answer

Foreach or for invoice item [closed]

I need to make a foreach per item in my code, but I can not do it. Eg: I have a note that has 2 items, and I need to read the information of the note by item, I read item 01 and then I read item 02, but I am not able to implement this in my c...
asked by 04.09.2017 / 15:18
1
answer

Same partial view within several modal popup

I have content that is inside a partial view. There are situations where I need to open popup's that only change the buttons and their actions. But the content is always the same as partial view . I believe that when rendering the page, th...
asked by 22.08.2017 / 15:13
1
answer

Method [Test] not found after build

When I build build from the script below, it does not return any errors; however, the build does not find the [Test] test method, and I can not execute it. My script is object-oriented: it calls the class massaBase , which read...
asked by 22.08.2017 / 18:55
0
answers

Is there a performance difference between returning image in Controller or View?

I just learned how to fetch and display an image from the database. I was able to do this in two ways: First: Through an ActionResult in my Controller: public ActionResult RetornaImagemDoBanco(int id) { byte[] imageData =...
asked by 22.08.2017 / 19:35
0
answers

Visual Studio 2017 v15.3.0 - Debug mode with bug

Here's a picture: Hereisthecodefortheimageabove:List<string>teste=newList<string>(newstring[]{"0", "1", "2", "3", "4" }); I installed the newer version today (15.3.0). Someone who is with version 15.3.0, and can tell me how it...
asked by 16.08.2017 / 00:48
0
answers

IList vs List, main difference [duplicate]

Does anyone know the difference between it? When should I use IList and List Follow the code below: IList: public ActionResult Upload_Photo(IList<HttpPostedFileBase> file_photo) List: public ActionResult Up...
asked by 22.08.2017 / 21:57