Questions tagged as 'c#'

2
answers

Consume Json and direct to a database using C #

I'm having a hard time consuming a payback json and convert- I've tried it in object so I can write to the database, my variables always return "null", I've tried several ways and I always get stuck in this return. Here's part of the code:...
asked by 30.05.2018 / 21:28
1
answer

Parameters in the URL using /

I need to have a URL in the following format:    nomedosite.com/note/ {anything) I need this url to fire the controller Note , with the action Index . How do I set up my route? I tried to use this: routes.MapRoute(...
asked by 30.05.2018 / 13:40
1
answer

How do I pass the value of the Tumb variable to my controler?

How do I pass the value of the Thumb variable to my control? The two input fields then passing normally, however the tumb variable has to pass the Image Url of the video. Controller [HttpPost] [ValidateAntiForgeryToken] public ActionR...
asked by 19.09.2018 / 21:06
1
answer

Search in a string with wildcard characters

I wonder if there is any function that searches for a string using wildcard characters. For example linha.contains("*//*#include");     
asked by 17.09.2018 / 05:09
1
answer

C # WPF Binding to 2 RadioButtons as a boolean

Good people. <GroupBox Header="Tipo de operação" HorizontalAlignment="Left" Height="55" Margin="10,70,0,0" VerticalAlignment="Top" Width="296"> <Grid x:Name="gridOperationType"> <RadioButton x:Name="radioButtonPlus"...
asked by 20.09.2018 / 17:55
2
answers

How can I execute a function that is in another form?

I have two forms, one of them I have: namespace J13_Rouparia_CS { public partial class frmMain : Form { public static int LocPesq; public static string peqNume; public static string peqArti; pu...
asked by 12.11.2018 / 23:08
1
answer

Error generating report in production - ReportViewer Version 11

I'm working with webforms and generating a report in the reportviewer locally, the report accepts parameters and has a dataset // Parametros List<ReportParameter> parametersReport = new List<ReportParameter>(); parametersReport.Add...
asked by 05.11.2018 / 20:32
1
answer

How to add a span in a htmlhelper?

I have this helper <li>@Html.ActionLink("Registar", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink"})</li> I wanted to add this <span class="glyphicon glyphicon-user"> <l...
asked by 07.05.2018 / 20:38
2
answers

Calculate more than one text box and display in a specific text box

Good morning everyone,  I'm breaking my head how to proceed with such logic; I would like to get the value of these 4 textboxes (txtDomain, txtCheque, txtCredito and txtDebito) and in the end go doing the arithmetic process in txtRestante....
asked by 10.05.2018 / 12:19
1
answer

Optimize if sequence

I have the following structure and would like to optimize the if code, there are already several equal parts. Then I made a foreach. But the ExpandoObject type variable, I do not know how to handle it generically to get the value of the function...
asked by 05.04.2018 / 19:19