Portal Engine
Version 2.x > Portal Engine > QueryParameters View modes: 
User avatar
Member
Member
mike@xcomms.ie - 4/25/2007 2:47:39 PM
   
QueryParameters
What is the correct syntax for using QueryParameters in a QueryRepater control?

In an example, I have the following control:

cc1:QueryRepeater
ID=QueryRepeater1
QueryName=custom.galleryImage.selectall
TransformationName=custom.galleryImage.popUpView
runat=server

With the following additional code in the page_load:

protected void Page_Load(object sender, EventArgs e)
{
QueryRepeater1.QueryParameters = ????
}

My question is what to substitute in place of the ????

There is no mention anywhere in the documentation about this, unless I missed it. Any help greatly appreciated - thanks!

Rgds,

Mike




User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/17/2007 2:42:41 PM
   
RE:QueryParameters
Hi, you need to create a mew parameter, something like this:
object[,] para = new object[1,3];
para[0,1] = "@something";
para[0,2] = 50;
...
this.QueryRepeater1.QueryParameters = para;