Authentication Process in Dataset
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
//using [Web Service Name];
public partial class _Default : System.Web.UI.Page
{
public DataSet ds_GetPickUpDropOffInDataSet = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
try
{
ParveenAPIService pas = new ParveenAPIService();
Authentication auth = new Authentication();
auth.UserId = "1023";
auth.UserName = "hema";
auth.Password = "54321";
pas.AuthenticationValue = auth;
ds_GetPickUpDropOffInDataSet = pas.GetPickUpDropOffInDataSet();
//The HTMLEncode method applies HTML encoding to a specified string.
//DataSet..::.GetXml Method returns the XML representation of the data
//stored in the DataSet.
Response.Write(Server.HtmlEncode(ds_GetPickUpDropOffInDataSet.GetXml()));
}
catch (Exception err)
{
Response.Write(err);
}
}
}
Tuesday, December 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment