This is a migrated thread and some comments may be shown as answers.

RadGrid GridHyperLinkColumn-Maintain count on each click

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 25 Apr 2012, 04:21 PM
Hello everyone,
I am using a RadGrid on my mainPage.aspx; one of the columns is a GridHyperLinkColumn. When the user clicks on each hyperlink, it opens a newPage.aspx to display some data. On click of the link, it doesn't cause postback on the mainPage.aspx as per the GridHyperLinkColumn design.

I have to maintain the count of read items (hyperlink clicks) on the mainPage.aspx; so when the user clicks on the link (which opens up newPage.aspx; and sets the read flag in a db table); After the db table is updated, i have to come go back to the mainPage.aspx and set the read count.

Please give any ideas on how this can be achieved.

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 26 Apr 2012, 10:41 PM
Raj:

I would suggest that you have a look at the c# onclick event for GridHyperLinkColumn forum thread. It provides a solution of attaching an OnClick="btnlnk_Click"  to the column that initiates a post back and offers you the possibility of updating a session variable that can be used to update your main page.

I hope this helps!
Tags
Grid
Asked by
Raj
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or