my aspx code:
<script type="text/javascript">
Code
function OnClickChat()
{
window.showModalDialog('ChatWindow.aspx', 'dialogHeight:450px;dialogWidth:506px;state:maximize;');
}</script>
<asp:LinkButton ID="lbtnUserName" runat="server" Text='<%#Eval("UserName")%>' OnClick="lbtnUserName_Click" Font-Names="Bertham" Font-Size="Small" CommandName="selectlbtnUserName" Font-Underline="False" ForeColor="Blue" Visible= "true" />
codebehind:
TypeScript
protected void lbtnUserName_Click(object sender, EventArgs e)
{
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "scr", "javascript:OnClickChat();", true);
}
Answers
Know the answer? Post it. Somebody with the same question will find it here.