Questions tagged as 'asp'

1
answer

How to download a local file that is on Another Local disk with pure Javascript

I have the following code: <button onclick="javascript:descargarZip(this.value)" value="<%=sArchivoZip%>"><img src="./IMG/icons/mail-arrow-down-icon.png" /></button> which calls a download function in js: function...
asked by 06.09.2018 / 03:16
1
answer

I can not make a Redirect towards an external url

I am creating an action filter to validate certain data in which, if followed, it follows the normal flow of the application, but otherwise it must be redirected to an external url. So far I have been doing tests and nothing has worked for me...
asked by 26.06.2018 / 15:09
1
answer

How to make a personalized data annotation?

I need to validate the routine (Chilean ID) that is entered in a form, for this I am using asp.net mvc 5, but I do not know how I can create my own validator for this data. Can someone help me or guide me on how to create this validator?    ...
asked by 25.05.2018 / 23:33
1
answer

Event Click on Li Html

I have this code in Html <li class="active"> <a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false"> <i class="fa fa-truck"></i>...
asked by 17.05.2018 / 06:02
1
answer

Consume an https service on asp.net c #

I would like you to help me I am trying to consume a service to my application asp.net c # a that the service I want to consume is .ashx but when I add the service reference I get an error like the image I attached. I would like yo...
asked by 27.04.2018 / 17:16
1
answer

Convert date to Javascript

As I can show the date in a DataTable in asp.net, this is my result but I want to show the date this is my controller public ActionResult loadData() { using (SISTEMAUSGEntities dc = new SISTEMAUSGEntities()) {...
asked by 19.12.2017 / 00:08
1
answer

Create a calculator using ASP.NET MVC

I'm doing a small exercise of operations consuming a Web Service, but I can not find a way to show the result in the view, I'm not using Model. Controller public ActionResult Index() { return View(); } [HttpPost] p...
asked by 09.01.2018 / 18:11
1
answer

Error converting from String to Int in TextBox

I have a GridView and inside this I have the function RowUpdating and when I want to change the data, I throw a conversion error.    Input string was not in a correct format. In the way I want to convert the TextBox i...
asked by 23.05.2017 / 16:03
2
answers

Error trying to insert ASP.NET data

I have a GridView with several Textboxs in Footer , this to try to insert, but at the moment of clicking the button, it fails and tells me that the statement . I'm using as a BD test one in access my code is the follow...
asked by 08.05.2017 / 15:39
2
answers

Show list in html table with asp.net

I want to know if you can print the data from a list < > in a html table or if it is necessary to print them in a gridview namespace tts { public class tabla_conexion { public DataTable connect() { str...
asked by 03.05.2017 / 22:55