HISTORY
Dec 30, 2009
- chatbox မွာ validation အပိုင္းထည့္တယ္
- postback ျပန္ေနတာကို ျပင္တယ္။
Dec 28, 2009
- project ျပီးသေလာက္ကို publish လုပ္တယ္။
Dec 27, 2009
- chatbox အပိုင္းေရးတယ္။
Dec 26, 2009
- template လက္စသတ္တယ္။
- database ေဆာက္တယ္။
Dec 23, 2009
- template ျပင္ျပီးသေလာက္ကို publish လုပ္တယ္။
Dec 14, 2009
- template sample ရွာျပီး ေဒါင္းတယ္။
- ပံုေတြျဖတ္တယ္။ templateျပင္တယ္။
****************************************
ကြၽန္ေတာ္ မေန႔ညတုန္းက ChatBox ေလးမွာ က်န္ေနတဲ႔ အပိုင္းေလးေတြ ဆက္ျပင္ပါတယ္။ Send button ေလး click ရင္ server side ကို postback ျပန္ေနေတာ့ နည္းနည္းၾကာေနတယ္။ အဲ့ဒါေၾကာင့္ button ေလးကို update panel ထဲကို ထည့္ေပးလိုက္ပါတယ္။ ေနာက္ျပီး textbox ေတြထဲမွာ data မထည့္ပဲ send ႏွိပ္ရင္ alert ျပဖို႔အတြက္လည္း CustomValidator Control ေလးထည္ျပီးစစ္လိုက္ပါတယ္။ CustomValidator အတြက္ client script ေလးက ဒီလိုပါ။
function CheckMessage(source, arguments)
{
if(document.getElementById("ctl00_ContentPlaceHolder1_SenderNameTextBox").value=="")
{
alert("Enter Your Name First!");
document.getElementById("ctl00_ContentPlaceHolder1_SenderNameTextBox").focus();
arguments.IsValid = false;
}
else if(document.getElementById("ctl00_ContentPlaceHolder1_SenderLocationTextBox").value=="")
{
alert("Enter Your Location First!");
document.getElementById("ctl00_ContentPlaceHolder1_SenderLocationTextBox").focus();
arguments.IsValid = false;
}
else if(document.getElementById("ctl00_ContentPlaceHolder1_ChatLogTextBox").value=="")
{
alert("Enter Message First!");
document.getElementById("ctl00_ContentPlaceHolder1_ChatLogTextBox").focus();
arguments.IsValid = false;
}
else
{
arguments.IsValid = true;
}
}
ဒီေန႔ ၃၀ ဒီဇင္ဘာ အထိ Latest program ကို ဒီကေန ေဒါင္းလို႔ ရပါျပီ။ http://www.sendspace.com/file/kpywr0