.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

open pdf from html link

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
 Hiiii Coders, I want that  whenever user click on html link of my website, it will open my pdf file. How can i achieve this? plz rep as soon as poss thanx znd regards  

View Complete Post

More Related Resource Links

Html Link Button


Hi All,

I would like to create a html link button(in aspx page) so that the page could not post back and some controls to display on clicking link button.

Can any one of you help me regarding this issue?

Let me know if you have any queries.



Open a link in new window from a custom fields description MOSS 2007



I have kept a help link (ex: http://www.msdn.com) under a document library field's description. i want this link to be opened in a new window with out navigating from that page.

any ideas greatly appreciated.




LINK : fatal error LNK1104: cannot open file 'libirc.lib'

I am trying to build my project for 64 bit windows on a 32 bit windows machine. I am getting a linking error of the kind 15>LINK : fatal error LNK1104: cannot open file 'libirc.lib' Can someone tell me the resolution for this problem?

Window.Open in AJAX Accordian Panel Opens Link in Same Window

I'm using the following span to open a page in a new window. What is INCREDIBLY odd is that it is exactly the same code from three different pages, but the first refuses to open in a new window. The only difference is that the first example resides within an Ajax Accordian Panel so I suspect that it might be an Ajax related issue. Ideas? Does not open in new window.<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">   Opens in new window<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">   Opens in new window<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">  

Why can't open pdf or html files?

hi there, I uploaded some pdf and html files in 2010 library but can't open them, When I double-click them I am asked to save the file. What should I do? My local computer, from where I access the portal, is installed with Adobe reader. Thanks.allan

"Open this task" link not functioning

Hello everyone, I am using the OOTB approval line to generate tasks for document approval.  For some reason I have encountered a very strange issue where using Outlook 2010 and clicking the "open this task" I get this error http://yfrog.com/12outlooktaskerrorj

GridView crashes when user enters html open "<" or close ">" characters in a textbox

My GridView is bound to a sql data source and allows editing of fields. Coding is in C# and JavaScript. Using Visual Studio 2008 in test mode, if I enter a less-than "<" or greater-than ">" character in a GridView textbox an error is immediately thrown upon pressing enter: "Microsoft Visual StudioMirosoft JScript runtime error:Sys.WebForms.PageRequestManagerServerErrorException: An unknown erroroccurred while processing the request on the server. The status dode returnedfrom the server was: 500"When the < or > is entered in production, the page aborts and loads the application start page. I need to be able to catch and replace those characters BEFORE the error is thrown. I've tried hooking OnTextChange code to the textboxes, but the error is thrown as soon as I press enter...the OnTextChange code never runs. Any help will be greatly appreciated.

Ajax - literal not updated after adding a regular html link

Hi,Took me a while to track this down and a number of hours trying to figure it out, but at this point I just do not get it. I have a master page and a content placeholder in it encompassed in UpdatePanel like this:...<aspUpdatePanel...>    <asp:ContentPlaceHolder...>    </asp:ContentPlaceHolder...></asp:UpdatePanel>...<asp:UpdateProgress...>...</asp:UpdateProgress>And then a page like this:...<asp:Register ... MyControl...><asp:Content...>    ...        <ctl:MyControl ID="myControl"... />    ...        <asp:Literal ID="literalError"... />        <asp:Button ID="ButtonSubmit" OnClick="ButtonSubmit_Click"... /></asp:Content>Now, the control's .aspx is like this:...some .net controls here...And the code-behind is like this:protected override void ValidateForm(){     ... some validation here ... this.error = "some error"...}The control inherits from a custom control that looks like this:public abstract class MyCustomControl : UserControl{    ...    private string error;    ...    protected abstract void ValidateForm(

Forcing Sharepoint to open a link with Word emulator


When you open a MS Word document from a document library, it opens it with what I call it's Word emulator (as opposed to a regular web-browser window).  However, if you hyperlink directly to that same document, Sharepoint opens it with a web-browser.

Is there a way to write the hyperlink to force Sharepoint to open it with the Word emulator?  (The hyperlink is going to be from the homepage of the Sharepoint site).

How to count the download done through a html link


I have two types of downloads at our site. One is from our server and rendered using server side code, which I record the number of downloads whenever the code is executed. Another is from our parterner's site and offerred with a regular html link, like <a href="http://www.partnersite.com/download/filename.zip>download</a>. How can I count the number of downloads for this link?

make Gridview data as hyper link with alias open in new window



I have one asp.net C# page in which i have gridview..

This are the url comes from database and binded in gridview




what i need is i need to show this url has like this

www.xxxxxx.com/A/Default.aspx is like Test1

www.xxxxxx.com/B/Default.aspx is like Test2

www.zzzzz.com/C/Default.aspx is like Test3

if user click Test1 it will open a new browser window with www.xxxxxx.com/A/Default.aspx

if user click Test3 it will open a new browser window with www.zzzzz.com/C/Default.aspx 

how to make this in gridview please help me in this...

Trigger UpdateProgress by clicking on HTML link


I have a UpdateProgress that trigger fine when I click on stuff inside my UpdatePanel.  However I have some regular HTML link ("<a href>") outside of the panel.  How can I reuse the UpdateProgress so when I click on those link, it will show my loading screen?

SharePoint 'Open with Access' - > 'Link to data on the SharePoint site' does not display data wi


Here's the scenario:

- I have a custom list in SharePoint 2010 with approximately 30 columns and 450 rows

- When I got to 'List Tools' -> 'List' -> 'Open With Access', I have two options 1) Link to data on the SharePoint Site and 2) Export a copy of the data

- If I select either option, I am able to view the items in my list in 'DataSheet' view and in the bottom right of Access I see the 'Online with SharePoint' text

- If I select the PivotTable view and drag in a column to either the row or column option, I have not seeing my data if I choose option #1 above (Link to data on the SharePoint Site).  I am able to see my values if I select option #2 above and view in PivotTable view

- If I click the 'Refresh Pivot' button in the ribbon still no data. 

- If I got back to datasheet view, I see my data

Any ideas?

Any suggestions

Sharepoint 2010 Approval Workflow "Open this task" link not functioning


When I am clicking on "Open this task" link in outlook 2010 i am getting error as "Access to the floowing form required". Please help me out to resolve the issue..






Create "add new item" link to open in dialog


Rather than use the default "Add new item" link for a list I'd like to create my own link at the top of my page or from the quicklaunch. The issue I'm seeing is then when I copy the link from the system created link and then paste it into a custom link is that it opens in a new page rather than in a dialog.

Can someone help me out on this? Thanks very much.

webpart to open link and prepend hidden htlm fields to hosted payment site


I have an almost completed application based on SharePoint 2010 and InfoPath 2010 forms. I think what is now needed is a custom webpart that will bring in 3 web part connection parameter fields from the forms in SharePoint, open a link to an HTML site, and prepend some static and dynamic HTML to the stream and open a new window that will allow a user to enter credit card data into the https site thus opened. Next is to write back the results of the transaction to a form column paid_in_full yes/no, that I in turn can release the goods to the user.

Any suggestions as to how to accomplish this in a web part or other is greatly appreciated!



Open link in a new window


I have a cutomlist with a field of type "Hyperlink". I would like the link to open in a new Window.

I have searched this forum, and have tried to insert some javascript code that would iterate throught the links and add a taget=blank attribute, but I cant get it to work.

Does anyone have a solution?  

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend