Gridview pages are all underlined

  • Thread starter Thread starter Denny
  • Start date Start date
D

Denny

We just notice this was happening.

We have paging enabled on our gridview control. Now the numbers for
navigation (1,2,3) are all underlined including the page the user is on.

Anyone else have this issue? Any solutions?

Thanks.
 
We just notice this was happening.

We have paging enabled on our gridview control. Now the numbers for
navigation (1,2,3) are all underlined including the page the user is on.

Anyone else have this issue? Any solutions?

Thanks.

I think that usually there must be no link. If you see its source code
in the browser, do you have a link there?
 
Hello,

Paging of GridView will be rendered to several link elements as below.

<td><span>1</span></td>
<td><a href="javascript:__doPostBack('GridView1','Page$2')">2</a></td>
<td><a href="javascript:__doPostBack('GridView1','Page$3')">3</a></td>

In this sample, there are three pages in GridView. Page 1 is the current
page, and it is just a span element after rendering. Page 2 and Page 3 are
link elements which allow doing postback to the server-side. So they're
underlined.

In your scenario, the current page is also underlined. I guess it is not
just a span rendered. Please check the source code in Browser. What does it
look like?

Thus if you can post your code or send the demo to me, it will be better.


Sincerely,

Vince Xu

Microsoft Online Support


==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
 
Very strange, we found the issue dealt with CSS:

..PagerStyle span
{
font: 8pt Arial;
color: #074290;
text-decoration: underline !important;
}

the souce was as you suggested.
 
Back
Top