Hi,
I am trying to open a web dialog when the user clicks on the image. It is showing the web dialog for few seconds and it is closing them again.
Following is the code I am using to show the webdialog
// image control
<
input type="image" onclick="showReports('<%= Request.ApplicationPath %>/Reports/MyRptViewer.aspx')" value="Export to Crystal" />
// javascript
function showReports(link)
{
var dialog = $get("C1WebDialog1").control;
dialog.setUrl(link);
dialog.show();
}
Please let me know if I am doing anything wrong.
Thanks,
sridhar.