No,it dosen't work as well now it says:
Parser Error Message: Literal content ('" >') is not allowed within a
'Microsoft.Samples.ReportingServices.ReportViewer' .
Source Error:
Line 16: runat="server" Height="312px" width="712px" parameters="true"
Line 17: ServerUrl="http://localhost/reportserver"
Line 18: ReportPath="<%Request.QueryString["rptPath"];%>"
Line 19: ></cc1:ReportViewer>
Line 20: </form>
"CMA" <cm**************@textcentric.lk> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
hi Ray,
try with this solution...
incorrect : ReportPath="<% =Request.QueryString["rptPath"];%>
correct: ReportPath="<% Request.QueryString["rptPath"];%>
just remove the "=" at the beginning.
hope this helps,
regards,
CMA
"Ray Alirezaei" <ra*@my.com> wrote in message
news:#1**************@TK2MSFTNGP09.phx.gbl... I want to get a parameter through quesry string and set it to a property
of a control in my page as follow but it shows me an error:
<cc1:ReportViewer id="ReportViewer1"
runat="server" Height="312px" width="712px" parameters="true"
ServerUrl="http://localhost/reportserver"
ReportPath="<%=Request.QueryString["rptPath"];%>"> <--Error
occurs
here "Server tags cannot contain <% ... %> constructs"
</cc1:ReportViewer>