<asp:TextBox ID="txtBox1" TextMode="Password" runat="server" />
- posted by: Lâm Ngọc Khương
- site: https://ngockhuong.com
- email: [email protected]
<asp:TextBox ID="txtBox1" TextMode="Password" runat="server" />
public static String MD5Hash(String source) | |
{ | |
MD5 md5 = new MD5CryptoServiceProvider(); | |
// compute hash from the bytes of text | |
md5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(source)); | |
// get hash result after compute it | |
byte[] result = md5.Hash; | |
StringBuilder text = new StringBuilder(); | |
for (int i = 0; i < result.Length; i++) | |
{ |
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"> | |
<Columns> | |
<asp:BoundField DataField="Id" HeaderText="Id" ItemStyle-Width="50" /> | |
<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="150" /> | |
<asp:TemplateField HeaderText="Status" ItemStyle-Width="100"> | |
<ItemTemplate> | |
<asp:Label Text='<%# Eval("Status").ToString() == "A" ? "Absent" : "Present" %>' | |
runat="server" /> | |
</ItemTemplate> | |
</asp:TemplateField> |
<script type="text/javascript"> | |
if(document.location.protocol=='http:'){ | |
var Tynt=Tynt||[]; | |
Tynt.push('d5Y36e5Q8r4l_Yacwqm_6l'); | |
Tynt.i={"ap":"Nguồn :"}; | |
(function(){ | |
var s=document.createElement('script'); | |
s.async="async"; | |
s.type="text/javascript"; |
<li class="lino">Bạn sẽ chuyển sang trang <a href="http://blog.ngockhuong.com"/>blog.ngockhuong.com</a> sau <span id="time">10</span> giây nữa<br /> | |
<a href="/" onclick="reload();" id="reloadlink" title="Nhấn vào đây để tải lại trang">Tải lại trang<a> | |
</li> | |
<script type="text/javascript"> | |
var jgt = 10; | |
document.getElementById('time').innerHTML = jgt; | |
function stime(){document.getElementById('time').innerHTML = jgt; jgt = jgt - 1; | |
if(jgt == 0){clearInterval(timing); location = 'http://blog.ngockhuong.com';} | |
} | |
var timing = setInterval("stime();",1000); |
var enums = {}; | |
enums.keyboard = { | |
BACKSPACE: 8, | |
TAB: 9, | |
ENTER: 13, | |
SHIFT: 16, | |
CTRL: 17, | |
ALT: 18, | |
PAUSE: 19, | |
CAPS_LOCK: 20, |
<html:messages property="NameMessages"/> | |
or | |
<logic:messagesPresent message="true"> | |
<html:messages id="aMsg" message="true"> | |
<logic:present name="aMsg"> | |
<!-- Messages --> | |
<div class="action-message info"> | |
<p class="text"><bean:write name="aMsg" filter="false" /></p> | |
</div> | |
</logic:present> |
$ cd /opt/lampp
$ sudo chmod 777 -R htdocs
$sex = 'male'; | |
$s = $dbh->prepare('SELECT name FROM students WHERE sex = :sex'); | |
$s->bindParam(':sex', $sex); // use bindParam to bind the variable | |
$sex = 'female'; | |
$s->execute(); // executed with WHERE sex = 'female' | |
or | |
$sex = 'male'; | |
$s = $dbh->prepare('SELECT name FROM students WHERE sex = :sex'); | |
$s->bindValue(':sex', $sex); // use bindValue to bind the variable's value |
(note: replace ORGANIZATION
and PROJECT
)
git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository