Loading ...

Call PageMethod From JavaScript in ASP.NET Ajax

Who is online?  0 guests and 0 members
home  »  blogs  »  Vijendra Shakya  »  Call PageMethod From JavaScript in ASP.NET Ajax

Product Spotlight

ASP.NET Hosting Spotlight

 

Comments (4)

Abe
Abe said:
i tried exactly what u have done but I could not succeed. the page seems to generate an error. when i debug it what i got was that says 'divWelcomeMessage' is null or not an object any help
3/23/2010
 · 
 
by
rashree
Raj Kushwaha said:

Hi,

My query is simple:-

How we can call Normal Non-Static method from client side?

I mean suppose we have create a methos name like add() then how we can call this method.

5/25/2011
 · 
 
by
Anonymous
Thanks. This is exactly what I am looking for. Very simple and easy. Much better than webservices heavy weight approach.
10/8/2009
 · 
 
by
Zeeshan Umar
Zeeshan Umar said:

Really a wonderfull and simple article, however I would like to add that sometimes [WebMethod] does not work properly and we need to add [ScriptMethod] tag also.

 

8/10/2010
 · 
 
by
  • Name:*
  • Email:*
  • Website:
Type the characters you see in the image *

Confirm

Latest community blog posts

  • A person on the forums was struggling with jQuery tools tabs index issue on postback. On clicking the tabs and doing some postback the selected tab index was getting lost. Below is the solution on how to retaing the previous selected index which was there before postback. Complete Source: <%@ Pag...
  • I was working with jQuery tools tabs today and I had to set the initial index of tab selected by default. The solution is to set initialindex property in the options. Source: $("ul.tabs").tabs("div.panes > div", { initialIndex: 1 }) ; Complete code to test above: <html> <head> <tit...
  • A person asked me today how to get form authentication cookie and get the data present in it. I decided to write a short blog on it. Formauthentication cookie is saved with the name which we can get via FormsAuthentication.FormsCookieName property. The key here is to get the cookie via this name and...
  • While working with one of the sample application I noticed that form authentication timeout in web.config was overriding the manual ticket's (which we created via code) timeout. Below is the code which was written in the application: var ticket = new FormsAuthenticationTicket(1, "UserName", DateTime...
  • In this blog I will show how to select a range of characters in textbox with jquery. In my demo I have used one textbox and one button. On click of button arange of characters in textbox will be selected. Below is the sample code: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="ser...

Vijendra Shakya's latest blog posts

Product Spotlight

ASP.NET Hosting Spotlight

 

Quick Vote

What kind of email newsletter would you prefer to receive from CodeAsp.Net?