Ajax DataGrid Support Product Page

how do you filter the recordset for ajax datagrid by request variable?

Asked 14 May 2013 18:05:56
2
have this question
14 May 2013 18:05:56 Steve Skinner posted:
So, I can easily create a datagrid for all records in a table, or records that match my manually entered value, but there's nothing in the manual that tells you how to filter a recordset for the datagrid using a request variable. What's the proper syntax to do this?

My page that uses this particular datagrid is loading customer data and everything is relating to the customerID. So, the url of my page is: /customer.asp?ID=7.

What do I enter in the field to filter by the customerID variable from the URL?

Replies

Replied 20 May 2013 07:20:47
20 May 2013 07:20:47 Miroslav Zografski replied:
Hello Steve,

When Request variable is set to filter you need to enter the name of the variable and following will be set to filter against : Request["variablename"] .

Regards.
Replied 20 May 2013 16:36:29
20 May 2013 16:36:29 Steve Skinner replied:
Awesome. Thanks! That was easy....

I just used Request Variable and then put in the variable used in the URL and it worked like a charm.
Replied 21 May 2013 06:12:36
21 May 2013 06:12:36 Miroslav Zografski replied:
Hello Steve,

You are welcome. Enjoy!

Regards.

Reply to this topic