Questions tagged as 'c#'

0
answers

Create users in c #

How can I do so that each user who believes, can only see the content that he added? EXAMPLE: there are 2 teachers, each teacher has different students, how can I make a program so that each teacher can only see the students that correspond?...
asked by 13.06.2018 / 00:57
2
answers

Avoid double inquiry to print report crystal report c #

I want to raise the following question, I do not know if I am correct. I generate a view in which you receive parameters to be able to generate a report and upload it as partialview the code is as follows. [HttpPost] [ValidateAntiForgeryT...
asked by 13.06.2018 / 14:33
0
answers

Connection to Database .DBF using C #

I am developing a Windows Form application and I need to connect it to a database with a .DBF extension. Based on this question and esta page I developed the following code: OleDbConnection Conn = new OleDbConnection { ConnectionStri...
asked by 12.06.2018 / 18:35
0
answers

Passing data from a gridview to a texbox without code-behind

I have a small problem I am trying to select a row in a gridview that I have in my view and that data in the row pass them to a form that is in the same view I am working with MVC 2 (aspx) therefore I have tried the ways of doing it from code-be...
asked by 19.06.2018 / 21:28
1
answer

how can I get the client's printer list in ASP.NET [closed]

Will someone know if there is any way to list the printers on the client side? I was using system.drawing but it just lists me from the server. Any suggestions?     
asked by 19.06.2018 / 22:24
1
answer

ERROR: the time zone p.m. is not recognized, Postgres

I have a table similar to this one: ------------------------------ | id | fecha | ------------------------------ | 1 | 2018-06-18 14:30:00 | | 2 | 2018-06-18 14:31:40 | ------------------------------ The important thin...
asked by 19.06.2018 / 23:49
0
answers

Union select with the same ids

I have two tables to which one in a query by selecting the "ID" and "NAME" from C #, I show it in a combobox, but some IDS are repeated, and when I select a name in the combo I select the first How can I solve this? select campo1, campo2 from...
asked by 09.06.2018 / 00:00
0
answers

Expander and DataGrid with c #, execute one event inside another

I expose my case, I have an Expander that starts closed, I expand it and with that I fill a DataGrid. My problem: When I click on a row in the DataGrid, I want the Expander to close, so I put in the event SelectedCellsChanged(object se...
asked by 13.06.2018 / 17:16
1
answer

How can I update a datagrid?

I want to update a datagrid , maybe you can only with this code: this.almacenTableAdapter.Fill(this.almacenDataSet.almacen); I want to update the datagrid after having made a modification or adding a new record to the d...
asked by 13.06.2018 / 17:16
0
answers

Change the CommandTimeout to a WebMatrix Database query

Someone knows how to increase the CommandTimeout in a query by using the class Database from WebMatrix, internally creates a sqlCommand object with a default time of 30 seconds. My code is similar to the following: var db = Database.Open(...
asked by 13.06.2018 / 17:22