2012-10-18 49 views
3

我想通过传统的ASP传递SQL Server Reporting Services的凭据,因为每次他尝试访问报告时都要求用户输入用户名和密码。通过经典ASP将凭据传递到报告服务

我可以使用POST方法将它作为参数传递给页面吗?

如此代码:

<body> 
    <form id="frmRender" action="ReportViewer" method="post" target="Main"> 
    <input type="text" name="ID" value="" /> 
    <input type="text" name="Password" value="" /> 
    <input type="submit" value="View Report" /> 
    </form> 
</body> 

回答

0

这应该是罚款。我不确定你是如何调用你的SSRS报告的,但是如果你有一些API,你应该能够从Dim ID = Request.QueryString("ID")Dim Password = Request.QueryString("Password")得到它们。我会将您的密码文本输入更改为实际的密码输入,如<input type="password" name="Password" value=""/>,这样当它们将它输入到表单中时,它显示为*Here是您可能会觉得有用的网址。