Questions tagged as 'c#'

1
answer

Using JSON in C # and adding points in GMAPS

Good morning, I'm developing a C # web application that uses GMAPS to add comments to addresses. I have a page where the user enters the comments (and the page captures latitude and longitude) and saves it to a MySql database. I found a...
asked by 13.10.2015 / 13:01
1
answer

How to request authentication in a menu item in Asp.net

I have the login form that is currently being used to log in, but I need to do this authentication also when I click on a particular menu item. I need that when clicking "Home", ask for this authentication again, and if the user has permission,...
asked by 07.10.2015 / 14:37
2
answers

Error saving a relationship Many-To-Many [closed]

Following the templates this question , I'm having problems trying to save the data (keys of each of the records) in the table created to make the data relationship. Here's the post method I built: Controller [HttpPost, ValidateAntiForge...
asked by 30.11.2015 / 16:34
1
answer

How to use in @ Html.CheckBox?

I have the following code: @{ var st = //(minha lógica q retorna bool); } @Html.CheckBox("MeuNome",st,new { id = "MeuID", value = "MeuValor" }) I can not use the st variable in the second method parameter ... I have...
asked by 27.11.2015 / 16:42
1
answer

XML Editing: How can I get the value of a property

I have a question to read and edit an XML in C Sharp. I need to get the value of the "uuid" attribute of the "Machine" node, which is in the "Virtualbox" node. I also want the "location" and "uuid" properties of each of the "HardDisk" nodes, as...
asked by 09.07.2015 / 02:20
1
answer

Class derived from PrintDocument class C #

I have a class to print labels (CPrint), this class is derived from the PrintDocument class. In it it receives an image by calling a method contained in the Form1.cs class. Here is the code for class CPrint.cs (derived fr...
asked by 26.06.2015 / 19:18
1
answer

Handle files with C #

The goal is to capture two string typed into two blocks of text and save them to a file (this file is already preset and the user will not know where it is). I also want to know how to read the file information and store this information...
asked by 27.06.2015 / 19:06
2
answers

How to block a form after a certain downtime?

Example: After 1 minute of inactivity the form 'system' is disabled and calls a login form, after completing the login it returns to the form 'system' and activates it again .. Or it can be at the push of a button it locks the form 'system' a...
asked by 28.06.2015 / 20:42
1
answer

SignalR loses connection when giving a PostBack

The idea is to keep the user logged in to Chat as he browses the pages. Layout of components on the page Layout.cshtml function iniciarChat() { var chatHub = $.connection.chat; $.connection.hub.start(); } Index...
asked by 25.06.2015 / 15:21
1
answer

How to: Populate object Collections from multiple sources

I would like an aid in passing values to my property with private IEnumerable<OrderDetail> orderDetail; . I would like to fill it out, but I have already looked for some examples and did not find anything with this situation. I as...
asked by 19.06.2015 / 18:35