Questions tagged as 'c#'

1
answer

Direct print without preview with asp.net/javascript

I'm trying to print directly to a default printer. What I do is send print with preview, because for now I can not print directly, because when uploading it to production site I got errors that according to some answers to my question, was that...
asked by 08.10.2017 / 17:07
1
answer

How to create a Switch on / off button in c #

I am trying to create a swtich on / off for a desktop opalance in C # but I do not find any recent documentation of this, only half-finished documents or the examples I have tried have not worked Currently I'm trying to control the Checbox by...
asked by 04.10.2017 / 17:17
2
answers

Two Models in an MVC view 5

I have two Models: public class Solicitudes { public int SolicitudesID { get; set; } public DateTime FechaEmision { get; set; } public DateTime FechaInicio { get; set; } public DateTime FechaFin { get; set; } public string...
asked by 09.10.2017 / 21:30
1
answer

Activate maintenance buttons for all my views

I'm working with WPF, Visual Studio 2015 I have a main view that is my home view, in which a TabControl and its respective TabItem fall at run time. In the TabItem at the moment of activating them (click) calls its respective UserContro...
asked by 10.10.2017 / 15:14
1
answer

Exception from HRESULT: 0x80070002 Visual Studio

Hi, I'm working on Visual Studio and I do not know what I did now that I can not access the controllers of my project, I can run it without problem but when I try to access it the following appears ... Does anyone know what can be d...
asked by 04.01.2018 / 18:41
3
answers

asp.net C # event onblur recharge full page

Good day, I have a .aspx page where, inside an asp: UpdatePanel, there is an asp: TextBox to which I assigned an event onblur, in the following way: .aspx: <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">...
asked by 29.09.2017 / 15:24
1
answer

Create Data Groups with Linq

I have a question with linq. here I consult a group of users, in this case 250 arrive. var usuarios = _db.usuariosmv10.Where(x => x.campana.Equals(id)).ToList(); So, in the users variable I have a list of 250 users, now that's what I nee...
asked by 29.09.2017 / 19:43
1
answer

table with a tr of a single td

Good, I want my table in html to be with only one column in a row, something like a title, similar to this: I mean the cell that says Sign Up, the code in it is the following: <-tr> <-td align="center" colspan="2">Sign...
asked by 30.09.2017 / 20:40
1
answer

How can I download an excel from internet explorer using Selenium without popup?

I have to automate a process so I can then extract some data from three or four different Excel files and pass them to a single Excel. The problem arises when I get to "enter" to download and I skip the pop-up of "Open" "Save" "save as", I ca...
asked by 27.09.2017 / 09:13
1
answer

Make a Query to an Excel File in C #?

I have the following code, when making the query it does not bring me any record. public DataSet ExcelToDS(string bdconn, string ruta, DateTime fecin, DateTime fecfin) { string excelconn = "Provider = Microsoft.Jet.OleDb.4.0; Data Source =...
asked by 11.10.2017 / 17:31