473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Visited links in a datagrid


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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
3 1176
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.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jim Corey" <jc****@nospamcharter.net> wrote in message
news:u0****************@TK2MSFTNGP12.phx.gbl...

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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
You might try disabling/re-enabling viewstate.

"Jim Corey" <jc****@nospamcharter.net> wrote in message
news:u0****************@TK2MSFTNGP12.phx.gbl...

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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt Adams | last post by:
As well known I could specify the text color in the body tag like: <BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE> What I want to achieve now is that always (!) the text of the last visited...
18
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
6
by: - jes | last post by:
Greetings. Using CSS, a programmer can set the color for an href link and a different color for a VISITED href link. Anyone know where this "list" of visited links is stored? Is it...
8
by: Chad | last post by:
Should links automatically appear in the "visited" color as defined by the user's IE settings without having to add any special coding? I have a situation where the link was not changing color...
1
by: Chad | last post by:
First visit all of the links on the page. For each, if the link opens a new window, close it. If it opnes in teh same window, hit back. then hit REFRESH. Notice that while all links SHOULd be...
0
by: PsyBorg | last post by:
This is not entirely a PHP question although it is based in PHP. I have been creating a site, where I want the visitors to see the visited links as "Crossed Out" using CSS. However, I also want...
8
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField...
1
beacon
by: beacon | last post by:
I'm looking to reset the visited link color once another link is selected. Also, once that link takes me to a particular page, I want the font-weight for that page to be bold to indicate that it's...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.