Hi Eugenio!
That's how it works:
1) a base class which is inherited by all the webforms
2) this base class contains a function "openPreviewWindow(reportname)"
3) this function opens a new window and displays a report; each report has different parameters - these are handled in this function
4) on my webform I have preview-buttons (imagebutton) which call the base function "openPreviewWindow" and passes the reportname to it
If I had to transform all my preview-buttons into hyperlinks I'll run mad.
I've to mention that I'm not yet a professional in .net - but I'll become one (it's only a matter of time ;-)
>Hi Robert,
>
>>I'm trying to open a new window in ASP.NET for displaying a crystal report.
>>
>>Till now I'm opening the new window using "response.write(...window.open(...)...)" but this causes more and more problems when popup-blockers are used; and nearly every browser has a builtin popup-blocker.
>>
>>I'm not able to transform the code above into hyperlinks ("...href=... target=_blank...") because lots of the affected code is managed in base classes which are inherited.
>
>I´m sorry. I don´t understand why you can´t use the hyperlink.
>Would you explain me this in more detail.
>
>Regards,
>
>Eugênio
robert.oh.