Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6952203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:19:07+00:00 2026-05-27T14:19:07+00:00

My client has a ASP.NET (SharePoint) intranet which contains a page that contains a

  • 0

My client has a ASP.NET (SharePoint) intranet which contains a page that contains a gridview with a column that contains linkbutton.
Now on screen this looks fine, but when they print that page, the linkbutton looks like this:

FieldValue (javascript:WebForm_DoPostBackWithOptions
(new WebForm_PostBackOptions("ctl00$SPWebPartManager1
$g_01343441_bee8_4bd4_a7da_ee1e235a9042$ctl00
$gvDisassemblingHeaders$ctl02$lbDetails2", "", true, "", "",
false, true)))

This script html for this page looks like this and of course it contains that javascript as well.

<tr>
  <td>
     <a id="ctl00_SPWebPartManager1_g_a37c8367_3bc3_4599_88b9_2df6c9c1dce1_ctl00_gvPrices_ctl06_lbDetails2" title="FieldValue" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$SPWebPartManager1$g_a37c8367_3bc3_4599_88b9_2df6c9c1dce1$ctl00$gvPrices$ctl06$lbDetails2&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">FieldValue</a>
  </td>
  <td>217,3 mm</td>
  <td><span id="ctl00_SPWebPartManager1_g_a37c8367_3bc3_4599_88b9_2df6c9c1dce1_ctl00_gvPrices_ctl06_lblAmount">€ 181,97</span>
  </td>
  <td>8-12-2011</td>

Of course we only want to see the FieldValue other columns and not all the JavaScript behind that button. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:19:08+00:00Added an answer on May 27, 2026 at 2:19 pm

    I waited a while hoping for a better answer, but none appeared. So we fixed it by adding all columns that contain linkbuttons twice, with css classes that hide/show the columns while on screen/printing. By now i’m quite convinced that this is the way to do it, although it’s quite a bit of work. I don’t think that there is a way to fix this with scripting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My client has a asp.net application, using ajax, he has a datagrid that shows
My client has a compiled ASP.NET 2.0 application that was compiled & deployed a
I have a ASP.NET 3.5 page which has a repeater containing lines of information
I have a client/server application (asp.net), which has a textarea which a user types
I have an asp.net web page that has a TinyMCE box. Users can format
I have a Silverlight client that talks to some ASP.NET web services, which then
I'm maintaining an ASP.Net 2.0 website that displays products in a GridView. The client
I am using ASP.NET MVC3 for a form that has both server and client
We are writing an ASP.NET MVC application. By default, if the client browser has
We have an ASP.NET 3.5 application that has been in production for over a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.