Friday, February 11, 2011
Java Script Text Box Empty Validation:-
[code]
function TextboxEmptyValidation()
{
var txt=document.getElementById("TextBox1");
if(txt.value=="")
{
alert("Textbox cannot be blank");
txt.focus();
return false;
}
}
You can call above function like this
[/code]
Tuesday, February 8, 2011
Progress Bar In Asp .Net With Ajax
protected void Page_Load(object sender, EventArgs e)
{The Progress Bar Button Click then Progress bar is Working as You see Image
if (!IsPostBack)
{
Label1.Text = DateTime.Now.ToLongTimeString();
Label2.Text = DateTime.Now.ToLongTimeString();
}
}
protected void ProgressBarButton_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label2.Text = DateTime.Now.ToLongTimeString();
}
Subscribe to:
Posts (Atom)