tag:blogger.com,1999:blog-5421487445527300070.post4354117063330169385..comments2024-01-02T03:17:45.360-05:00Comments on I caught you a delicious bass.: Using DispEx in a Link to a SharePoint DocumentChad Schroederhttp://www.blogger.com/profile/04638580770951531395noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5421487445527300070.post-49179932699543757672014-09-11T09:43:03.754-04:002014-09-11T09:43:03.754-04:00The code above is C# code that would be used withi...The code above is C# code that would be used within a web part or ASPX page for rendering an anchor (A) or button that opens a SharePoint file. The simplest example I can think of quickly is something like this:<br /><br />var myFile = FunctionThatGetsSPFile();<br />Response.Write("<" +"input type=\"button\" value=\"Open File\" onclick=\"" + GetFileViewScript(myFile) + "\" />");<br /><br /><br /><br />(Blogger does not like HTML tags in comments)Chad Schroederhttps://www.blogger.com/profile/04638580770951531395noreply@blogger.comtag:blogger.com,1999:blog-5421487445527300070.post-35910886085150638822014-09-11T09:26:00.363-04:002014-09-11T09:26:00.363-04:00Er. Not sure if my comment happened or it disappe...Er. Not sure if my comment happened or it disappeared. Trying again. Sorry if there's a double post.<br /><br />This is freaking awesome... what do I do with that code? I realize this post is a year old and you'll probably never read this, but I'm so frustrated trying to solve a problem this function is creating, I'm going to try this shot in the dark.Chrispy Biteshttps://www.blogger.com/profile/03878407491963570793noreply@blogger.com