Questions tagged as 'c#'

1
answer

Error with Asp.NET Web.API + AngularJS

I have my method C# so [ResponseType(typeof(Categoria))] public async Task<IHttpActionResult> Post(Categoria model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if (_repositorio.InsertOrUpdate(...
asked by 18.06.2015 / 03:09
1
answer

HttpModule: How to handle HttpApplication errors without HttpContext?

I've been finding a particularly interesting situation. I have a generic error handling routine implemented within a HttpModule , and recently I noticed a strange behavior: The HttpApplication.Error event is triggered, but HttpCo...
asked by 24.09.2014 / 19:52
1
answer

Why does the "Landscape" position not resize the LongListSelector?

Why do not I resize when I put the cell in the Landscape position? Here is the image: FollowmyLongListSelector<Gridx:Name="ContentPanel" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"> <phone:LongList...
asked by 02.05.2014 / 19:17
1
answer

XML duplicating the results reading

I have a XML : <paises> <pais> <nome-pais>África do Sul</nome-pais> <consulados> <consulado> <nome-consulado>Consulado da República da África do Sul</nome-c...
asked by 29.04.2014 / 17:02
1
answer

Printing of pvc badge with thermal printer

I have a thermal printer to do a test print of badges with pvc cards. At first I put up a badge template in ReportViewer and I'm generating it in pdf . And apparently it's losing a lot of quality when it comes up in that format. I wo...
asked by 27.05.2014 / 13:36
2
answers

Column Charts (Bootstrap)

I'm developing a system that needs to display column graphics. The system is using Bootsrap and MVC 4 C #. Can anyone tell me if there is any framework for creating graphics?     
asked by 17.06.2014 / 17:30
1
answer

Syntactic Reader (Visual Studio 2013 Extension)

When doing the language syntax reading in a Visual Studio extension project I can already read the following: <span class="myclass"></span> It is relatively easy to manage read states InTag , AttributeNaming , Att...
asked by 21.06.2014 / 23:56
2
answers

Detect event generated in another class

I have a class (in VB) that returns an event of TimeOut , that is, if the time it pops up it returns an event with a string containing the data I need using RaiseEvent. How can I handle this event in the main class which is in C #. I tried...
asked by 09.06.2014 / 21:33
1
answer

How to implement a thread queue to run one after another?

I have a static method to write logs to my system. public class Logger { public static void SaveLog(string[] lines) { System.IO.File.WriteAllLines(@"C:\...\Temp\ExceptLog.txt", lines); } } The method is used in several p...
asked by 19.06.2014 / 05:12
1
answer

How to filter an array inside a collection in MONGODB - C #

I have the collection PESSOA with a list of Languages as below: { "_id" : ObjectId("576be476ab76191bec2ff38c"), "Nome" : "Nome um", "Idiomas" : [ {...
asked by 23.06.2016 / 17:40