Home » Archive

Articles in the ASP.Net Category

ASP.Net, Tech Corner »

[19 Oct 2009 | No Comment | Posted By:Vivek]

Now that we have learnt some basic stuff about about what web services are  and how they communicate,lets build our first webservice using Visual Studio.I have done this in VS 2008.
First Step: Open Visual Studio.Click on File and then select “New WebSite”.From the Next Window that appears,click ASP>NET Web Service.Select your language and then click OK.
By Default,VS 2008 will automatically create your first WebService “Hello World”.Notice that the Class inherits the System.Web.Services.WebService Class.
public class Service : System.Web.Services.WebService
Also,before the method “Hello World”,a [WebMethod] attributed has been specified.This basically tells the compiller …

Read the full Post »

ASP.Net, Tech Corner, Technical Interview »

[13 Oct 2009 | No Comment | Posted By:Vivek]

Explain .Net Web Service?
A Web service allows you to publish an application’s function on the internet that can be accessed through another application.A very common example is the currency exchange rates available in many web sites.In most of the cases,this module will not even reside on the server on which the web site has been uploaded,but it may be using a webservice that gives the functionality.In Short, Web services are components that can be used by other applications.The definite advantage is reusability and that web services are platform and language …

Read the full Post »

ASP.Net, Tech Corner »

[7 Oct 2009 | No Comment | Posted By:Vivek]

Some of the values and strings,for example the connection string, are used across all the pages of a website. Now to hard code this in each of the pages where it is needed is a tedious process as a change has to be updated in each of them.So what we do is to make use of the web.config file in the application to store these values.
There are two methods to store the connection string or any other value in the web.config file.Either you can add a key and value pair …

Read the full Post »

ASP.Net, C# Codes, Tech Corner »

[6 Oct 2009 | No Comment | Posted By:Vivek]

There may be many instances in which we may have to supply a string in CSV format to be converted into an integer array.For example,if we have to invoke a web method in a web service in which the parameters to be passed is an integer array.There is no way that we can pass an Integer array to the web method,else you would have to have a client application to test the method.Well,this was the instance in which i had the need to pass these integers in CSV format as …

Read the full Post »

ASP.Net, C# Codes, Tech Corner »

[5 Oct 2009 | One Comment | Posted By:Vivek]

Serialization is a process by which information in an object is converted into a persistable and transportable form.Here i will explain the easiest way to do XML Serialization,which converts (serializes) the public fields and properties  of an object, or the parameters and return values of methods, into an XML stream that conforms to a specific XML Schema definition language (XSD) document.
To explain the basics of serialization,lets create a class Product containing information about a Product
Public Class Product()
{
public product(){ }
public string productName;
public float productPrice;
}
Now to create an XML representation of the object …

Read the full Post »