I have found ASP.Net PageMethods very handy and easy to use, but I have just started developing using MVC and am not sure how to use them?  What is the equivalent of PageMethods.MyFunction() in MVC where MyFunction is a Controller  action?  I know I...
I'm using an entity together with ajax. I want the full table i provice with Entity framework ina grid created with JavaScript. The table I'm currently sending has less than 140 lines. My code works if I only have 50 lines in the table a few...
Here's the situation: I would like to iterate through a table with input controls, collect up the values and then submit them to an ASP.Net PageMethod to save the data to the database. I have the collection all figured out, but am getting an erro...
I am performing a jQuery .ajax() call that returns a List<string> of IP addresses on a specified subnet.  I use a [WebMethod] on an .aspx page to return the values.  ASP.NET's built-in JSON serializer does the magic to return the actual JSO...
I have a page with a MasterPage, in the master page, I have this:   <ajaxToolkit:ToolkitScriptManager ID="scriptManager"                                     runat="server"                                     AsyncPostBackTimeout=&#...
Is it possible to call a function on the server side from the client side using PageMethods, and access that function's return value in JavaScript? Here's an example:   Client Side:  function onBlur(){ //this function is called when you click...
I have some <li> Items in my HTML Page like this  <li id="A1" class="ui-state-default">Item 2</li>   <li id="A2" class="ui-state-default">Item 3</li>   <li id="A3" class="ui...
I'm looking at some old code that I can only assume worked at one time.  MyPage.aspx:  function GetCompanyList(officeId) {     var companyList = document.getElementById('<%= CompanyDropDown.ClientID %>');     if (companyList.length...
I have a main page which has some pagemethod called to perform some activities. A popuppanel(popuppanel content page also have pagemethods) is used within this main page to show some details. If the same is executed multiple times (i.e., opening the...
I've got a click tracking AJAX function (calls a WebMethod on an .aspx page), and I need to call it when the user clicks through to a link.  Unfortunately, I'm using window.location = "newUrl" to change the page, which seems to make t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.