Clientside vs Server side


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Clientside vs Server side

  1. #1
    Join Date
    Jun 2004
    Posts
    288

    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
    Location
    Portland, OR
    Posts
    8,387
    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
    http://www.philweber.com

    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
    Posts
    288

    It works !

    Phil,

    It works well. I owe you many thanks.

    R.K.

Similar Threads

  1. Server side push
    By Ahsai in forum Java
    Replies: 6
    Last Post: 07-31-2006, 09:33 PM
  2. MSX 2000 and server side amil rules - Pls help
    By Jeeto in forum Enterprise
    Replies: 1
    Last Post: 05-08-2002, 02:05 PM
  3. Replies: 2
    Last Post: 08-30-2001, 12:32 PM
  4. arrays from server side to client side
    By srivatsa in forum ASP.NET
    Replies: 2
    Last Post: 12-15-2000, 09:09 AM
  5. Replies: 3
    Last Post: 06-16-2000, 04: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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