" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Using PageMethods in ASP.NET

Posted on November 23rd, 2015 by Bhagirathi Panda

The PageMethods feature enables the using of code-behind page methods on the client side. This is easier and reliable to use and the main feature is it automatically validates the page parameters. Page Method Example ASPX <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”PageMethods.aspx.cs” Inherits=”PageMethods” %> <!DOCTYPE html> <html xmlns=”http://www.w3.org/1999/xhtml”> <head id=”Head1″ runat=”server”> <title></title> <script type=”text/javascript”> function AccessServerSide() […]

How to test the WebMethod by passing the parameter value in the URL

Posted on November 23rd, 2015 by Madhusmita Rout

To test a web method present inside a web service we need to call the web service through the browser and then invoke the web method. If the web method take some parameter then we have to provide it in the supplied text box as demonstrated in the picture below. In the above example, I […]