Questions tagged as 'webforms'

2
answers

Change text of a label with javascript

Greetings. I have an Onblur event in Textbox : <asp:TextBox ID="us" runat="server" MaxLength="15" onblur="validar(this.id)" Width="232px"></asp:TextBox> Then a Label : <asp:Label ID="Label1" runat="server" Text...
asked by 21.07.2017 / 20:21
2
answers

How to pass parameters to an event that you do not receive?

I am trying to pass the objeto sender to an event that does not receive parameters, I need the sender object in order to generate the information This is the event sent by the sender object: protected void DButton(object sender, Even...
asked by 06.07.2017 / 17:41
1
answer

Open a modal from another page

How would I like to know how I can do to open modal from another page, since I want to send it to call from the navigation bar, to be able to show it from x page This is my modal : <div class="modal fade" id="myModal" role="...
asked by 29.05.2017 / 15:26
2
answers

fill dropdownlist in gridview and the maximum value must be the value that one of the cells has

I have a gridview with products from a store listing some characteristics, among them the quantity of products in stock so the user should not be able to select a value greater than the number in stock (stocks) I have this gridview and I need...
asked by 05.05.2017 / 18:15
1
answer

How to show pop-up window asp c #

Good afternoon. I would like you to help me, I'm doing a modal that runs as long as it registers and an error message appears. So far what I have achieved if you register but the modal message is not displayed. I'm doing my insertion wi...
asked by 24.03.2017 / 21:38
1
answer

Pass an instruction from sql to an asp: SqlDataSource

I have the following statement tested on the sql server: select AsignaturaNombre from Asignatura where CodigoAsignatura=(SELECT [idMateria] FROM [Permisos] WHERE ([idProfesor] = 19398676) union SELECT [idMateria] FROM [Permisos] WHERE ([idAlum...
asked by 24.03.2017 / 15:27
1
answer

Get values row selected ListView

I want to get the information of a selected row of ListView to pass them to an object with the same (and other more) fields. I tried with SelectedItemTemplate (since SelectedItems does not appear to me) but I can not index it (or index it...
asked by 15.03.2017 / 17:05
2
answers

Pass a variable to the signal hub r asp.net - webforms

I have developed a web application with signal r guiding me from this tutorial: link It works fine, but in the tutorial the employee ID is not a variable, it is hardcoded in the hub class, I want to be able to pass the client id as a variab...
asked by 08.11.2016 / 22:13
2
answers

How to send a value of an input that is assigned by jquery to the controller using Url.Action in MVC C #

I assign a value to input by jquery in document ready $(document).ready(function () { $("#input_1").val(“valor de prueba”); }); In the body, there is the input and attempt to send its value by url.acti...
asked by 15.09.2016 / 23:27
2
answers

Save id of an image clicked on asp.net (Web Forms)

Excuse me, can anyone help me with the following? Language: ASP Web Forms, c # not PHP.  How could you save the id of an image when you click it? ... I want to make a page for a library, when I click on the image of the book, redirect me to a...
asked by 09.09.2016 / 12:21