Questions tagged as 'c#'

1
answer

How to properly apply String.Format

I have the following event: protected void Page_Load(object sender, EventArgs e) { this.tituloTela.InnerText = metodos.RetornarNomeMenuTitulo(((System.Web.UI.TemplateControl)(this.Page)).AppRelativeVirtualPath.Remove(0, 2)); metodos.L...
asked by 21.06.2017 / 19:45
3
answers

Inserting numeric data into the database

I am having trouble inserting into the database the field is formatted as DECIMAL(10,2) ), when I try to enter the direct monetary value through MySQL it works with the end point instead of the comma ex: 135.45 - The bank addresses the...
asked by 11.09.2017 / 16:58
1
answer

Increase object to HTTP request

I'm trying to make a request in which I send a JSON (POST) and I get another one, I'm doing the following: I mount / feed my object and call this request: string URLRequest = URL + customer_id + "/cards"; HttpWebRequest request = (HttpWebReque...
asked by 25.07.2017 / 16:38
2
answers

How to not allow the user to access the previous login / registration page after logging in or registering

I'm developing an ASP.NET application and when the user logs in and clicks the browser button to go back he can access the login / registration page, even though I do the verification of the user's key logged in to the session. Here are the prin...
asked by 20.06.2017 / 21:23
1
answer

Delay in AngularJS used in Adobe .cshtml

I have a page that when starting it from a daley in the checkbox and in the text field as in the figure below: Anyone can tell me why this happens, and a possible solution     
asked by 10.07.2017 / 15:43
2
answers

Permanent focus on a field - WPF

I have an application with several fields, but I would like to focus only on a specific one and not allow it to be withdrawn in any situation. Always focus focus on this field, and if the user tries to pull it off, it blocks and does not allow t...
asked by 12.06.2017 / 18:19
1
answer

Is it a good choice to start a project with Diagram Use Cases, then Class Diagram?

I have a software idea, but I do not know if I should go directly to the class diagram and then the encoding or if I should first use a use-case diagram. I will work on this software alone. It is a long-term dream that I will make in my spare ti...
asked by 13.06.2017 / 04:35
2
answers

Show date in MessageBox C #

I have a vector of dates with values already inserted, but I wanted to show the values one by one, so I created a "for" that did this DatasIndisible is my vector of dates, with values already allocated; string mens; for (int i = 0; i <= 5;...
asked by 14.06.2017 / 03:49
1
answer

Conversion of RPT file to PDF c #

Good morning I have the following file in .rtp and I need to convert / convert the data from this report to pdf .    BalanceCompany.rpt I need this to be done through a click event.     
asked by 14.06.2017 / 16:36
1
answer

Api receiving date with month and day changed

I have a class: public class Filtros{ public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } //outros campos... } I have a C # API that receives the class: [HttpPost("ObterProvisoes")] public JsonRes...
asked by 12.07.2017 / 14:52