public void ViewedOrder()
    {
        try
        {
            if (Request["OrderNo"].ToString() != "" && Request["OrderNo"].ToString() != null)
            {
                NetworkCredential NetCredentials = new NetworkCredential();
                NetCredentials.UserName = ConfigurationManager.AppSettings["UserName"]; // "JCIL\\ADMINISTRATOR"; //"MSPL\\NAVTRN1"; //
                NetCredentials.Password = ConfigurationManager.AppSettings["Password"]; //"JCILADMIN@123"; //"admin@12"; //

                Web_Order_Mail objser = new Web_Order_Mail();
                objser.UseDefaultCredentials = true;
                objser.Credentials           = NetCredentials;

                objser.OrderViewed(Request["OrderNo"]);
            }
            else
            {
            }
        }
        catch (Exception ex)
        {
            var message = new JavaScriptSerializer().Serialize(ex.Message.ToString());
            var script  = string.Format("alert({0});", message);
            ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "", script, true);
        }
    }