Questions tagged as 'c#'

1
answer

How to call ActionResult from another area with an html link?

Hello, I have a link in a View and I need to direct this link to a ActionResult that stays in another Area of my project. It is a link of Sair to call the ActionResult Logoff .     
asked by 12.02.2014 / 18:42
1
answer

How to work with Foreign Keys in C # ASP .NET Core?

Good night, guys. I'm a beginner in C # ASP .NET Core and I'm having problems with Foreign Key. I need to populate a combobox with data from a database table. The following is my model Seller using System; using System.Collections.Generi...
asked by 21.11.2018 / 22:07
1
answer

Visual studio opens existing code when I click on NEW project?

I started learning C # and am using Visual Studio. I created my basic program "hello world", I saved the project. So far so good, but when I'm going to open a NEW project, in order to create a new code, it pulls the code from my first program....
asked by 21.11.2018 / 18:53
1
answer

Add a new variable to a component (PictureBox)

I am creating a game for a college job, this game consists of several Picturebox , one is the main character who walks, jumps and shoots, PictureBox of shots and PictureBox of monsters (randomly generated by a Random ),...
asked by 22.11.2018 / 15:00
1
answer

Write; in .CSV without separating the cell

I have a C # project that is normally generating a file with .CSV extension, but I want to write a; (semicolon) but it does separate the cell. Is there any way to write without this happening? Code: arquivo.Detalhe = new List<Detalhe>...
asked by 25.10.2018 / 14:03
1
answer

Close only one window

I created a window JanelaUm , every time I click on button this window is displayed. no code-behind of JanelaUm I have event window_KeyDown with the following code: if (e.Key == Key.Escape) this.Close()...
asked by 15.12.2014 / 16:37
1
answer

MVC Helper Menu

I'm having a hard time putting together a Helper to mount the system menu This is my view @model IList<Devcompy.ClientWeb.Devcompy2.Helpers.HierarchyNode<Devcompy.Models.Entities.Segurancas.Menu>> <!-- Navigation --> <n...
asked by 20.12.2014 / 15:18
1
answer

Feed fields in view by controller

I have used a way to load fields in the view as follows: I make a method returning a JSon in the controller, there I create a JQuery function that takes that return and nurtures the fields of the view, in the success of ajax. Well, that was an a...
asked by 13.06.2014 / 15:14
3
answers

Receiving backgroud-image attribute of a div

I'm trying to get it like this: var obj = webBrowser.Document.GetElementById("senderscore").GetAttribute("background-image") but it returns empty. The background-image of div field contains a url. And it belongs to a class....
asked by 12.06.2014 / 02:15
1
answer

Include a search button inside a cell gridview c #

I have the following problem: I have a gridview on a Windows form system that I'm developing with C #. This grid will serve for the user to include items of a quote. In the product cell, where the user types the product code, I would like a b...
asked by 25.07.2014 / 15:52