using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml;
using System.Text;

using System.Web.Services;
//using NCBEAI.Adapters.Transport;

public partial class Business_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //XmlDocument doc = new XmlDocument();
        //doc.LoadXml("<OK AccID=\"10160039000101\" Balance=\"17023838.46\" BalanceTo=\"-199993993731.98\" Journal=\"2571744\" />");
        //XmlNode node = doc.SelectSingleNode("/OK");
        //string temp = node.Attributes["AccID"].InnerText;
        //node.Attributes["AccID"].InnerText = "dfdf";
        //StringBuilder sb2 = new StringBuilder();
        //System.IO.StringWriter stw2 = new System.IO.StringWriter(sb2);
        //XmlWriter xmlw2 = new XmlTextWriter(stw2);
        //doc.WriteContentTo(xmlw2);
        //string s = sb2.ToString();

        //StringBuilder sb = new StringBuilder();
        //System.IO.StringWriter stw = new System.IO.StringWriter(sb);
        //XmlWriter xmlw = new XmlTextWriter(stw);
        //xmlw.WriteStartElement("OK");
        //xmlw.WriteAttributeString("AccID", "111");
        //xmlw.WriteElementString("ecn", "7000");
        //xmlw.WriteFullEndElement();
        //xmlw.Close();
        //string ss = sb.ToString();

        //string Directory = "C:\\Documents and Settings\\Administrator\\My Documents\\dot net ajax\\cert";
        //string XmlMessage = "<AccID>55535266000110</AccID><Amount>20.000</Amount><Description>description</Description><VoucherNo></VoucherNo><Currency>SAR</Currency><BaseAmount>20.000</BaseAmount><ReferenceNo></ReferenceNo><Override>Y</Override>";
        //string XmlResponse = "";
        //string TransportVia = "I";
        //string TransportMethod = "Synch";
        //string LangItem = "1";

        //NCBEAI.Adapters.Transport.Message Request = new Message(Directory);

        //Request.TCod = "AccountCredit";
        //int finalError = Request.PrepareMessage(XmlMessage, LangItem, Directory, TransportVia, TransportMethod, out XmlResponse);

        //RadioButton1.Attributes.Add("onclick", "alert('asdf');");

        if (Request.QueryString["err"] != null)
            Label1.Text = "You are not Authorized to enter this page";
        else
            Label1.Text = "";
    }
  

}
