Click here to Skip to main content
13,552,737 members
Click here to Skip to main content


176 bookmarked
Posted 7 Jul 2001
Licenced CPOL

ASP.NET Web Service

Tutorial on Creating ASP.NET Web Service
<%@ page language="C#" %>

<script runat="server">

        void btn_click(Object source, EventArgs e)
                MyClass mycls = new MyClass() ;
                int x = Int32.Parse(a.Text) ;
                int y = Int32.Parse(b.Text);
                Message.Text = mycls.Add( x, y).ToString() ;


<form Action = "TestWebServiceWithProxy.aspx" runat="server">

        <asp:TextBox id="a" runat="server" />
        <asp:TextBox id="b" runat="server" />        
        <asp:button id=btn OnClick="btn_click" Text="Enter" runat="server" />        
        <p><asp:label id="Message" runat="server" /></P

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Matthew So (Hong Kong)
Founder Software Force
Hong Kong Hong Kong
I am always interested in finding innovative ways for building better applications and founded a technology company since 2003. Welcome to exchange any idea with you and if I am not too busy before deadline of projects, I will reply your emails. Also, if you willing to pay for consulting works and customized software development, you can leave me message.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02-2016 | 2.8.180515.1 | Last Updated 8 Jul 2001
Article Copyright 2001 by Matthew So (Hong Kong)
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid