Questions tagged as 'c#'

2
answers

Refresh TextBox without PostBack

I need to update the textbox change when the textbox receives value from the client, it is populated, I use this function inside the textbox to receive value from the client in the TextChanged event: protected void txtvalordocliente_TextC...
asked by 07.06.2017 / 14:46
2
answers

TemplateState Validation Error

I want to return the validation errors of my model. I just get an error message when I try to register.    System.Linq.Enumerable + WhereEnumerableIterator'1 [System.Web.Mvc.ModelErrorCollection] I'm putting validation in controller :...
asked by 08.06.2017 / 01:51
2
answers

Conversion of values [closed]

I need the string "hql" which would be my select to convert to int so I can do the comparison of values in an if. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using BlogWeb.ViewsMod...
asked by 07.06.2017 / 20:02
1
answer

Linq to Entities x Lambda Expression

What's the difference between Linq to Entities and Lambda Expression? Is Linq to Entities still used in the Entity Framework or is there something newer?     
asked by 30.04.2017 / 13:21
1
answer

Compare variables with values from a SQL Server table C #

I have 1 table with 2 columns ( Code and Value ). I'm writing a code in C # and I have a taxpercentage variable. What I need is to return the Code column value, when the variable taxpercentage is equal to the column Value . I h...
asked by 26.04.2017 / 19:19
1
answer

Xamarin.Forms ios WebViewRenderer sharing Cookies

I'm using a WebViewRenderer to setup the cookie policy and also to share cookies from a login request from an HTTPClient. It turns out that as much as I give the set:   var cookieJar = NSHttpCookieStorage.SharedStorage; cookieJar.AcceptPol...
asked by 23.04.2017 / 00:39
1
answer

Changing the ToolStripStatus value while typing in the RichTextBox

I'm developing a text editor just to practice. But I came across a little problem, I would like that while the user is typing, the value of the ToolStripStatus that by default is 'READY', wanted to change while typing 'READY' TO 'DIGITI...
asked by 27.06.2017 / 18:25
1
answer

Browse by Date

Well I'm using EF with the following code to query it brings the query by name and type but not date, since the time is not in my filter with the 00:00:00 time it brings correctly the time not is part of the research, but it is part of the busin...
asked by 26.06.2017 / 15:15
1
answer

Doubt on .NET Framework 3.5 and ASP.NET MVC

I need to create an ASP.NET MVC application using the .NET Framework 3.5 following steps: File - > New - > Project, so I choose, Visual C # Template - > Web After .NET Framework 3.5 and APS.NET Empty Web Application ,...
asked by 28.03.2017 / 16:08
1
answer

Problem in leaving form as top C #

I have 2 forms. The main one contains a button that opens the second form inside the main. private void btnCalculadora_Click(object sender, EventArgs e) { Calculadora = new frmCalculadora(); Calculadora.TopLevel = false;...
asked by 22.06.2017 / 18:56