Questions tagged as 'c#'

1
answer

How to put 0x0D 0x0A at the end of a txt file

I have the code end of my txt file below and according to the recipe manual, asks me to put the characters 0x0D 0x0A at the end of the registration. How could I do this? ATT01 = DETIM.ValidaATT(item.Cells["att"].Value.ToString()).PadRight(1...
asked by 24.02.2016 / 21:57
1
answer

I do not know the feasibility of doing in lambda or linq my expression

I have these two lists: List<string> dirZipDireto = ConfigurationManager.AppSettings["Dir_Zip_Direto"].Split(';').ToList(); List<string> arquivos = Directory.GetFiles(caminhoCommiter, "*", SearchOption.AllDirectories).ToList();...
asked by 03.03.2016 / 21:11
3
answers

Release other HTTP ports Amazon [closed]

Hello, I'm setting up a server on Amazon where I would like to have multiple sites on the same instance. I've set up each site on a single IIS port on the IIS server, but the Amazon firewall only allows me to access port 80 from outside....
asked by 07.03.2016 / 14:18
2
answers

How to call an Html.Action ("my_page") via jquery?

I have a page that loads several partials views, I want to call a specific page in a modal that will fill the entire screen. I'm using a generic jquery command to call an action that will be passed by parameters. This is the <button type...
asked by 07.03.2016 / 21:38
1
answer

Azure connection crashes constantly

I am using Visual Studio 2015 , C# and database SQL Server Azure and developing a Windows Forms project. Everything works perfectly, except that when I spend some time without running my application for testing, I g...
asked by 09.12.2016 / 22:17
1
answer

How to use SQL LIKE [duplicate]

I am trying to put together a string that makes a filter to compare only one piece of a numbering. I tried to make a resource and I looked for several ways to do it and so far I could not. using (NFSeDataContext context = new NFSeDataContext...
asked by 26.02.2016 / 18:22
1
answer

Differentiate list of items shown in View using "Individual User Account" Asp.Net MVC 5

I do not have much practice in programming and I'm creating a system for registering items like movies, books, games, etc. for a college job. The problem is that I need to use a user manager system so that in the view index of each item type sho...
asked by 25.02.2016 / 20:12
1
answer

BundleConfig does not load all CSS files

I am trying to load the jquery-ui.css CSS and jquery-ui.theme.css CSS files by creating a bundle, but the bundle insists on loading only the default CSS of ASP.NET MVC than site.css . To work, I always have to load the additional CSS files...
asked by 11.10.2015 / 03:19
1
answer

Doubt with public class ListDBProductDTO: ListtbProductDTO what is it for?

I have this DTO class: using System; using System.Collections.Generic; using System.Linq; using System.Web; public class tbProdutoDTO { public tbProdutoDTO() { this.dsDescricao = ""; this.dsFornecedor = ""; } public tbProdutoDTO(int...
asked by 09.02.2016 / 18:40
2
answers

Error Windows can not find 'svcutil.exe'

Among the many projects here in the company, there is one that when I compile gives the following error:   Windowscannotfind'svcutil.exe'WhatdoIdotoresolvethiserror?ThisistheversionofmyVisualandFramework: Visual Studio Ultimate 2013...
asked by 11.02.2016 / 19:01