Questions tagged as 'c#'

1
answer

Transform Stream into PDF to send with attachment in email

I'm making a page for sending emails, and I need to turn a specific page into pdf to be attached to the email. The page I have already been able to transform into Stream, now how can I make it into pdf and then attachar as an attachment.?...
asked by 28.05.2015 / 02:52
1
answer

Changing Routes with Asp.Net MVC

I'm trying to change a route in my project, the control looks like this: public class TagController : Controller { // GET: Tag private MYEntities db = new MYEntities (); [Route("tags")] [OutputCache(Durat...
asked by 30.05.2015 / 03:36
1
answer

Fit height is width of Qr Coder using MessagingToolKit.QRCode C #

Is there any way to adjust height is width? I thank you public void GerarQrCode(string NomeImagem,string Data) { QRCodeEncoder encoder = new QRCodeEncoder(); Bitmap img = encoder.Encode("www.teste.com.br...
asked by 18.05.2016 / 18:34
1
answer

Error using Split within Select

Why does the following exception occur when using Split within a Select in a IQueryable ?    The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities. I've been able to solve the problem using...
asked by 20.05.2016 / 00:50
1
answer

Does Xamarin generate Java source code?

I read that with Xamarin it is possible to program in C # for example, and generate a native application Android and IOS. After programming in C #, does it generate the fonts in Java? I can after making the first version of the App, abandon C...
asked by 20.11.2017 / 19:32
1
answer

How to remove an item in a position from an array? [duplicate]

Example: string[] x = {"3","2","1"}; I want to take only the "2" item from the array x , resulting in: x = {"3","1"};     
asked by 18.11.2017 / 23:44
1
answer

Request ajax

I'm loading the menu, of the system I'm developing, through a request via ajax using jQuery, however the menu formatting is not getting as expected. My request via jQuery <script type="text/javascript"> $(document).ready(function...
asked by 19.12.2014 / 13:18
1
answer

Convert an XML file into BSON

I have an Xml Complex that contains "children" nodes and I need to convert it to BSON . I am using VS 2013 (C #).     
asked by 28.04.2015 / 21:07
1
answer

Monetary values with asp.net MVC

I am having difficulty working with monetary values (decimals), using web application, asp.net MVC , with database Mysql . The problem is that I can not edit decimal values, such as: 53.50 , or 53.50 . I can not save using dot, not comm...
asked by 09.05.2015 / 05:33
1
answer

How to use login in different areas in asp.net mvc

I'm creating an application, where it has more than Area , which is restricted. (as shown in the image below). Myquestionishowtologinindifferentareas?Details:SincetheusersintheAdminareaandintheSystemareaaredifferent,each   oneissavedto...
asked by 04.11.2016 / 19:27