Questions tagged as 'asp.net'

1
answer

Extract the value of an Item from a DropDownList that is filled with a sql server C # query and aspx

I have a DropDownList called Sale that I fill in as follows: DataRow fila = dtr.Rows[0]; OdbcCommand cmd = new OdbcCommand("SELECT A.CardCode, A.CardName, B.SlpName FROM OCRD A INNER JOIN OSLP B ON A.SlpCode = B.SlpCode WHERE B.SlpCode ='"...
asked by 29.06.2018 / 19:28
2
answers

Add template for email, already defined in .cshtml

I am sending an email to the user who forgot their password, the email can now be sent, but I would like to add a personalized template. I do not know if it would be possible to pass the view .cshtml as a body parameter to the email. I alread...
asked by 16.07.2018 / 16:33
2
answers

Ajax fails to send data on asp.net

On the page Puzzle.aspx ego the following button: <figure><asp:ImageButton id="puzzle1" runat="server" ImageUrl="~/images/puzzle1.jpg" class="img-rounded img-responsive image" OnClientClick="showModel('uno'); return false" />&l...
asked by 27.04.2018 / 18:54
2
answers

Send 2 models to the return of View asp.net

In 2 different models I have a method that gives me a list each Lista<Categorias>------------------Lista<Rutas> I'm passing one using the following in the ActionResult of the view public ActionResult Categoria() { re...
asked by 22.04.2018 / 20:51
1
answer

Shoot event by clicking on a cell in a GridView

I'm trying to open a new page by clicking on any cell of GridView does anyone know if this is possible? <table> <tr> <td> <asp:GridView ID="GV_Gastos" runat="server" OnR...
asked by 27.02.2018 / 16:24
1
answer

Pass Data with ViewBag.Message

I want to pass a message from the X view driver to the Y visa ViewBag.Message = "Mensaje"; return RedirectToAction("Index", "Y"); when trying this does not work, not with the View (), how can I do it?     
asked by 26.02.2018 / 21:53
1
answer

Send view parameters to the controller With angularjs

DropDownList was created by the framework @Html.DropDownList("IdPais", null, "Seleccione un país", htmlAttributes: new { @class = "form-control", id = "SelectPais", onchange = "SelPais()" }) This form sends me the id that I need to the c...
asked by 29.01.2018 / 15:00
2
answers

decimal point is lost in the getter and setter

I have a problem with some getter and setter, these are the properties public double PrecioUnitario { get { return _PrecioUnitario; } set { _PrecioUnitario = value; } } private double _SubTotal; public double SubTotal { get { ret...
asked by 04.01.2018 / 05:57
1
answer

Error finding the path to save a txt file

Good morning, I have a web in c # asp.net and in which I have to access a folder to save some txt files. What happens is that when I run it from a visual studio I can read and write the files in the folder normally, but if I publish it in IIS, i...
asked by 24.01.2018 / 17:25
1
answer

Return Values from a List c #

Good, I would like you to help me. I am commenting that I am doing a webservice that returns me in a List , I am using Dos Capas in: 1.Web Service 2.Capa Datos The Code of my Webservice is the following: public class Heldesk : System.We...
asked by 15.10.2017 / 15:37