ASPX templates
Version 5.x > ASPX templates > Repeater based on query string values View modes: 
User avatar
Member
Member
Jeff Gow - 11/9/2011 1:50:37 PM
   
Repeater based on query string values
I have a repeater that I want to show items based on values from the query string.
I have read some threads on here, and I can't really find anything (documentation either) that puts it into terms I can figure out.

As it stands now, if I leave the WHERE clause blank, I get all of the items. I want to use the values in the query string (first name and last name - .aspx?fname=Jeff&lname=Gow) to show 1 item.

When I put FirstName = '{%fname%}' AND LastName = '{%lname%}' I get no results returned....what am I doing wrong?

User avatar
Member
Member
Jeff Gow - 11/9/2011 1:55:36 PM
   
RE:Repeater based on query string values
Ugh, nevermind...that is the correct way to do it...it just wasnt showing me anything because there is no query string being passed while in the cmsdesk...duhhhhh

User avatar
Certified Developer 9
Certified Developer 9
charbf - 11/10/2011 9:13:22 AM
   
RE:Repeater based on query string values
Hi,

are you aware that there is a security risk by using the query string like that?

Check out SQL injection
http://msdn.microsoft.com/en-us/library/ff648339.aspx