Questions tagged as 'c#'

1
answer

How do I use the VS Command Window?

How do I use the Command Window? I have never used this tool to debug.     
asked by 23.12.2014 / 20:20
1
answer

Hide ActionLink parameter

For example: /admin/Edit/1006 Is there any way to hide this id? Well, any malicious user can change the value and end up finding a user. I know that you should check the controller to see if the user can edit, but only by using ActionLink...
asked by 04.01.2015 / 01:04
2
answers

Error converting HTML to PDF

I need to make a PDF from a page HTML , but when I convert I get the following error:    Can not convert an object of type 'iTextSharp.text.html.simpleparser.TableWrapper' to type 'iTextSharp.text.Meta'. Follow the code: <%@ Pa...
asked by 01.11.2015 / 20:36
1
answer

Create a mock for any instance of a class

How do I mock any instance of a class? I would like to do this so I do not have to mock an object and have to put it inside a class. Example: [TestFixture] public class TokenTest { GeradorDeToken target; [Test] public void GeraTo...
asked by 02.11.2015 / 12:13
1
answer

How to upload file at the same time as submitting an asp.net mvc form 5

I already have a form that does a registration, I want to add an additional field in it where the user will upload a photo, I want to do everything in the same submit. My VM VMdomainCreate VM: public class VMDominioCreate {...
asked by 02.11.2015 / 22:58
2
answers

Circular reference between two projects

I'm working with two projects in a solution . To use a ProjectA form in ProjectB I referenced the ProjectA in ProjectB , from this I have access to the ProjectA forms. But what if I want to have access to the ProjectB forms in...
asked by 13.04.2016 / 15:41
1
answer

Formatting TextBox for thousands?

I'm trying to create a TextBox to enter values in thousands, the values will be for weights (kilos). I want to enter the values from right to left based on the 0,000 mask and as the user enters the weight the values are being overwritten...
asked by 06.04.2016 / 15:12
1
answer

WebService of the post office for more than one product per freight [closed]

Hello, I'm using the webservice of brokers: link To calculate the cost and term of the freight. The call is made via JS (jquery / ajax) and the webservice is in C #. I already use the service successfully for 1 product. The question i...
asked by 14.04.2016 / 21:48
2
answers

Search week number of the year through a date in C #

I'm writing a function that gets a string with a date (format dd/mm/aaaa ) and it should return a date in the same format 4 weeks later. Example: Entrada: 07/04/2016 saída: 05/05/2016 I read about it and thought of the following l...
asked by 07.04.2016 / 20:13
1
answer

How do I trigger an event when a List is changed?

I wanted to know if it is possible, and if so, how to trigger an event when a List is changed, for the following changes: An element is removed; An element is added; An element has its index changed; Is there any way to trigger...
asked by 21.05.2015 / 17:09