Wednesday, 4 January 2012

PopUp window



Take one Button as



In code part write


protected void BtnPrintLndr_Click(object sender, EventArgs e)
{

//Server.Transfer("LaundryBillPrint.aspx");
BtnPrintLndr.Attributes.Add("OnClick", "return OpenWindow();");//it will call the javascript functions
// BtnPrintLndr.Attributes.Add("onclick", "window.open('LaundryBillPrint.aspx','','height=300,width=300');return false");
// it directly redirects to ur respected page which you have provided.
}

No comments:

Post a Comment