Questions tagged as 'asp.net'

1
answer

Type error not detected: the 'length' property of null can not be read (Uncaught TypeError: Can not read property 'length' of null)

function addRowDT(data) { var tabla = $("#tbl_pacientes").DataTable(); for (var i = 0; i < data.length; i++) { tabla.fnAddData([ data[i].IdPaciente, data[i].Nombres, (data[i].ApPa...
asked by 27.12.2018 / 01:53
1
answer

Allow / Deny User does not work correctly

I can not get security on a website. In the web config Raiz I put the following line: <authorization> <deny users="?" /> </authorization> Then, in the "Account" folder, I have the following web.config : <?xml...
asked by 03.10.2016 / 15:16
1
answer

Select records according to ID with EntityFrameWork

New work and the test is as follows I have this function that receives a parameter of type (DbGeography) which selects a set of results and returns a list, now what I need is to change the parameter by (int RestaurantID) and make the same sel...
asked by 23.09.2016 / 17:31
1
answer

Can I do Global Query Filters in Entity Framework 6? in the OnModelCreating?

I'm trying to do this in EF6. It can? I wanted to make a blobal filter protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Cotizacion>().HasQueryFilt...
asked by 15.12.2018 / 02:13
2
answers

How to display data in a DropDownList?

I'm with a project that consists in creating a content manager for an information portal, so far I made the insert to add new articles to the information forums, now I continue with the part of the queries to be able to perform the update an...
asked by 04.01.2019 / 15:50
1
answer

Get the value of a field with Linq

I want to get the value of the field extension and be able to use it in a variable but it marks me error. This is the code I'm using var ext = (from ex in ctx.usuarios_bastion where ex.id == idus select ex).ToList().ToString();...
asked by 22.11.2018 / 22:15
1
answer

How to pass a variable js to a query in ASP.Net

Very well I explain, I have a form, I use the date picker range for the dates, and it works, I make a console.log and it gives me the start date and the end, all right up there, the point now is like I send that variable to my search query in th...
asked by 11.12.2018 / 20:00
1
answer

How to export to Excel data from a table (datatable) asp.net mvc 5

This is on my table I need to send to excel This is a part of my view <div class="panel panel-flat"> <div class="panel-heading"> <h5 class="panel-title">Tipo Planilla:<strong> @ViewBag.FrecuenciaPag...
asked by 15.11.2018 / 21:25
2
answers

Select control with AutoPostBack = true and OnSelectedIndexChanged?

I have some html controls that use runat="server" on the server side. The problem is that with the "Select" element when selecting an element I must execute code on the server to load data into other "Select" but I do not accept the AutopostBack...
asked by 15.11.2018 / 18:01
1
answer

Execute an "Onclick" event from javascript in Dynamic controls

I have problems with a form in ASP.net in VB, this form creates dynamic texbox and I have a button to add the textbox. Now this button when adding the new row of textbox saves what has a row before in the BD. Now the question is how can I do so...
asked by 10.11.2018 / 20:32