Questions tagged as 'c#'

1
answer

Show users who do not have a department

I want to show the names of people who do not have a departamento The data is: +----+---------+----------------+ +----+--------------------+ | id | Nombre | idDepartamento | | id | NombreDepartamento | +----+---------+--------...
asked by 14.01.2017 / 00:05
2
answers

How to convert data type System.Data.Entity.Spatial.DbGeography to C #?

My table in DB named SqlSpatialType is as follows: IDCliente int Nombre Varchar GpsLocation Geography EuclideanaLocation Geometry My form and I want to insert records using EntityFrameworK from C #, The problem I have is how to trans...
asked by 09.11.2016 / 14:15
1
answer

Ignore DataMember depending on a value

I have a service developed with WCF , in this service I call a stored procedure , it returns 4 fields: id , id_visita , fecha , observaciones . It may happen that the field id_visita comes null and this...
asked by 15.11.2016 / 12:55
1
answer

Create Lists with BindingList C #

code to create a bindingList: using System; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Windows.Forms; using System.Data.SqlClient; using System.IO; using Negocio; using Entidades; usin...
asked by 06.07.2017 / 14:29
2
answers

Send a grid entity by POST

I have a view created with Razor with the list template based on a model, the view is fine and it shows in a grid the data of the list, and also has its 3 links (edit datail delete), what I need is that one of those links (or add a fourth link o...
asked by 25.11.2016 / 01:35
3
answers

Entity Framework - Code first

When I work with EF code first, precisely when the tables already created have data and I need to create a new field or delete a new field. EF forces me to delete the data I had in the tables in order to add or remove a new field to a table....
asked by 20.12.2016 / 18:57
1
answer

Recognize uppercase or lowercase in C #

I have a TextBox in which letters are scanned and do a search in Access , the problem I have is that when the keyboard is uppercase it scans the letters in lowercase and vice versa, and at the time of doing the search gives an error...
asked by 27.12.2016 / 15:22
1
answer

Export datagridview a word

Good I have this problem in exporting a data gridview to word     
asked by 21.10.2016 / 22:46
2
answers

How can I get HTML from the following web request?

string html = ""; using (WebClient webClient = new WebClient()) { string address = "https://#.tk/index-post.php"; byte[] postData = Encoding.ASCII.GetBytes("name=wololo"); webClient.Headers[HttpRequestHeader.Accept] = "text/html, app...
asked by 23.10.2016 / 23:11
3
answers

by disabling a button this loses the bootstrap look

I have this textbox <asp:TextBox ID="tbid" runat="server" class="form-control"></asp:TextBox> form-control is a bootstrap class for the textbox to have the bootstrap look, if I disable the textbox from code using tbid.Enabled...
asked by 02.02.2017 / 00:50