Questions tagged as 'c#'

0
answers

Report Viewer Schema 2016

When I add a parameter to a report of ReportViewer it's happening from the version of schema to 2016, which causes me the following error when trying to render the report    Message: Test method   Syns.Web.Test.Reports.DemoRepor...
asked by 24.11.2017 / 18:48
0
answers

ASP.NET MVC 5: Linking two models to the view

I have the following scenario: AgendaViewModel.cs public class AgendaViewModel { [HiddenInput(DisplayValue = false)] public int Id { get; set; } [HiddenInput(DisplayValue = false)] public int ClienteId { get; set; } //...
asked by 24.11.2017 / 15:21
0
answers

Download audio with unity on android

I'm trying to download an audio, in the editor the download works, however after installed the apk in the mobile phone, it downloads the file, so not complete, it saves a 40b file, while the file saved in the editor it's 147kb, I'm using a scrip...
asked by 24.11.2017 / 18:05
0
answers

How to configure client validation in an ASP.NET MVC 2.0 application to recognize standard pt-BR

I am having difficulty configuring client-side validation of my application. I would like client validation, using jquery.validate.unobstrusive , to accept numbers and dates located in pt-BR. I've already done this in the startup...
asked by 08.12.2017 / 17:27
0
answers

Return list in an array - WebApi C # [closed]

Good people. I need to return a list of courses linked to a certain student, this list will be consumed through the get of a WebApi. I have the classes "student", "course" and "courseAluno" (tables in the base - EntityFramework). The stude...
asked by 08.12.2017 / 16:27
1
answer

Basic Authentication in WebService Rest C #

Good afternoon !!! I'm implementing a WebService Rest but I'm not able to call the BasicAuthentication method from another class. [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, UriTemplate = "ConsultarCodigo/{cpfcnpj}")]...
asked by 16.11.2017 / 20:12
1
answer

How to import records file in asp.net mvc with entity framework [closed]

I would like to ask a question and I do not know how to structure my need .. I need to import / export a file with records, and depending on each record will be from a different table with their references and etc. What file formats is right?...
asked by 17.11.2017 / 19:07
0
answers

Windows Media Player

SoI'mcreatingamediaplayerinVisualStudio,andtheonlywayIfoundoutwhythevideotogivewasthroughtheWindowsMediaPlayercomponent.Ialsofoundthattoremovethebarswheretheplay/pause,etc.islocated.ofthewindosmediaplayergoestothepropertiesandwherethis"uniMode-...
asked by 09.11.2017 / 12:16
1
answer

Get data from an XML file, using XPath and C #

I have the following document XML , and I want to do a search / filter by name GivenName using Xpath . How to do? XML <bloodonors> <donor> <Number>1</Number> <Gender>male</Gender>...
asked by 07.11.2017 / 10:23
1
answer

Validating event is not working

I have this form: Asthepersonplacesthedateofbirthandclicksonidentifycategory,twochecksaredone:Ifthenamewasfilled;Ifthedateofbirthisgreaterthanthecurrentdate;Butthevalidationisnotworkingasitshould,seethecodes:usingSystem;usingSystem.Collectio...
asked by 07.11.2017 / 18:42