Pages

Wednesday, September 7, 2011

Delete Folder and Subfolder

click start >> run >> fill " cmd " in the blank then enter or click OK
then write these :

  • rd\\.\directory:\foldername /s
eg. rd\\.\e:\autorun.inf /s
then, type y and press ENTER
note :if you want do this without confirmation, add /q to the command
eg. rd\\.\e:\autorun.inf /s /q

Thursday, August 25, 2011

Cara install IIS di Windows , Framework 4

Run >> lalu ketik c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
Tunggu hingga selesai.

Saturday, July 30, 2011

.NET - Convert VB to C# or C# to VB

Are you a .NET programmer?
Which is your language? C# or VB?
Do you want to convert your language to other?
Try this one : codechanger.com by Telerik

Friday, July 29, 2011

ASP.NET WebService Error

An Error was Found : 
An endpoint configuration section for contract 'TempConvert.TempConvertSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.

You should : 
Open your web.config or app.config
Find Binding ...
Then, on your SoapClient
Replace
TempConvertSoapClient svc = new TempConvertSoapClient();
with
TempConvertSoapClient svc = new TempConvertSoapClient("TempConvertSoap");

ASP.NET web service in web.config

 put inside tag <system.web>
<webservices>
<protocols>
<add name="AnyHttpSoap"/>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add name="HttpPostLocalhost"/>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="Documentation"/>
</protocols>
</webservices>

Friday, June 17, 2011

IIS unexpected error 0x8ffe2740

buka cmd
run netstat -a -o -n





cari local address dengan Port 80 , cari PID
lalu pada task manager,
pilih tab Processes, lalu pilih View >> Select Columns >> Check PID
Cari proses dengan PID yg terdapat pada command prompt
Klik kanan, End Proses Tree

Wednesday, June 1, 2011

MD5 Hash Encript (C#)

using System.Security.Cryptography;
private string MD5Encrypt(string plaintext)
    {
        ciphertext = "";
        MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider();
        byte[] data = System.Text.Encoding.ASCII.GetBytes(plaintext);
        data = md5Hasher.ComputeHash(data);
        for (int i = 0; i < data.Length; i++)
        {
            ciphertext += data[i].ToString("x2").ToLower();
        }
        return ciphertext;
}

Kirim Email ASP.NET (C#)

using System.Net.Mail;
using System.Text;
using System.Net;

public bool KirimEmail(List<string> recipients, string sub,string textbody)
{       
        MailMessage mail = new MailMessage();

        foreach (var item in recipients)
        {
            mail.To.Add(item);
        }

        mail.From = new MailAddress("AlamatEmailAnda@Gmail.com");

        mail.Subject = sub;
        //email's body, this is going to be html.
        //note that we attach the image as using cid
        mail.Body = textbody; //<br/> &lt;img src=\ " cid:tmpImage.gif\ " >";
        //set email's body to html
        mail.IsBodyHtml = true;

        //add our attachment
        //Attachment imgAtt = new Attachment(Server.MapPath("tmpImage.gif"));
 //give it a content id that corresponds to the src we added in the body img tag
        //imgAtt.ContentId = "tmpImage.gif";
        //add the attachment to the email
       // mail.Attachments.Add(imgAtt);

        //setup our smtp client, these are Gmail specific settings
        SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
        client.EnableSsl = true; //ssl must be enabled for Gmail
        //our Gmail account credentials
NetworkCredential credentials = new NetworkCredential("AlamatEmailAnda@Gmail.com", "pass");
        //add credentials to our smtp client
        client.Credentials = credentials;

        try
        {
            client.Send(mail);
            return true;
        }
        catch
        {
            return false;
        }
}

Monday, May 16, 2011

Form inside Form ( MDI )

Menampilkan Form di dalam Form

public FormParent()
{
InitializeComponent();
this.IsMdiContainer = true;
}

private void button1_Click(object sender, EventArgs e)
{
Form2 frmchild = new Form2();
frmchild.MdiParent = this;
frmchild.Show();
}

Wednesday, March 16, 2011

Najobux - Instant Payment [Not Scam]

I've just try this PTC called Najobux
it's no payout limit
instant payment
Register here



here the proof

Monday, March 14, 2011

Page Rank (PR) Google

Tiba2 pas buka pr checker,
ternyata blog ini ardiardianto.blogspot.com
PR Google-nya udah 1 / 10
thx for visitor

Tuesday, March 8, 2011

Cara cepat mengupas telur [26 Hours / Day (TV Show)]

telur yang digunakan harus telur rebus
masukkan telur ke dalam tempat bekal
masukkan air sekitar 1/3 (sepertiga) tempatnya
lalu tutup
kocok tempat bekal dengan arah vertikal
buka tempat bekal
kupas telurnya
selesai ^^

ShareThis