Click here to Skip to main content
16,005,826 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
>Hi, I have been searching for this for quite a while and couldn't find a solution...
I have my aspx file and in it a asp:SqlDataSource, where I want to get values which are equal to the Request.QueryString["key"]. I have defined a parameter for it but I can't find the right syntax to set the value.
Currently it is looking like this:
XML
<SelectParameters>
    <asp:Parameter Name="courseID" DefaultValue="<%= Request.QueryString["course_name"] %>"/>
</SelectParameters>



where I always get the error, it is not well formed. What is the correct syntax, and is there an article how you use this <%.. %> commands?
Thanks for your answer. Stefan
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900