SocuteRaptor-gmail
-
11/25/2008 4:54:03 AM
RE:User-Input Datalist "WHERE" condition...
Hi,
You need to modify the layout of the datalist - http://www.kentico.com/docs/devguide/customizing_web_part_layout.htm.
It is recommended to create a custom clone of the web parts - http://www.kentico.com/docs/devguide/modifying_the_design_of_standa.htm.
Then, you will add the text box to the datalist and its value you will pass to the wherecondition. For example:
this.lstElem.WhereCondition = TextBox1.Text;
The second option is, if you are using ASPX templates, to add the text box to the aspx page and then pass the value in Page_Load() method. Please do not forget to force the ReloadData method method to apply the change.
Best Regards, Juraj Ondrus ---------------------------------------------------------------------------------------------------------------------
I understand this. But... If I want that text box on the Home page, but the datalist is on another page, call Result page... And when the OK button on the home page is clicked... it'll redirect to the Result page and the text on that text box will be put in to the where condition of the datalist on Result page... So how can I do that?
Thank you. :)
|