Questions tagged as 'c#'

1
answer

Merge two Word documents

I have a problem and I would like a force, I have a project but I do not have any code to include my question. The client is requesting a button that adds 2 or more .docx files and transforms it into 1 only or sends only 1 content. I wante...
asked by 18.11.2015 / 16:32
1
answer

Closing requisitions

I currently make multiple HTTP / HTTPS requests for distinct sites using the HttpWebRequest and HttpWebResponse classes using .NET Framework 4.0. We are experiencing a problem when a moment arrives we can not acquire SSL / TLS conn...
asked by 19.11.2015 / 13:06
1
answer

How to view object in C #

Hello, how can I see my object in C #, as var_dump() in php , an example, to show the infos of the objects, follow my code: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Include = "IdFuncionario...
asked by 18.11.2015 / 19:20
1
answer

Auto-update of publish in Visual Studio by zeroing the database

In a short time I had to create an installer for desktop application in C #, and as in Visual Studio 2013 there was Publish that already created the Setup and Auto-Update I ended up using it for the convenience, but now I have a problem, every t...
asked by 18.11.2015 / 02:18
1
answer

DataGridView Filter (RowFilter) is giving error

My code: private void txtVendaFiltro_TextChanged(object sender, EventArgs e) { (GridVendas.DataSource as DataTable).DefaultView.RowFilter = string.Format("id LIKE '%{0}%'", txtVendaFiltro.Text); } Error:    Can not pe...
asked by 21.01.2016 / 22:27
1
answer

Get and display data of an attribute of type class (association between classes)

I'm having a small problem getting a value of an attribute of type class . Person Class public class Pessoa { public string Nome {get;set;} public int Idade {get;set;} public virtual void Add() {...
asked by 21.01.2016 / 21:26
2
answers

Good practices when working with file processing

I have a web application in Asp.Net MVC with C # and I received a new requirement where the goal is to read a text file with thousands of lines, each line containing a set of data that will be used to insert and update the database. data. My...
asked by 06.02.2016 / 00:21
1
answer

How to convert HTML to RTF?

I have a project in Asp.Net MVC where I would like to convert an HTML string to RTF on the Controller. I have tried the following ways: Source 1 using(var webBrowser = new WebBrowser()){ webBrowser.CreateControl(); webBrowser.Doc...
asked by 18.02.2016 / 22:08
1
answer

Consume API fipe in C # [closed]

I am doing studies in C # and MySql. I created a combobox called Marca and another call Modelo . I want to run the fipe api to search for makes and models of vehicles. There is this address below informing you how to consu...
asked by 22.02.2016 / 15:27
1
answer

Create Linq query - EF List with n sublists

I have a list with N results, I would need to make some changes in linq so this list would return N lists of only 3 underlying results. Any idea?     
asked by 23.02.2016 / 14:19