Questions tagged as 'c#'

2
answers

Treating JSON in C #

I have a return of an HTTP request in JSON format. It comes as follows: { "message": "authenticate" } It's a simple return, but I'm new to C # and would like to know how to assign only the "authenticate" string to a variable. Can anyone...
asked by 14.10.2017 / 15:53
0
answers

How do I minify a string with CSS or JS content in ASP.NET MVC?

I have some records that contain CSS and JS content that are saved in the database. I want to rescue them and minify them. I've been taking a look at Microsoft Ajax Minify, but I did not think it would solve the problem. Is there a solution?   ...
asked by 06.11.2017 / 15:40
2
answers

Regex - Removal of Special Characters C #

Regex.Replace is a great solution to remove accent. Now I just can not remove a character type, I have a string that receives the text "1st General Place" , in the string it has the character '°' / strong>, is there a list for these types...
asked by 19.07.2014 / 19:07
3
answers

How to anchor a redirect in APS.NET MVC

How can I send the user to a certain page block by passing the id in the url. For example: link , how to pass this type in ASP.NET MVC using return RedirectToAction . The line of my code looks like this: return RedirectToAction("Ind...
asked by 21.06.2017 / 22:09
1
answer

Problem with Stack Algorithm

I started programming in C # recently and I'm already having some problems ... I took a URI exercise to train and I have an "error" that I do not know how to solve. I've looked for several places and found nothing. Anyway, let's go the situation...
asked by 22.10.2017 / 06:15
0
answers

Problem with DepencyResolver when using TestServer, difference between instantiating HttpConfiguration and not instantiating

I have a simple authorization filter that to get an instance of a service I requirement in GlobalConfiguration.Configuration.DependencyResolver . So: var service = GlobalConfiguration.Configuration .DependencyResolver.GetService(type...
asked by 29.10.2017 / 22:43
0
answers

Error connecting to DBC database

I'm trying to connect my program to a DBC database using the tutorial from that link: link The code used is as follows: string path = @"D:\tabwin\"; string cs = "Driver={Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=" + path...
asked by 29.10.2017 / 22:17
0
answers

How to organize UI needs in DDD

Where do I place the code that does not respect the business rule, but is it a necessity for the user to submit, such as combobox, dataTables, texboxAutoComplit ...? details: Currently working in layers (presentation, application, domain,...
asked by 05.10.2017 / 21:23
1
answer

Using eval to transform Razor to Javascript

Before criticizing the use of eval , I read and recommend this answer . Consider the following context: Home C # Code (Razor): var teste = new { prop1 = 123, prop2 = "minha mãe disse 'Háaaaaa!'" }; var listTeste = new object...
asked by 06.10.2017 / 00:15
2
answers

Popular Combobox DataGrid Windows Forms C #

I have a datagrid (c # windows forms) that I need to use for editing and I'm populating with information coming from the database of a table called "costs" TheChartofaccountsandCostCenterfieldsarepopulatedwithinformationstoredinthe"costs" table...
asked by 04.10.2017 / 14:44