Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
|
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2007, 10:13 AM
Registered User
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ReportViewer date parameter - javascript errors??

Any issues using these through asp.net Reportviewer?

I get javascript errors I can't make out when I select the calendar.
and the date parameters are disregarded and set to defaults when I
post.


I'm sending Credentials to the report from the codebehind this way:


Protected Overrides Sub OnLoad(ByVal e As EventArgs)
        Dim Roles() As String =
GetRolesForUser(Page.User.Identity.Name.ToString)


        Dim cred As New Retailer.ReportServerCredentials("myuserv",
"mypassword", "mydomain")
        ReportViewer1.ServerReport.ReportServerCredentials = cred


        Dim param As New ReportParameter("r_user",
Page.User.Identity.Name.ToString)
        Dim param2 As New ReportParameter("r_role", Roles(0))
        Dim p() As ReportParameter = {param, param2}
        ReportViewer1.ServerReport.SetParameters(p)
        ReportViewer1.ServerReport.Refresh()
    End Sub
End Class


Otherwise the report displays perfectly and the internal parameters work fine.


My client is IE 7.0.


Thanks for any help or information.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Errors Not Appearing itHighway Javascript How-To 1 October 13th, 2005 01:30 AM
XSLT + Javascript errors braindog_43 XSLT 0 February 3rd, 2005 09:04 AM
Javascript - Undetermined String Errors jethro Javascript How-To 3 July 11th, 2003 06:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.