Questions tagged as 'asp.net'

1
answer

Error executing SaveChanges ()

I'm doing a ActionResult that helps me to do a update and to do a insert , depending on the flag that passes as a parameter, this I had already done with other controllers and it works perfectly, but with this it sends an err...
asked by 24.07.2017 / 18:50
1
answer

Why does not OnClick work on my td? [closed]

I have the following code in jquery , which adds a row to a table var fila = "<tr><td>" + $.trim(idProduct) + "</td>"; fila += "<td>" + $.trim(response.d.nombreProducto) + "</td>"; fila += "<td onclick='O...
asked by 12.07.2017 / 22:28
1
answer

Cut in several parts string of characters C # asp.net

Good evening. How can I convert the following string: "image / jpg, image / jpeg, application / pdf" in the following: ".jpg, .pdf, .zip" Also taking into account that the first chain can include more extensions. Thank you.     
asked by 08.11.2017 / 02:51
3
answers

Assign a value to an ASP Text Box using JavaScript

This is my function JavaScript : function prueba() { var a = 1; var b = 2; var total = a + b; ('#TextBox1').val(total); } This is the .aspx : <div> <asp:TextBox ID="TextBox1" runat="server"...
asked by 13.06.2017 / 19:58
2
answers

Print total of query count in a label

How about, I'm trying to print the total of a query count in a label , but when I call the result only prints a System.Data.DataRow This is my query /***********GET ALL THE FAKE TOOLS FROM FCH*************/ public...
asked by 09.06.2017 / 21:28
2
answers

asp net mvc5: Secondary actions are not allowed to execute redirect actions

I'm developing with mvc5 and EF I have a controller with the operations to edit a record something like this public ActionResult Edit(int id, string weblogin, byte tienda) { if (id <= 0) { return n...
asked by 16.05.2017 / 20:56
2
answers

Create a view object of two different tables using entity

I need to return a DataView in Edit view but the view is filled with two different tables. What I need is to know how to return an object PatientView of my two tables, patient and people This is the Edit...
asked by 02.07.2017 / 04:00
2
answers

How to change the image of a button that has 2 states from the server side?

I have a button in HTML where the image takes it from a CSS. When I press the button it must change to another image and if I press it again it should go back to the previous image I had. How to do it from the server side? Is it more correct...
asked by 05.09.2018 / 16:24
2
answers

How to get only some Columns DataTable

Good morning, I have this Web Service that provides me with all the data of a table and all the columns, how do I select only some Columns and not all? [WebMethod] public DataTable consultaIndividualSUCIS(int tipoCodigoEntidad, int estadoA...
asked by 26.05.2017 / 16:31
1
answer

failed to perform Convert.ToInt32

public int cantPembarcar(String pCodigoArticulo) { string strCon = ConfigurationManager.ConnectionStrings["Sk_DBRadioFrecuencias"].ConnectionString; SqlConnection conn = new SqlConnection(strCon); SqlCommand comm = new SqlCom...
asked by 02.04.2017 / 00:09