Questions tagged as 'c#'

1
answer

How to receive unique data in asp net mvc

I have the following model called Conta : public int Codigo { get; set; } public string Nome { get; set; } public int Prazo { get; set; } Assuming I want to do a select (without using lambda) and just bring the Name property, in this...
asked by 04.07.2014 / 15:42
1
answer

How to present full screen / fullscreen app in Windows Phone 8.1?

I want my application to run in full-screen mode. I have tried using the codes below, however, they are giving some errors. The code is not recognized by the emulator: <phone:PhoneApplicationPage ... shell:SystemTray.IsVisible=...
asked by 03.07.2014 / 03:52
2
answers

Create Database with FluentNHibernate

Is it possible through FluentNHibernate to create the database just as tables are created? I have the following class: public class Helper : IRepositorioHelper { private static ISessionFactory _sessionFactory; private static ISessionF...
asked by 16.09.2014 / 04:24
1
answer

parsererror error while executing a crossDomain AJAX request

I've created this page to test a cross domain request with AJAX : <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script></head><body><scripttype="...
asked by 16.09.2014 / 14:15
1
answer

How to change the border color of a TextBox in a Windows Phone 8.1 app?

In a given code function of .cs in C# I need to change the border color of a TextBox . In my xaml I have TextBox <TextBox Name="txtResult" Text="resultado"/> And in cs I have validation priva...
asked by 31.08.2014 / 05:32
1
answer

Webapi view content in a view

Hey guys, how are you? I'm developing my first application on web api asp.net . And I'm having trouble displaying the content in a view . Controller: public class ListaPresenteController : ApiController { p...
asked by 12.07.2014 / 18:51
1
answer

How to load images randomly?

How do I randomly load images in the background of an app page, so that every time the user enters a particular page the background toggles between images? How do I proceed to do this?     
asked by 11.07.2014 / 03:10
1
answer

Modify default font

Is it possible to modify the default font of my WindowsPhone 8.1 application? <HyperlinkButton Content="Teste" HorizontalAlignment="Left" Margin="126,299,0,0" VerticalAlignment="Top" FontWeight="Normal" FontSize="48" FontFamily="...
asked by 16.07.2014 / 04:29
2
answers

How to fix this problem with the DataGridView Check Box cell?

I'm having a problem with the DataGridView checkBox cell: Click the checkBox , and it marks the Checkbox and updates a value field. I click again, and it does the opposite. Everything works fine until I quickly click on the checkBox . i...
asked by 15.07.2014 / 15:37
2
answers

Pop-up Child Window

I have the following button that basically inserts data from a web form, but this button is in a pop-up child . What I intend is that when I run the button, after inserting the data close the pop-up window. How do I solve this problem? p...
asked by 12.06.2014 / 00:39