AJAX :: Datatypes Supported By Net Ajax Page Methods?
Feb 22, 2010
I am using the Page Methods of Asp.Net Ajax to call the server method by enabling EnabledPageMethods of ScriptManager to "True". Can we return the DataSet using the Page Methods written on server side?
And also I want to know what are the default datatypes that are supported by the Page Methods to return to client?
View 3 Replies
Similar Messages:
Mar 2, 2011
Is there anyway I can handle both json and html return types when posting jquery ajax:
For example, this ajax call expects html
[code]....
View 1 Replies
Jun 29, 2010
I'm using ASP.NET page methods to check for the updates. I'm using inproc sessions and windows authentication in IIS 6. When page is loaded, a session is started. But sometimes when the page method is called it starts a new session(created with current request return true also). Why that might happen ?
View 2 Replies
Oct 20, 2010
I'm having problems with accessing querystring params in my page method. Everywhere I read it says you can access querystrings just fine, but when I try it just returns null, what's the problem?
same problem I found - [URL]
View 14 Replies
Nov 11, 2010
how to access the Page methods through javascript.I kept a breakpoint in PageMethod and it never got a hit.
Am i doing anything wrong here?..
<head>
<title>GlobeLocator Gold Map</title>
<script runat="server">
[System.Web.Services.WebMethod]
[Code]...
View 10 Replies
May 20, 2013
<asp:ScriptManager ID="ScriptManager1" AsyncPostBackTimeout="9999" runat="server"
EnablePartialRendering="true" EnablePageMethods="true"> is set
using a webservice defined at the page level
I am calling the webmethod in javascript as
PageMethods.ItmIdDate(param1,param2, function1)
I get the values of the param in alert, the function is defined but I get error PageMethods is undefined...
Public Function ItmIdDate(ByVal ITMID As Integer, ByVal UserRemark As String) As String
View 1 Replies
Oct 15, 2010
I have written web methods in code behind and I'm able to call them using PageMethods.(method name) in an ordinary aspx page.
If I'm trying to call the webmethods in a master page using PageMethods.(method name), it is throwing a jscript error pagemethods is undefined.
My code is like this:
[Code]....
[Code]....
View 10 Replies
Oct 4, 2010
I wish to create a website based on ajax functionality using Master and Content pages.I want to use page method or xmlhttprequest object to check some validations in registration form,which is a content page of my website. Is it possible to work so or is there any other method to do it.
The code I'v written using page method in normal aspx page working fine but it is not working in contnet page.
View 1 Replies
Feb 24, 2011
I have three cascading dropdowns on my web page and they work fine. The issue I am facing is that there are other controls on the page which cause a postback and with each postback the cascading drop downs are being re-populated (service methods are called) which is becoming a performnace issue.
View 1 Replies
Oct 21, 2010
I have a Login control with 2 (default) textboxes: Username and Password with a TextBoxWatermarkExtender respectly
login.aspx (markup)
[code]....
In Firefox it works fine! but in IE it doesn't work :(
Error: This command is not supported
View 7 Replies
Feb 13, 2010
I was curious if one can use RequiredFieldValidator and other validation controls for client-side validation on a production site?I looked in the docs but could not find any mention of validators.
View 3 Replies
Jul 22, 2010
Below is some code. The save() method was pre-existing. I added the saveRanking() method. When I walk through the code, it hits the method, but then it just bails out of it. No exception (that I can see). Do I need that function(data) part?
Code:
function save() {
$.post(
"/Applications/SaveStatus",
[code]....
View 1 Replies
Feb 28, 2011
I am trying to use some page methods on an aspx page. I've done this several times before in other asp.net applications and never had issues until now. I believe that maybe the issue has something to do with the methods be exposed to POST but I'm not entirely sure. Everything on the page loads correctly then once it attempts to make an ajax call rather than hitting the "test" function, the page tries to reload and the page_load method is called again. I chacked the URL string on both cases when page_load is called and both are correct. I am suspicous that there is some need to do with the web.config but I'm not sure what. The application is close to 10 years old and has been grandfathered up all the way to ASP.net 3.5. On another note, I can hit asmx functions perfectly fine its only page methods that seem not to work.
Imports System.Web.Script.Services
Imports System.Web.Services
Partial Public Class CustomDataFilter[code].....
View 1 Replies
Jun 29, 2010
I found a write-up somewhere about the multi-handle slider control and in the post there were the following javascript lines:
slider.add_value(value);
slider.add_drag(value);
Slider, in this case, is my slider control... but how did the person know these two methods exists? Is there an API guide somewhere for the Ajax Control Toolkit?
slider.add_valueChanged(onValueChanged);
View 3 Replies
Feb 2, 2010
[WebMethod(EnableSession = true)]
View 5 Replies
Aug 25, 2010
Scenario is, I have a tab container inside which I placed 5 tabs and each tab having 4 Cascaded dropDown.Now for changing the tab page everytime refreshed and calling all 5 parent control dropwdown to fill.But can I prevent it in that manner so that for changing the tab only that parent webmethods will be called to populate.In page load itself it will call only the active tab parent Cascading dropdown web method.
View 8 Replies
May 10, 2010
I am showing state,city, zipcode in cascaded format. I designed cascade dropdown with asp dropdown list controls. I am loaing the citys & zipcode based on selection index changed.. here when I am selecting city the request is sending to server & its loading citys....
I don't want see post back operation on my page when I am selecting city & zipcode. So I am thinking to use Ajax cascade dropdown list to avoid sending the request for each selection.
If I use Ajax Cascade dropdownlist can i cascade the loading of citys & zipcode without using webservices?
If I use only webmethods for cascade dropdown it will work ?
View 4 Replies
Oct 1, 2010
I am using an AJAX dropdownlist control with two dropdownlist. Instead of using a webservice to populate the data, I used the pagemethod to populate. My problem is the second droplist won't populate. I get a server error, 500 in the droplist. The first droplist populates fine.
BUT here's the real kicker. If I reverse the order of the public static function such that GetHelloList2 comes BEFORE GetHelloList1 in the code, then the GetHelloList2 works ...... it just seems like it is only firing one pagemethod event and allowign only one.
[URL]
View 5 Replies
May 3, 2010
Old school coders are used to having every server control create events in the .cs files.. for example.. Getting the Initial load of data, Saving Data, Deleting data... and then binding datasources to the server control..
New school coders want to do it in Jquery + AJAX calls to .svc files... That gives automatic no post backs so that is a advantage... and I think its a different way of thinking.. All of a sudden the UI related events are all being done in Jquery..
What is the most modern and efficient way to go ? How can I convince the old school coders to let us you this new paradigm ? (assuming it is the better way)
View 3 Replies
Mar 8, 2010
i want to develop an asp.net mobile web application whith Ajax features. i dont khnow whether these technologies are supported in mobile developpement?
what stups should i follow to make such project ( IDE + SDK....) . finally what are free windows mobile emulator ( except Microsoft ones)?
View 7 Replies
Apr 15, 2010
I have created a web aplication in the following environment Visual studio 2008, IIS 5.0 & OS:Windows XP. It is working fine in my local system. But when I host this application on the server some of the AJAX methods are not working.
The server environment: They have installed Microsoft .Net framework 3.5, IIS 7.0 & OS:Vista.
I am using a text box in that application. When a user types any character say 'a' a div will be opened below the text box displaying all the cities starting with the character 'a'.
for example this is code where I have written the Ajax method
[Code]....
I am calling this Ajax method in the source file through javascript, below is the code
[Code]....
The ajax method which was written in the .cs file returns the response.value correctly in my local system.But in the server the Ajax method is not returning the response.value.
View 1 Replies
Nov 24, 2010
I am building a sort of administration control panel which is basically just giving the end user the ability to manage the database through my app rather than knowing Management Studio. Creating lists of users, creating events that the users can attend etc, nothing too complex. So I am basically building the whole thing using JQuery AJAX with ASP.Net to make the DB connection and what not. My Jquery code just calls a different static method in my pages code behind for each different task, passing JSON back and forth.
From what I've seen results-wise so far, my interfaces are much quicker (almost instant) and even tasks on the server take less time to return through JQuery. But if you looked at my javascript code, you can see the "Page.aspxMyMethod". That means that people can access my methods just by sending a request from anywhere? Will forms authentication prevent this because it goes through an aspx page or what?
View 2 Replies
Feb 2, 2010
I have a web service/wsdl file that requires client authentication to passed through SOAP headers.
There is not property or method available in web service to set the SOAP headers.
how to call the web service method along with SOAP headers in .NET 2.0
View 7 Replies
Apr 1, 2011
I using this Ajax.BeginForm
<% using( Ajax.BeginForm( "Create","Mandate",
new AjaxOptions( ) {
OnSuccess = "GoToMandates",
[code]...
View 1 Replies
Mar 20, 2010
At me is user control. I cannot change its property from JavaScript in any way(SectionName) . I can not understand in what a problem?
ratingElement = document.getElementById('ctl00_MainContent_rating_rating_RatingExtender_ClientState');
function handleStateChange() {
if (xmlHttp.readyState == 4) {
[code]...
View 8 Replies