DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004

    Clientside vs Server side

    I want to display a pdf file on the browser by clicking on a link. The link is inside a DataGrid control. When the user clicks on the link, prior to displaying the pdf, I want to update some tables. This works fine. However, how can I make it working when the user right-click and choose "Save Target As" option.

    If I use the clientside script, the "Save Target As' option works, but updating table will be a problem.

    Is there any way I can achieve both (the ability to run 'Save target as' and update tables)?

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Yes, that should be possible. Just make the link in the DataGrid point to an .aspx page, rather than directly to the PDF file. When the user clicks the link or selects "Save Target As...", your code-behind in the target .aspx page will run, allowing you to update your tables, etc. Then serve the PDF in the page's response as shown here: http://www.eggheadcafe.com/articles/20011006.asp
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jun 2004

    It works !


    It works well. I owe you many thanks.


Similar Threads

  1. Server side push
    By Ahsai in forum Java
    Replies: 6
    Last Post: 07-31-2006, 08:33 PM
  2. MSX 2000 and server side amil rules - Pls help
    By Jeeto in forum Enterprise
    Replies: 1
    Last Post: 05-08-2002, 01:05 PM
  3. Replies: 2
    Last Post: 08-30-2001, 11:32 AM
  4. arrays from server side to client side
    By srivatsa in forum ASP.NET
    Replies: 2
    Last Post: 12-15-2000, 08:09 AM
  5. Replies: 3
    Last Post: 06-16-2000, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.