Questions tagged as 'c#'

2
answers

Upload Only part of the Site by clicking on ActionLink

I have the following ActionLink in my MasterPage . <div class="areaRetangulo"> <div class="col-lg-3 vermelho retanguloTamanho primeiraImagem"> <div class="triangulo trianguloVermelho">&...
asked by 18.08.2014 / 22:05
2
answers

Windows forms start with operating system

How do I get the user to choose whether the system (system tray c #) will start with the OS or not through the installation in WizardSetup (Visual Studio 2010)?     
asked by 06.09.2014 / 22:45
2
answers

Get the number of decimal places of a decimal

How can I get the number of decimal places of a decimal variable? Eg: If I receive the number:    4.5 - should return 1   5.65 - should return 2   6.997 - should return 3 I know you can do this by converting to string...
asked by 05.10.2015 / 19:49
2
answers

Display layout only when view is not loaded via ajax

In my project, I'm developing so that the application works even if the user is disabled or unavailable. If JavaScript is not available, I load the page normally. If it is available, I load some of these pages in modal so that the flow is...
asked by 14.03.2014 / 21:02
2
answers

Is it possible to take advantage of the same WPF view for Desktop and Web?

Dear, I've never programmed with WPF but I will soon have the opportunity and already thinking about the future, which is now, where desktop applications are / are being migrated to the web and, also thinking about those who are still reluctant...
asked by 17.03.2014 / 13:30
3
answers

Changing LABEL value by JQuery or Javascript does not work in ASP.NET

I use this JS function in ASP.net: function habilitado(){ var b = document.getElementById('<%= Label4.ClientID %>').value = "Habilitado"; } I call it that in codebehind. The label value should be changed, but this does not happen....
asked by 15.03.2014 / 21:45
1
answer

Ajax function to send list of items to a C # method in Asp.net

I have a list of items in an ASP.NET page defined as: <ul id="lstProdutos"> <li id="produto" value="1">Banana</li> <li id="produto" value="2">Maçã</li> <li id="produto" value="3">Melão</li>...
asked by 16.04.2014 / 23:27
2
answers

Creating Custom Annotations in ASP.NET

I have Controller in my project asp.net (Web Service) I need to do a token check to request each method. One solution I found is to create a static method and place a call at the beginning of each method. I could only put it once in the...
asked by 14.03.2014 / 13:45
3
answers

Application logon failure in IIS when trying to connect with SQLServer

When I run an application of type site in visual studio, the connections to the database work normally. But when trying to run IIS 7 to perform some tests, I get the following message:    Unable to open the "XXX" database requested by logon...
asked by 30.06.2017 / 14:41
3
answers

Format Field C #

I know the 'N' and 'C' formations of C #, but they do not answer me. I get 1000 of the database and would like it to format for 1.000 . What I put in .ToString("???")     
asked by 07.06.2017 / 17:59