webservices (3)
follow the steps to write web service in c# programming language-
opening a text editor,put the codes below and save the file as
web.asmx-
<%@ WebService Language="C#" class="WebService1" %>
using System;
using System.Web.Services;
[WebService(Namespace="http://www.yoursite.com/webservices/")]
class WebService {
[WebMethod]
public string SayingSomething() {
return "Hello all";}}
From many years software makers or developers
facing problems on how to make data to both
outside and inside of the system maintaining
security
how to read from a file according to querystring using Stream
Written by Super Userif you want to read get/read data from a file according to
querystring using StreamReader then following codes will
help you.It is very useful in some case.here i get data from
a ashx file according to query string i pass to the file -