Questions tagged as '.net'

0
answers

Request status after browser closes

I have an Asp.Net MVC project and I realized that closing the browser immediately after starting a request (without waiting for its due) causes the server to somehow not continue in the next lines of code. / p> I did some research but could no...
asked by 19.10.2017 / 15:57
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
0
answers

How to compile C # code at runtime in an ASP.NET MVC5 project?

I tried to use CodeDom , but when I try to search for a specific DLL to execute my code, the Assembly.GetEntryAssembly().Location command always returns me null . It seems that ASP.NET projects are executed an...
asked by 30.10.2017 / 14:44
0
answers

Difference in using the using clause within the namespace [duplicate]

Is there any difference in performance / execution / compilation of C # code when using the using clauses within the namespace? Basically, what I want to know is whether there is any difference (beyond structuring) in the following c...
asked by 11.10.2017 / 18:55
1
answer

App UWP connects SQL Server 2012 without WebService?

I need to develop a UWP application in C # / XAML for use in the industry for data collection via Lumia 640 XL mobile phone with Windows 10 Mobile. All persistence (CRUD) will be in SQL Server 2012 on the internal corporate network. The app will...
asked by 27.09.2017 / 22:08
0
answers

Good practices for using Blocks Try / Catch [closed]

What is the best strategy for using Try / Catch blocks: try { //FAÇA ALGO } catch(Exception ex){ //LOGAR O ERRO //LANÇAR O ERRO PARA CIMA? } Example: A tax calculation operation initiates the process by the UI triggering a one-bu...
asked by 07.09.2017 / 15:09
0
answers

Multiple calls to webservice [closed]

I'd like to know the best way to make N calls to the same Webservice. Example: In a hotel search / quote system, as a strategy, we use N calls for a specific quote because each call is sent a different Business Agreement, then the best price...
asked by 06.09.2017 / 14:01
0
answers

dmColor and dmDuplex values of the DEVMODE structure always returning 0

I'm doing a print monitoring job in C # and using the winspool API. I was able to capture most of the data I need, such as number of pages, printed document, number of pages printed, user who printed, etc. Using the structure JOB_INFO_2 . Co...
asked by 23.08.2017 / 19:37
0
answers

Open GridView2 by selecting a GridView1 field

Hello. I am trying to make every time I select a specific field within GridView1 , it opens related data in an Access Database in GridView2 . This is the code for my page. <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPage...
asked by 19.07.2017 / 15:58