-
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)?
-
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!
-
It works !
Phil,
It works well. I owe you many thanks.
R.K.
Similar Threads
-
Replies: 6
Last Post: 07-31-2006, 08:33 PM
-
By Jeeto in forum Enterprise
Replies: 1
Last Post: 05-08-2002, 01:05 PM
-
Replies: 2
Last Post: 08-30-2001, 11:32 AM
-
By srivatsa in forum ASP.NET
Replies: 2
Last Post: 12-15-2000, 08:09 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks