asp.net-ajax

Save data from telerik radgrid to database

萝らか妹 提交于 2021-02-11 16:49:52
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

Save data from telerik radgrid to database

 ̄綄美尐妖づ 提交于 2021-02-11 16:47:17
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

how to pass list string from view to controller by ajax jquery

强颜欢笑 提交于 2021-02-07 19:59:56
问题 this is my html <ul class="sb_dropdown" style="display:none;"> <li class="sb_filter">Chon the loai</li> <li><input type="checkbox" value="All"/><label for="all"><strong>Tất cả</strong></label></li> <li><input type="checkbox" value="Woman"/><label for="Automotive">Đồ nữ</label></li> <li><input type="checkbox" value="Shoes"/><label for="Baby">Giày</label></li> <li><input type="checkbox" value="Bag"/><label for="Beauty">Túi sách</label></li> <li><input type="checkbox" value="Man"/><label for=

how to pass list string from view to controller by ajax jquery

淺唱寂寞╮ 提交于 2021-02-07 19:59:11
问题 this is my html <ul class="sb_dropdown" style="display:none;"> <li class="sb_filter">Chon the loai</li> <li><input type="checkbox" value="All"/><label for="all"><strong>Tất cả</strong></label></li> <li><input type="checkbox" value="Woman"/><label for="Automotive">Đồ nữ</label></li> <li><input type="checkbox" value="Shoes"/><label for="Baby">Giày</label></li> <li><input type="checkbox" value="Bag"/><label for="Beauty">Túi sách</label></li> <li><input type="checkbox" value="Man"/><label for=

Returning Value(all fields) from Datatable to AJAX in ASP.NET C#

人盡茶涼 提交于 2021-02-07 10:50:29
问题 I've searched all over the net but I didn't find the answer maybe you guys can help. I am new to ASP.NET C# My aspx.cs code [WebMethod] [ScriptMethod] public static string GetData(int ID) { string SQL = "Select ID, FirstName, MiddleName, LastName from tbl_demo1 where ID = '" + ID + "'"; DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(SQL, cn); da.Fill(dt); if(dt.Rows.Count > 0) { return dt.Rows[0].ItemArray[0].ToString(); } return ""; } Question:in this part return dt

Accessing WebAPI 2 json with DataTables.NET ajax call in MVC application

血红的双手。 提交于 2021-02-07 04:10:54
问题 I have been trying to get DataTables.NET to play nicely with a WebAPI RESTFul service I built and the json being returned does not seem to fit what DataTables is looking for. I have tried the various "server processing" examples along with a few examples I found on the internet like this one, but I don't want to make the WebAPI call dynamic. I want the API to be self documenting so that other applications and other developers can easily also use the API. So far, here is what I have. The JSON

Create HTML table out of object array in Javascript

﹥>﹥吖頭↗ 提交于 2021-02-04 21:13:38
问题 I am calling a web Method from javascript. The web method returns an array of customers from the northwind database. The example I am working from is here: Calling Web Services with ASP.NET AJAX I dont know how to write this javascript method: CreateCustomersTable This would create the html table to display the data being returned. Any help would be appreciated. My javascript function GetCustomerByCountry() { var country = $get("txtCountry").value; AjaxWebService.GetCustomersByCountry(country

Create HTML table out of object array in Javascript

自古美人都是妖i 提交于 2021-02-04 21:12:21
问题 I am calling a web Method from javascript. The web method returns an array of customers from the northwind database. The example I am working from is here: Calling Web Services with ASP.NET AJAX I dont know how to write this javascript method: CreateCustomersTable This would create the html table to display the data being returned. Any help would be appreciated. My javascript function GetCustomerByCountry() { var country = $get("txtCountry").value; AjaxWebService.GetCustomersByCountry(country

File upload with ASP.NET Core + VueJS

你。 提交于 2021-01-29 10:53:43
问题 I have ASP.NET core , VueJS app. The task is to Upload file with form data Problem: Form data is null Here is the HTML and JS class I have. Its using Jquery Ajax call to upload model data + file. I am unable to use 3rd libraries as Axios (at least I dont know how) , but pure Jquery. Does anybody have suggestion how this can work ? HTML <form method = "post" enctype = "multipart/form-data" role = "form" v - on: submit.prevent > <div id = "formEditInner" > ... <div class = "form-group" > <label

Ajax call does not pick image in the asp dot net form?

岁酱吖の 提交于 2021-01-29 07:14:31
问题 I am working on an asp.net core application. I want to send an ajax request to the controller. My ajax function looks like this: I have an input for the user to upload a file image/file. With the current code that I have, I receive null at the controller when adds an image. Ajax request: (I Have) $("#submit").click(function (e) { e.preventDefault(); var data = $("#form1").serialize(); console.log(data); alert(data); $.ajax({ type: "post", url: "/Employee/Create", processData: false, data: