Help, I have a user control (ProductList.ascx) made up of datalist and two hyperlinks (displaying "Previous page" and "Next page" respectively). FYI, these hyperlinks are set dynamically.
The datalist is initially populated by 10 rows (each row has two cells each cell displays a product image and its corresponding description and "Add To Cart" button)
This is what I want to accomplish:
1. When "Next" or "Previous" link is pressed, the datalist should be
refreshed with the next (or previous) 10 records without the flicker.
2. Display the same set of records when the "Add To Cart" button is
pressed without the flicker.
3. How can I make the "Add Button" imbedded in the datalist to trigger
Ajax request.
This is what I what I have done:
1. I added the Script Manager to the master page.
2. I added the RadAjaxManagerProxy to the user control
(ProductList.ascx)
3. I did not do anything in the container (ProductCatalog.aspx)
where the user control ProductList.ascx is being used.
This is the way I set up the RadAjaxmanagerProxy:
1. Controls that will initiate ajax request: "Previous" link, "Next" Link.
2. Controls that need to be updated by Ajax: dataList and the labels
that display the number of records.
Any input is appreciated.
Shark
The datalist is initially populated by 10 rows (each row has two cells each cell displays a product image and its corresponding description and "Add To Cart" button)
This is what I want to accomplish:
1. When "Next" or "Previous" link is pressed, the datalist should be
refreshed with the next (or previous) 10 records without the flicker.
2. Display the same set of records when the "Add To Cart" button is
pressed without the flicker.
3. How can I make the "Add Button" imbedded in the datalist to trigger
Ajax request.
This is what I what I have done:
1. I added the Script Manager to the master page.
2. I added the RadAjaxManagerProxy to the user control
(ProductList.ascx)
3. I did not do anything in the container (ProductCatalog.aspx)
where the user control ProductList.ascx is being used.
This is the way I set up the RadAjaxmanagerProxy:
1. Controls that will initiate ajax request: "Previous" link, "Next" Link.
2. Controls that need to be updated by Ajax: dataList and the labels
that display the number of records.
Any input is appreciated.
Shark