Thursday, 22 December 2016

Integrate Perfect Money in asp.net. , perfect money api integration in asp.net

download class file from give link
http://traininginjaipur.com/perfectmoneyclass.zip



  PerfectMoney obj = new PerfectMoney();

int paymentid= any random unique no ;


   Dictionary<string, string> results = obj.Transfer(PerfectMoneyAc, PerfectMoneyPwd, PerfectMoneyPayeerID,ReciverPayeerID, current_amt_in_doller, 1, paymentid);
                        if (results.Count > 0)
                        {
                            foreach (var i in results)
                            {
                                if (i.Key == "ERROR")
                                {
                                    f = 1;
                                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msg", "alert('" + i.Key + "," + i.Value + "');window.location='Account.aspx';", true);
                                }

                            }

                            if (f == 0)
                            {

                           
                                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msg", "alert('Withdrawal successfull');window.location='ReturnfromPerfectMoney_Withdrawal_Yes.aspx?a=" + key + "';", true);
                            }
                        }

Integrate BitCoin in asp.net, BitCoin API in ASP.NET, bitcoin wallet integration in asp.net

download .dll files from given link
http://traininginjaipur.com/bitcoindll.zip


u have to specify  ont bitcoin wallet username and pwd , and then u have to provide receiver bitcoin account,

that code will transfer given bitcoin to one wallet to another wallet

using Info.Blockchain.API;
using Info.Blockchain.API.Receive;
using Info.Blockchain.API.Wallet;

  Wallet w = new Wallet("SenderBitCoinAc", "SenderBitCoinAcPwd");

  string reciverbitcoinadd = ".PayeerID";

  decimal amt = (decimal)(YourAmount);

  // this is to convert amt to bitcoin amt formate                
 decimal finalamt = amt * 100000000;

 PaymentResponse pr = w.Send(reciverbitcoinadd , Convert.ToInt64(finalamt));


Saturday, 17 December 2016

html code for full screen web page, show web page in full screen

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <div class="container">
        <section class="main-content">
             <button id="view-fullscreen">Practice</button>
            <script  >

                (function () {
                    var viewFullScreen = document.getElementById("view-fullscreen");
                    if (viewFullScreen) {
                        viewFullScreen.addEventListener("click", function () {
                            var docElm = document.documentElement;
                            if (docElm.requestFullscreen) {
                                docElm.requestFullscreen();
                            }
                            else if (docElm.mozRequestFullScreen) {
                                docElm.mozRequestFullScreen();
                            }
                            else if (docElm.webkitRequestFullScreen) {
                                docElm.webkitRequestFullScreen();
                            }
                        }, false);
                    }
                })();
            </script>
        </section>
    </div>
</body>
</html>