Visited links in a datagrid

J

Jim Corey

I have a datagrid displaying a report, which includes link buttons that
I use to drill down.

A. When I return to the datagrid the links display as visited.

B. If I run my report again and change some parameters,
the report may be totally changed in terms of data and number of rows,
but links in the same physical position in the datagrid still display as
visited.

I know I can use a stylesheet to make visited look like
unvisited, but I'd like to have the situation in A, and
have them look unvisited again in B.

Any ideas?

TIA,
Jim
 
C

Curt_C [MVP]

what are you using in the grid for the click/links? Try using a template
column with an A HREF and appending a value to the URL based on the
criteria.
It's a thought.
 
J

Jim Corey

Well, yes that might work.
I'm using LinkButtons and they don't have a url associated with them --
I handle the action in the code-behind.

And I can't change this at this point in the game.

ex:

<asp:TemplateColumn ItemStyle-CssClass="link-item">
<ItemTemplate>
<asp:LinkButton ID="A1" runat="server"
Text='<%#DataBinder.EvalContainer, "DataItem.hold") %>'
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>


Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top