Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linkbuttons aren’ t displayed as visited in Netscape

Status
Not open for further replies.

ericnet

Programmer
Mar 29, 2006
106
I am trying to solve a problem since last week, and I’m desperate..
Somebody knows why Linkbutton control isn’ t displayed as visited (when you apply a simple style) in Netscape browsers?

I have a repeater control that shows orders, and every order title is a LinkButton that triggers a subroutine to redirect user to order_details.aspx page with 10 or 30 parameters in the query string needed in this destination page.

In Iexplorer 6.0 all 4 attributes works fine (link, visited, hover and active) and in Netscape 7.2 works link, hover and active, except visited. How can I do it so that these LinkButtons are displayed as visited also in Netscape?

Other ideas, suggestions, tricks or alternatives will be welcomed

Thank you
 
the best forum to ask this would be the HTML forum, ASP.NET's final output is HTML and CSS, therefore only if netscape supports the CSS the property will work.

u will get a better idea of this in this forum:
forum215

Known is handfull, Unknown is worldfull
 
Hello,
this is what I made last week, I posted this question in that HTML and CSS forum (explaining all the details), and finally the expert user that helped me, said:
"I'd ask in the .Net forum about altering the client-side output."

I only wanted to know if somebody has seen or experimented this problem with visited LinkButtons

Thanks
 
hmm, then we must start simple testing.

create a simple html file, with a simple link (no .NET coding at all).

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: underline}
A:active {text-decoration: none}
A:hover {text-decoration: underline overline; color: red;}
</style>
<a href="#">Link</a>

does this work correctly in NS???

Known is handfull, Unknown is worldfull
 
That will work correctly, however, that is not the posters problem. Their problem is that they are using a LinkButton rather than an anchor tag as they want to perform some server side code on the click of the Link. As ASP.NET puts the relevant javascript into the href attribute to force the postback, NS doesn't seem to register that link as having being visited.

You can't solve this problem but you can workaround it by either using a standard button or use a normal link and direct the user to an "intermediate" page that does the relevant server side actions and then directs the user bak to the original page (or onto another page, depending on what your server-side code was already doing).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
>>NS doesn't seem to register that link as having being visited.

thats strange, so javascript affects the way in which a link's CSS is applied? cause a click is a click, and a link is a link (anchor tag / link button).

let me check this up in NS and come back to u...

Known is handfull, Unknown is worldfull
 
Hello Ca8msm,
The page where the repeater is, it’s a page for paging through a list of orders. The repeater has 4 columns (order_date, company_name, order_title and city), and order_title is now the linkbutton to redirect user to order_details.aspx:
(the linkbutton triggers this sub)
Code:
Sub seeOrderDetails(sender As Object, e As System.EventArgs)
 
 dim itm as RepeaterItem = Ctype(Ctype(sender, control).NamingContainer, RepeaterItem)
 Response.Redirect("order_details.aspx?Id=" + Server.UrlEncode(Ctype(itm.FindControl("ord_num"), HtmlInputHidden).Value) + "&Pag_num=2" + "&Results_page=" + Request.Form("CurrentPage") + "&Page_point=" + Request("__SCROLLLOC"))
 
End Sub


How can redirect user with this information in querystring from an intermediate page? Or which is the solution you would do in the case I explained?
 
Vbkris,
Did you tried it in NN as you said?
thats strange, so javascript affects the way in which a link's CSS is applied? cause a click is a click, and a link is a link (anchor tag / link button).

let me check this up in NS and come back to u...
 
nope, it will take some time dude, got really tied up i work (and dont have NN at office!!!)...

Known is handfull, Unknown is worldfull
 
hi,

i checked this up in NN and what Ca8msm said is correct, here is the code with which i tested:

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: underline;color:green}
A:active {text-decoration: none}
A:hover {text-decoration: underline overline; color: red;}
</style>
<pre>
<a href="javascript:;" onclick="location.href='two.html';return false;">Link</a>
<a href="two.html">Link 2</a>
</pre>

the first link remained the same color, while the other changed correctly.
weird...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top