Questions tagged as 'c#'

1
answer

How do I allow an event to reach other UI elements?

I have xaml that I apply a rectangle over several images, in order to be able to manipulate them after a holding in them. The problem is that if I put IsHitTestVisible in state false in the rectangle and when one of the imag...
asked by 01.07.2015 / 13:05
3
answers

Return in a view-specific div

I have a view where the contact form is at the bottom of the page, with validation via DataAnnotations. When I click the send button, the controller checks the ModelState, if it is not valid, it returns to the view with the validation messages....
asked by 02.06.2015 / 08:51
1
answer

customize RoleProvider without using Membership or ASP.NET Identit

Good morning. My question is the following and I have the authentication part of my system made without using Membership or ASP.NET Identit. and I wanted to make or use the [Authorize] method already I took an example in google where I did the f...
asked by 02.06.2015 / 16:54
2
answers

Error: String was not recognized as valid DateTime [closed]

I'm trying to convert a string that I pull from the database with the DateTime PrevisaoDataInicio = DateTime.Parse(reader["PrevisaoDataInicio"].ToString()) And gives the following error:    String was not recognized as a valid DateTime....
asked by 03.06.2015 / 13:49
1
answer

Change label text while looping on server

I have a screen that does a lengthy processing, and there is a for that every next , I want to set a label for the user to see the process. p> I know it can be done by ajax, but I did not find anything as an example. Can anyone help?     
asked by 02.06.2015 / 19:17
0
answers

How to graph with triangles?

I would like to know if there is a possibility of using the chart and making triangles in it by passing the 3 coordinates to generate the triangles, as in the image: (Do not call the image I did just an illustrative schematic in the paint rap...
asked by 28.06.2015 / 00:02
1
answer

Make a loop for 2 labels when clicking

I need a loop for 2 labels where each one appears text already specified in the code. Just out of curiosity. I wanted a loop with the same effect as the code below: private void button1_Click(object sender, EventArgs e) { lbl_1.Text...
asked by 27.06.2015 / 08:02
1
answer

C #. Image.GetThumbnailImage increasing file size

I have an image of 320x320. When I use Image.GetThumbnailImage it generates an image of 180x180. Only the file size of 320x300 is 10k, the Thumbnail file size is 52k ... I wanted it to be at least equal, does anyone have any sugg...
asked by 06.05.2015 / 15:25
1
answer

How can I use a HyperLink within a ListBox?

I want to make a HyperLink for each result that will appear within ListBox . private void listBox_SelectionMode(object sender, EventArgs e) { LogisticaServiceContractClient Logistica = new LogisticaServiceContractC...
asked by 28.04.2015 / 17:33
0
answers

MICROSOFT.OFFICE.INTEROP.WORD - Object reference not set to an instance of an object

I'minneedofhelpwiththisproblemusingMicrosoft.Office.Interop.Word.Detail:runningtheapplicationinvisualstudioitworksnormally,withnoerror,however,ifIplayinIIS,itappearsthiserror.Beforeit,IhadproblemwithCOMpermission,Ichangedthepermissionsandnowthis...
asked by 27.04.2015 / 17:23