Forums
This topic is locked
Display Web page help
Posted 25 Apr 2008 12:22:33
1
has voted
25 Apr 2008 12:22:33 Lee Phillips posted:
Very new to this asp stuff, I'm researching how to display SSRS (SQL Server Reporting Services) reports in a web page. Unfortunatley, you have to authenticate to the server to see the report. I have this code which seems to work, as it dos'nt return an error, but how do I change it to display a web page insted of a blank page:
<pre id=code><font face=courier size=2 id=code> Sub Page_Load(sender as Object, e as EventArgs)
Dim req as New WebClient()
Const URL As String = "SQL/Reportserver?%2fTLL%2fTLL_RAG&rs:Command=Render"
Dim myCache As New CredentialCache()
myCache.Add(New Uri(URL), "NTLM", New NetworkCredential("USERNAME", "PASSWORD", "DOMAIN")
req.Credentials = myCache
Dim results as String
results = System.Text.ASCIIEncoding.UTF8.GetString(req.DownloadData(URL))
End Sub
</font id=code></pre id=code>
Replies
Replied 08 May 2008 18:17:23
08 May 2008 18:17:23 dave blohm replied:
try
<% response.write results %>
just a hunch
- Doc
Progress is made by the discontent.
<% response.write results %>
just a hunch
- Doc
Progress is made by the discontent.