Questions tagged as 'asp.net'

1
answer

Format for currency (MXN) DataFormatString

I am applying in the model the DataformatString I wish that in the price of the products appear the cost separated by thousands with one (,) and that it appears without decimals. I was able to make decimals not appear but not to show the thousan...
asked by 20.08.2018 / 15:56
1
answer

Data table with AJAX C # ASP.NET SqlDataReader

Hi, I'm working with ASP.Net / SqlDataReader / C # and razor I have the sig. complication ... I'm trying to show a table using AJAX but I'm not sure I'm doing it right, so I understand I have to make a method for my query to be stored in a list...
asked by 03.10.2017 / 23:17
2
answers

How to determine the time elapsed until midnight

I need to determine the time until midnight. These calculations are correct: From 11:00 am to 12:00 pm = 01:00 From 00:00 am to 11:00 pm = 11:00 From 11:00 am to 01:00 pm = 02:00 But when the next time is calculated the result is...
asked by 25.08.2017 / 17:17
2
answers

Type of data to receive file in Asp.net (C #) sent from JavaScript

I have a page made in HTML and JavaScript , in this I have a form with several inputs among them is a input file , and I send them to server through Ajax and JS . On the server side I receive the data of inputs , bu...
asked by 04.01.2017 / 18:18
2
answers

Select row and those data pass them to another aspx

At the moment I only have this idea, when you select a column, the Id is placed in a Label and at the same time it is directed to the other page, dragging the Label3 ( id_cr ), and putting it in another Label on...
asked by 02.01.2017 / 19:25
4
answers

problem with SqlDataReader 3 layers Login asp.net c #

Good afternoon, I would like you to help me, I am doing a log in 3 layers since I'm capturing my values in a SqlDataReader This is myData Layer. public void LogeoUsuario(string cboAgencia, string clave, string usuario) {...
asked by 06.05.2017 / 01:01
3
answers

How to know if a page receives a post

On a page .aspx ( detail_page.aspx ) I have a code like this, now lower add an HTML form with action to the same page. How can I know if the page is receiving the post or NOT? The goal is if you receive the post execute a code and if you d...
asked by 30.09.2016 / 14:07
3
answers

Download or save file to the client from ASP C #

In ASP.NET with the C # language. I need to somehow make my application download or preferably save on the client side an XML that is generated in my application.    In other words, in a "Download" or "Save" button you can download the X...
asked by 11.11.2016 / 23:18
2
answers

Bootstrap stops Accessing an Input after Setting Runat="Server" ASP.net C #

I have a input : <input type="text" class="form-control pull-right" id="txtRangoFecha" runat="server"> When I put Runat="Server" to this object jQuery , it stops accessing and the calendar never leaves again, and th...
asked by 11.11.2016 / 20:44
3
answers

Authentication window IIS ASP.net

Good I would like you to help me I was developing a window authentication with the asp.net language, the question is if it works and when I enter the page I get the name of the user that is logged in. The problem is that when I upload my pa...
asked by 04.04.2017 / 15:23