Get URL Address ASP.NET

Posted On // Leave a Comment
String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(strPathAndQuery, "/");

Result

[Read more]

Trigger UpdatePanel From ImageButton in GridView

Posted On // Leave a Comment
protected void gvData_RowCreated(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                ImageButton ibTrue = (ImageButton)e.Row.FindControl("imgButtonTrue");                
                if (ibTrue != null) ScriptManager.GetCurrent(this.Page).RegisterAsyncPostBackControl(ibTrue);

                ImageButton ibFalse = (ImageButton)e.Row.FindControl("imgButtonFalse");                
                if (ibFalse != null) ScriptManager.GetCurrent(this.Page).RegisterAsyncPostBackControl(ibFalse);
            }
        }
asdf
[Read more]

Pemberitahuan Di Iphone Saat Commuterline Mengalami Gangguan

Posted On // Leave a Comment
Akhir-akhir ini kereta Commuterline sering kali mengalami gangguan. Dan walaupun account twitter @commuterline pasti memberitahukan gangguan tersebut, saya seringkali lupa untuk mengecek twitter.

nah, saya akan memberikan tips agar iPhone atau iPad kamu memberi notifikasi bahwa commuterline sedang mengalami gangguan. Jadi kamu bisa mengambil keputusan apakah akan menggunakan commuterline atau menggunakan transportasi lain.

1

1. Download aplikasi terbaru ifttt di app store lalu register jika kamu belum mempunyai account atau langsung login jika kamu sudah memiliki account ifttt.

2. Tap logo recipes (gambar mangkok) di pojok kanan atas kemudian tap logo tambah

2


3. Pada halaman create a recipe, tap icon plus berwarna biru

3


4. Di halaman Select Trigger, pilih Feed dan tap icon plus New Feed item
4

5. Masukan link http://feeds.feedburner.com/opqCommuter pada isian Feed Url lalu tap next
5


6.  Kembali ke halaman Create a Recipe, Tap icon plus berwarna orange

6

7. pada halaman Select Action, Pilih iOS Notifications dan tap pada icon Send a notification
7

8. Jika langkah2 diatas kamu ikuti dengan benar, seharusnya muncul halaman seperti berikut. tap finish 
8

Jika kamu mengikuti instruksi diatas dengan benar, iPhone mu akan memberi tahu saat commuterline mengalami gangguan, selamat mencoba


Semoga membatu

[Read more]

Regex Password

Posted On // Leave a Comment
(?=.*?[A-Z])(?=.*?[A-Z])(?=.*?[^a-zA-Z]).{8,}
string must contain lower case, upper case, number and min 8 character
[Read more]

Beli Rumah Sekarang!! 2014 Harga Rumah Dipastikan Naik

Posted On // Leave a Comment


Tahun depan, harga rumah naik 30%!
Email not displaying correctly?
View it in your browser.


Beli Rumah Sekarang! 2014 Harga Rumah Dipastikan Naik

Apakah Anda tahu bahwa tahun 2014 harga rumah naik sampai dengan 30%?
Buruan beli rumah sekarang!! sebelum harga naik!!

Kunjungi http://www.hargarumah.info untuk harga rumah, info properti terupdate
Selengkapnya »

Follow on Twitter | Friend on Facebook | Forward to Friend 
Copyright © 2013 IdeaBox Indonesia, All rights reserved.
friends

Our mailing address is:
IdeaBox Indonesia
Sentral Senayan I
Jakarta, Jk 11430

Add us to your address book

Email Marketing Powered by MailChimp
Mohon maaf jika email ini mengganggu. klik disini jika tidak ingin menerima email dari kami| update subscription preferences 
[Read more]

Format Numbers as money in JavaScript

Posted On // Leave a Comment


Decimal Values
var profits=2489.8237
  profits.toFixed(3) //returns 2489.824 (round up)
  profits.toFixed(2) //returns 2489.82
  profits.toFixed(7) //returns 2489.8237000 (padding)
Thousand Separator
Number.prototype.formatMoney = function(c, d, t){
var n = this, 
    c = isNaN(c = Math.abs(c)) ? 2 : c, 
    d = d == undefined ? "." : d, 
    t = t == undefined ? "," : t, 
    s = n < 0 ? "-" : "", 
    i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", 
    j = (j = i.length) > 3 ? j % 3 : 0;
   return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
 };
And use it with :
(123456789.12345).formatMoney(2, '.', ',');
If you're always going to use '.' and ',', you can leave them off your method call, the method will default them for you.
(123456789.12345).formatMoney(2);
If your culture has the two symbols flipped (i.e. Europeans), just paste over the following two lines in the formatMoney method:
 d = d == undefined ? "," : d, 
    t = t == undefined ? "." : t, 
sources : http://stackoverflow.com
[Read more]