I'm using ASP.NET and C# for the code behind.
I've got a dialog box opening on my page with javascript and it is attached to a button on the page during the Page_Load event with:
Expand|Select|Wrap|Line Numbers
- MyButton.Attributes.Add("onclick", "var strReturn; strReturn=window.showModalDialog('ChildWindow.aspx',null,'status:no;dialogHeight:220px;dialogHide:true;help:no;scroll:no');if (strReturn != null) document.getElementById('ResponseValue').value=strReturn;");
How do I do this in the code behind?
Thanks.
Robert