Questions tagged as 'c#'

1
answer

SAVE DATA FROM A FRAME SON TO A FRAME FATHER TABLE

I have a parent frame when I give the new button, I open its child frame that has text boxes and a save button, what I want is that when you fill my text boxes my data will be shown in my datagridview of my parent frame , hopefully you can help...
asked by 30.09.2018 / 20:41
2
answers

Why does xmlwritter omit data when saving in xml?

I have several objects in a class from an xsd file and I have the following object to give an example: FacturaElectronicaResumenFactura resumen = new FacturaElectronicaResumenFactura() { CodigoMoneda = FacturaElec...
asked by 10.10.2018 / 03:18
3
answers

Give a specific format to a date field in a gridview asp.net c #

Someone knows how to format a row of gridview by codehebing I've been trying this but can not get out: protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { e.Row.Cells[2].Text = e.Ro...
asked by 14.06.2017 / 13:51
2
answers

Print PDF filled in with .text

I am creating an offer creator where there is a standard form and only replaces price and customer data. So my intention is to print that filled form with the variables captured in the Textbox.text If someone could explain or give me an examp...
asked by 14.08.2018 / 09:55
1
answer

Entity framework with oracle developer. Validate the user

// Button Event protected void LoginButton_Click1(object sender, EventArgs e) { bool existe; string query = "SELECT COUNT(*) FROM USUARIO WHERE login= :p_login AND password= :p_password "; cmd.Parameters.Add(":p_login", OracleTy...
asked by 24.07.2018 / 17:39
1
answer

How can different dates be inserted from an incremental loop from c # to MySql?

What I want to achieve is to insert several dates per month incrementally with a loop and insert them into a MySql table. I have already made a loop that generates more than one record, but it does not take different dates from the loop that...
asked by 27.09.2018 / 11:38
2
answers

Can someone help me with a program in SHarpdevelop to save non-repeated numbers with an array? [duplicate]

public static void Main(string[] args) { int[] elementos=new int [10]; int i=1;//que empieze a guardar desde 0 int numero=0; while (i<11) { Console.WriteLin...
asked by 15.04.2018 / 04:53
1
answer

LINQ stored procedure

I'm calling a stored procedure through entityframework but I get an exception When passing the parameters exp="tblAdquiridosGe" _cFiltros="'d.cNombre = ''DE'''" return contexto.uspBusquedaCliente(exp,_cFiltros) But when I run th...
asked by 22.08.2018 / 16:15
1
answer

Why do I get strange characters when I concatenate the date to the name of a report generated by reportviewer

I'm trying to change the name of a report that is generated with reportviewer, but when I attach the system date the / they come out with strange characters, can someone help me?     
asked by 23.05.2018 / 22:48
1
answer

Is there a way to move from listT to ListListT with Linq?

I have made a code that does the following: public List<List<object>> SegmentarLista(List<object> origen, tamaño){ resultado= new List<List<object>>(); for (int i=0; i<origen.Length;i+tamaño){...
asked by 22.08.2018 / 17:18