my aspx code:
function OnClickChat()
{
window.showModalDialog('ChatWindow.aspx', 'dialogHeight:450px;dialogWidth:506px;state:maximize;');
}
codebehind:
protected void lbtnUserName_Click(object sender, EventArgs e)
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "scr", "javascript:OnClickChat();", true);
}
Replies
Know the answer? Post it — somebody with the same question will find it here.