Bài 2 - Tạo 1 Project ASP.NET MVC4
Saturday, May 11, 2013 4:04:07 PM
Trong bài này ta sẽ tìm hiểu cấu trúc của một project ASP.NET MVC4 (loại template là Basic)
Saturday, May 11, 2013 4:04:07 PM
Friday, May 10, 2013 4:06:29 PM
Thursday, January 31, 2013 1:58:21 AM
Tuesday, January 22, 2013 5:37:51 AM

Sunday, August 28, 2011 3:04:09 PM
try
{
Uri uri = new Uri("http://www.efireplus.com/forum/login.php");
string data = "vb_login_username=userid&vb_login_password=password";
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
request.Method = WebRequestMethods.Http.Post;
request.ContentLength = data.Length;
request.ContentType = "application/x-www-form-urlencoded";
StreamWriter writer = new StreamWriter(request.GetRequestStream());
writer.Write(data);
writer.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string tmp = reader.ReadToEnd();
response.Close();
richTextBox1.AppendText(tmp);
}
catch (Exception ex)
{
textBox3.Text = ex.ToString();
}
<form name="loginfrm" id="loginfrm" action="login.php?do=login" method="post" onsubmit="md5hash_2(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0);"> <input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onblur="myUnTip();" onmouseout="myUnTip();" onfocus="if (this.value == 'User Name') this.value = '';myTip();" /> <input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /> <input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />
Friday, August 26, 2011 12:20:39 AM
bool CheckConnect()
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.xxxxxxxxx.com");
request.Timeout = 5000;
request.Credentials = CredentialCache.DefaultNetworkCredentials;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response.StatusCode == HttpStatusCode.OK)
{
Console.WriteLine("IsSIPServerAvailable: " + response.StatusCode);
return true;
}
return false;
}
[DllImport("wininet.dll", CharSet = CharSet.Auto)]
private extern static bool InternetGetConnectedState(ref InternetConnectionState_e lpdwFlags, int dwReserved);
[Flags]
enum InternetConnectionState_e : int
{
INTERNET_CONNECTION_MODEM = 0x1,
INTERNET_CONNECTION_LAN = 0x2,
INTERNET_CONNECTION_PROXY = 0x4,
INTERNET_RAS_INSTALLED = 0x10,
INTERNET_CONNECTION_OFFLINE = 0x20,
INTERNET_CONNECTION_CONFIGURED = 0x40
}
bool CheckConnect()
{
InternetConnectionState_e flags = 0;
return InternetGetConnectedState(ref flags, 0);
}
Tuesday, December 14, 2010 2:59:31 PM
Monday, November 15, 2010 12:20:10 PM
Monday, November 15, 2010 10:19:57 AM

Saturday, October 16, 2010 5:09:54 PM
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Chậm lại để thấy hết giá trị cuộc sống......
Những điều mất đi nhiều khi khó lấy lại được
Thất bại chưa hẳn là thua ^_^
Những thông điệp đẹp cho cuộc sống
Java, C Sharp, C, source code, turorial .....
PHP for Beginner
Tổng hợp các clip HD của Taylor Swift