Questions tagged as 'c#'

1
answer

Problem generating list in a ViewModel

I'm working on ASP.Net with MVC 4 , and when doing a search / using filters I'll present a resulting list of data. To better handle this result I created a ViewModel where I put information from several tables. Now to populat...
asked by 14.02.2014 / 10:54
2
answers

Get post data in ASP.Net MVC

I'm using MVC in my application and in Views I'm using various Telerik tools. I need to get some information from a POST that I give to my View . Follow View: <div class="div-grid"> @using (Html.BeginForm("ExecutaExportacao"...
asked by 14.02.2014 / 20:24
0
answers

Error: Configuration system failed to initialize

I'm developing an application in C# and during development I came across the following error: Inthefile:Settings.settingsthereisastringthatstorestheusername.Apparentlythismaybetheproblem,butIneedthisstring.Whatisthesolution?Code:names...
asked by 04.01.2019 / 12:05
1
answer

Mapping with Entity Framework

Good afternoon, When analyzing a code I see in the mapping the following line: this.HasKey(t => t.IdEstudante); Understand what you do in practice but not theoretically, refers to the object but explicitly what this parameter is sayin...
asked by 03.01.2019 / 19:12
1
answer

How to check if one control is the child of another? "Control.IsChildOf"

I have 3 panels: <asp:Panel ID="ParentPanel" runat="server"> <asp:Panel ID="AnnoyingPanel" runat="server"> <asp:Panel ID="P" runat="server"> </asp:Panel> </asp:Panel> </asp:Panel>...
asked by 22.12.2013 / 01:40
2
answers

GoogleMaps + c #

I'm trying to make a request in C # using the package RestSharp , to obtain geolocation information by passing the zip. The request looks like this: RestClient client = new RestClient("https://maps.googleapis.com/maps/api/g...
asked by 04.01.2019 / 16:11
0
answers

Problem with Bindind + KeyDown C # WPF

I have in XAML a combobox and a textbox, they are: <Label Grid.ColumnSpan="4" Content="Tipo Filtro" Grid.Column="0" Grid.Row="0" Padding="0" VerticalContentAlignment="Center"/> <ComboBox SelectedValue=...
asked by 28.12.2018 / 19:38
2
answers

Load list of one type in a View of another type

I'm doing a professional registration and of course, my View is typed with this Model. However in the register I need to insert Specialization and Type (2 different models). These last 2 models need to come as lists and appear in checkboxes with...
asked by 08.05.2014 / 21:54
1
answer

Action does not execute

I am using STS authentication, and given given configuration in web.config I can not make my action (Sign In) perform as it should. to illustrate follows code: [AllowAnonymous] public class SegurancaController : SecurityControlle...
asked by 07.05.2014 / 16:40
1
answer

Using Navigate to load more than one link in WebBrowser

How do Navigate go to the next link after the first one has loaded? I tried some things but I did not succeed. nomedobrowser.Navigate("http://reidocrime.com/"); nomedobrowser.Navigate("http://reidocrime.com/map/);     
asked by 25.05.2014 / 21:15