Questions tagged as 'c#'

0
answers

Extract HTML from Inspect Element

Using HtmlAgilityPack, I use the following code to get the HTML of a website: var url = "teste.com"; var web = new HtmlWeb(); var doc = web.Load(url); But the data (a table) I want to extract from the site, only appears in the inspect brows...
asked by 07.09.2018 / 02:38
0
answers

Link not accessible in IIS

I'm doing an application in C # using the MVC standard. It uses a Google FireBase database. Running this application through the Visual Studio debugger works normally, but when you try to publish it to localhost , through the IIS manager, the...
asked by 05.09.2018 / 22:14
0
answers

'Newtonsoft.Json.Linq.JArray' does not contain a definition for 'Linhaorg' [closed]

So, I created a notepad and I'm reading it through System.IO and I'm reading the file with Json , however it presents this error whenever I execute, what do I do? Json { 'barreiras': [ { 'Linhaorg'...
asked by 08.09.2018 / 05:06
0
answers

How to pass an object as a parameter to the method of another class [closed]

I'm developing an object-oriented calendar and writing to a text file. I'm encountering the following problem: When saved a contact is passing to another object as if it were a pointer using System; using System.Collections.Generic; usin...
asked by 05.09.2018 / 01:43
2
answers

What does '~' mean in front of the constructor of a C #

Working on a project here in the company, I came across some commands that are now being used the most ( yield , ?? , anonymous type ) but until I understood, but one that caught my attention because I did not know the what is....
asked by 12.03.2014 / 20:56
0
answers

Paging Problem X.PagedList

I'm trying to implement the X.PagedList paging, but in that line: @Html.PagedListPager(Model, pagina => Url.Action( "Index", new { pagina, search = ViewBag.Busca })) I'm getting the following message:    'IHtmlHelper
asked by 21.09.2018 / 19:32
1
answer

How to change background-color of a button inside an Iframe with Jquery

Good afternoon, I'm trying to run a function inside an iframe to change the background-color of a button that is in another Iframe, I started to do some testing and I could not get anyone to help me. > //Iframe A <hmtl> <head> <s...
asked by 21.09.2018 / 21:22
1
answer

Insert data from the DataSet into a database

I have the following code: using System; using System.Linq; using FirebirdSql.Data.FirebirdClient; using System.Configuration; using System.Data; namespace TblCliente { public class Program { static void Main(string[] args)...
asked by 12.09.2018 / 21:57
0
answers

How to Remove Code Snippet using Find and Replace from Visual Studio with Regular Expression?

I'm having a C # application that we're trying to remove code snippets from. One of the situations I have several If / else, where else does not make sense. Type like this (as an example): var entidades= db.Entidades.ToList(); if (!entid...
asked by 30.08.2018 / 19:48
0
answers

Call a method from a .NET C # DLL from a Classic ASP application

I have a web system in ASP that does Warehouse Management (WMS). The system works and is already in use in some companies. Recently the need arose to work with labels that will be pasted into the order volumes. The printer I'm going to use is...
asked by 23.08.2018 / 23:10