Read, With the Name of Your Lord Who Created

Archive for May 1st, 2008

Degradasi Nilai Kemanusiaan

Posted by triaslama on May 1, 2008

Seorang pria Austria bernama Josef Fritzl menyekap puteri kandungnya selama 24 tahun di ruang bawah tanah rahasia rumahnya. Bukan cuma itu, dia melakukan perbuatan incest dengan puteri kandungnya tersebut. Sebagai akibatnya puterinya melahirkan tujuh orang anak! Kakek tua ini benar – benar mengalami degradasi nilai – nilai kemanusiaan. Perbuatannya seperti binatang yang menghamili keturunannya.

Seorang ibu yang membunuh anak – anaknya sendiri, setelah itu dia sendiri mengakhiri hidupnya. Seorang suami membunuh isterinya sendiri, setelah itu dia bunuh diri. Sungguh tragis, singa sekalipun tidak ada yang memangsa anak kandungnya.

Seorang koruptor yang mengambil uang rakyat sampai bermilyar – milyar rupiah atau lebih. Seekor binatang hanya akan mengambil sebatas apa yang diperlukannya. Misalnya seekor burung yang hanya mengambil beberapa bulir bijih padi setelah itu dia akan pergi. Tapi koruptor tadi? Dia mencuri dengan maksud sebagai persediaan bagi tujuh turunannya!

Sewaktu di kampung dulu guru ngaji kami pernah berkata pernikahan itu sesuatu yang membedakan antara manusia dan hewan. Jika hanya nafsu hewan juga punya, jika kita melakukan perzinaan atau melegalkan perzinaan terus apa bedanya manusia dengan hewan?

Dengan kenyataan seperti itu benarkah bahwa manusia itu adalah makhluk yang paling mulia, makhluk yang paling tinggi derajatnya, atau makhluk yang paling sempurna??? Sebaiknya kita simak firman Allah SWT yang tertuang dalam Al Qur’an, terjemahannya kurang lebih seperti berikut ini:

Read the rest of this entry »

Posted in Humanity, Thoughts and Opinions | Tagged: , , , | 3 Comments »

Interacting With Get and Post Methods in ASP.NET

Posted by triaslama on May 1, 2008

There are two common ways to pass data from one page to another, using http Get and Post methods. In Get method, data passed to server using URL encoding. So with Get method data added in URL as query string. For more information on how to retrieve query string values, you can read my previous post here. When we use Post method the URL is still intact, because data passed in HTTP body.

In correlation with ASP.NET, retrieving data passed through HTTP Get and Post methods is quite simple. If data passed with Get method we need the following code to retrieve the data:

Page.Request.QueryString[<param>];

If data passed with Post method we need the following code to retrieve the data:

Page.Request.Form[<param>];

Maybe the problem will more suitable addressed with hand in code practice, so let’s try a simple code! I named the HTML file as methods_source.htm:

    <html>
    <head>
    <title>Using Http Get And Post</title>
    </head>
    <body>
    <form id=”frm_get” action=”get_recv.aspx” target=”_blank” method=”GET” >
    <table>
    <tr>
    <td>Name: </td> <td><input type=”text” id=”txtName” name=”name” /></td>
    </tr>
    <tr>
    <td>Address: </td> <td><input type=”text” id=”txtAddr” name=”addr” /></td>
    </tr>
    <tr>
    <td></td> <td><input type=”submit” value=”Send Using Get” /></td>
    </tr>
    </table>
    </form>
    <p />
    <form id=”frm_post” action=”post_recv.aspx” target=”_blank” method=”POST” >
    <table>
    <tr>
    <td>Name 2: </td>
    <td><input type=”text” id=”txtName2″ name=”name2″ /> </td>
    </tr>
    <tr>
    <td>Address 2: </td>
    <td><input type=”text” id=”txtAddr2″ name=”addr2″ /> </td>
    </tr>
    <tr>
    <td></td>
    <td><input type=”submit” value=”Send Using Post” /> </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

Read the rest of this entry »

Posted in .NET, ASP.NET | Tagged: , , , , | 82 Comments »