How do I open a folder on the user's machine? I need to open the folder and load a csv, txt or xls file. I use MVC5
It would be more or less that. A button that loads the folder and then I give a load that would be like an upload, I think....
To send an email from the application I'm using MailMessage made available. Now I'm trying to put an image in the body of the email via html:
MailMessage mail = new MailMessage();
SmtpClient SmtpCliente = new SmtpClient(server);
...
mai...
Late!
I am performing a complex validation on a specific class with the following code (reduced for simplicity):
public class Classe1 : IValidatableObject
{
[Key]
public int Id_Classe1 { get; set; }
[Required]
public int Id...
I have a list of items set through a BulletedList in an Asp.net page. This list is populated with multiple items through the DataSource , DataTextField , DataValueField , and DataBind() attributes in CodeBehind in C #....
When I try to read xml, return it to me:
{System.Linq.Enumerable.WhereSelectEnumerableIterator<System.Xml.Linq.XElement,SSP.Class.ListaConsulado>}XML:<?xmlversion="1.0" encoding="UTF-8"?>
<paises>
<pais>
<n...
public ComprasOrdemCompras GetToCreate(ComprasOrdemCompras model, int EmpresaId)
{
ComprasOrdemComprasProduto clsPedidoProduto = new ComprasOrdemComprasProduto();
//Preenchi meu produto INÍCIO
// FIM...
When creating a new record in the tab I need to get the id of my main screen and send it along with the new object. Currently I have this code:
public async Task<IHttpActionResult> PostMenuProduct(MenuProduct MenuProduct)
{...
I'm building this query:
private List<string> pegaInformacaoParceiro(string _osparceiro, string _cnpj)
{
List<string> lista = new List<string>();
WEBEntities db = new WEBEntities();...
I'd like to know how to display two pages of the same GridView side by side, if possible by keeping the pagination on both pages at the same time. For example, if I have GridView like this:
Num Produto
--------------
1 Banan...
I was thinking here of a structure for automatically updating my web systems on clients, so I thought I'd use ClickOnce with some dodges (technical adaptations).
It did not work, it only works for Windows-based applications....