Questions tagged as 'c#'

1
answer

How do I change the text in unity3d with a script that I can not remove?

I have a problem with unity3d and I do not know how to solve it. I have a certain script using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.UI; public class CharacterSelector : MonoBeha...
asked by 06.10.2016 / 15:49
1
answer

How to save in 2 tables at the same time

Hello, I'd like some help. I have this method to save the data into two tables. public void SalvarLocacao(Carrinho carrinho, Locacao locacao) { Item items = new Item(); foreach (var item in carrinho....
asked by 29.09.2016 / 08:20
2
answers

How to get cookie in Web API in a Forms Authentication scenario in Cross Application?

I have the following .Net applications: Web Application with Forms Authentication (I'm not using the MVC, I use Backbone.js to make calls to the REST API) Web Application REST API sharing the same Forms Authenticaion used in application 1....
asked by 07.07.2016 / 15:31
2
answers

Importing Data

Hello, I would like to know how I get a value from my database and take it to an "automatically" field. For example, in the image below, I want this field marked to go to an information that is already saved in my database. I would like to know...
asked by 18.06.2016 / 00:00
1
answer

TextBoxFor returned Null Post

I have a form in which I make a query to an API using jquery. The query returns the data and populates the textboxfor with this data: $.getJSON("//viacep.com.br/ws/" + cep + "/json/?callback=?", function (dados) { if (!("erro...
asked by 16.06.2016 / 22:40
1
answer

How to change the type of the persisted class in an inherited model using the EntityFramework

I have the following inheritance classes schema, as an example: public class Veiculo { public int Id { set; get; } public string Descricao { set; get; } } public class Moto : Veiculo { } public class Carro : Veiculo { } That gener...
asked by 02.05.2014 / 04:27
1
answer

How do I make an event when I click on an Item?

I wanted to know if you have how to click on an item to perform an event / function, knowing that each item has its function. I'm using LongListSelector Código XAML <phone:LongListSelector Name="lstConsPais" HorizontalAli...
asked by 28.04.2014 / 17:47
1
answer

Default browser autocomplete does not work in my WebForms application

I'm using Google Chorme and it has the autocomplete option enabled so much that I can store one login to Facebook . However,inmyASP.NETWebFormsapplication,ontheloginscreenINOIcanusethisfeature.Ididnotapplyanyroutinetocleanthisinforma...
asked by 16.04.2014 / 19:21
1
answer

What is Handled in C #

I have seen in some codes the use of Handled being assigned as true and false of ComboBox event arguments - SelectionChanged, TextBox - LostFocus, Button - Click. Would you like to know what it is for and what it modifies in the event or contr...
asked by 08.04.2015 / 20:39
1
answer

Compare two date attributes in the database with two TextBox

How can I compare a range of two dates? data_Inicio date data_Fim date textbox_inicio textbox_fim I'll be able to do this soon on the ASP.NET side, and the goal is that my start date is never less than my end date and my end date is never...
asked by 24.11.2014 / 14:54