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

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

Displaying pdfs in a Visual Webpart

Posted By:      Posted Date: September 11, 2010    Points: 0   Category :SharePoint
I am a complete newcomer to Sharepoint. I am trying to build a visual webpart that among other things allows the user to select and view pdf files from a document library. I seem to have the file but IE is just popping up a dialog asking me if I want to save the file...   Any ideas would be much appreciated.

View Complete Post

More Related Resource Links

Custom webpart displaying Reports from Reporting service

Hi          I created a report in VS 2008 and deployed to reporting service. Then when I access this report through a custom webpart some of the cell borders are getting disappeared from inside the table control. Even the cell is not getting misaligned within the cell. But the same report when I retrieve through ReportViewer builtin webpart. Its displaying without any issues. How do I fix such issues?

Maintaining session state in a visual webpart


I am building a visual web part that will allow users to navigate the document libraries and view the *.pdf files within them. I am using a static class which exposes a number of properties which essentialy get and set session objects. For example here is the CurrentDocumentLibrary;

public static SPDocumentLibrary

Visual webpart using ajaxcontroltoolkit




I've managed to get the ajaxcontroltoolkit to be istalled into sharepoint 2010 using the packages from a visual studio project.

The webparts i'm building will be dployed on multiple sharepoint servers ( not linked in any form ), and inorder to use the ajax elements like the combobox i require a ToolkitScriptManager  instead of the standard scriptmanager.


Is there any way i can do this through code - to remove the script manager and then add a ToolkitScriptManager  as i can't have both on the same page and i donlt want my clients to have to update the master pages.

I know from earlier webpages i can add controls etc.. but as yet this has not worked.






AutoCompleteExtender in a Sharepoint Visual WebPart


Hi All,

I need ti implement AutoCompleteExtender in my webpart. In order to use AutoCompleteExtender we need to add webservice class but I'm not able to a webservice to my visual webpart so can anyone help me on how to accomplish this. Thank you.

Is it possible to write oledb commands in visual webpart 2010 and deploy in sharepoint


Hi to all,

           Is it possible to write the ole-db commands in visual web-parts 2010  and deploy in sharepoint 2010.





Mohammad Siddiqali

Issue Displaying Data from Oracle using Business Data List WebPart


I have issue retrieving data from a remote oracle database using Business Data List WebPart. I have created an BDC definition
file using the BDC Meta Man tool. Then I imported this defination file into the Shared Services, so no issue it successfully
imported the file.

Now when I try to display the data using Business Data List WebPart, it fails to display any data. It gets the column headings
but no data. I get an error stating "An error occurred while retrieving data from OracleInstance. Administrators, see the server
log for more information."

The SharePoint log has the following exception:

Exception handed to HandleRuntimeException.HandleException System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.     at System.Data.OracleClient.OCI.DetermineClientVersion()     at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)     at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)     at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConn

ReportViewer failing inside Visual WebPart in SharePoint 2010


I have a ReportViewer control inside a VS2010 Visual WebPart deployed in SharePoint 2010.

If I put the report inside an iFrame it works fine (just setting the src = the URL of the report).

If I put it into a ReportViewer I get:

The request failed with HTTP status 401: Unauthorized

There is a script error as well:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0E)
Timestamp: Thu, 25 Nov 2010 16:31:21 UTC

Message: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsCreated[3]
Line: 129
Char: 12
Code: 0
URI: http://sp1/ScriptResource.axd?d=-xH2htwpSITFBSwbFV7VDS5Q9mmVEgTgSvuk8Jnd0Aqfw1cDpd2fSDrxiYgThtNQaq_myOFBHF5amI3fSpKyzWC4_s-HZtrKUr2-4SPgMT-QTYS4o9bFW4nEbGrr672JSI6F-Bj9IwIMCeRG3jk4zDu2TszO2ivKeIwAwEZMMVRfONWH0&t=5c2f384e

I have deployed the webpart to a standard web application and it works fine.

Here's the entirety of the code (or the bit that matters)

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Visual Case Tool - UML Tutorial

The Class Diagram

The class diagram is core to object-oriented design. It describes the types of objects in the system and the static relationships between them.

Displaying Row Details Tooltip on GridView using JQuery

Continuing exploring JQuery! I decided to implement a feature to display some kind of details related to a row displayed on GridView. For example when displaying employees details on GridView some information might not fit in the GridView because it will make it huge and wide. These infomration can be diplayed as Tooltip. Or when you want to display a picture and some kind of formated text to be diplayed as tooltip when mouse hover on the image.

Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView

Prior to ASP.NET 3.5, developers who needed to display a set of records could choose between the GridView, DataList, and Repeater controls. The GridView provides rich data features, but has a very boxy layout; the DataList and Repeater allow for a more flexible layout, but lack the "point and click" data features found in the GridView, DetailsView, and FormView controls. The ListView bridges the gap between layout flexibility and built-in data features.

This article, the first in a series of articles on the ListView and DataPager controls, looks at the ListView's many available templates and illustrates how to display data. Read on to learn more!

Displaying Data using ASP.NET 2.0 Repeater and C#

This tutorial will show you how to display data using the .NET Repeater Control, ASP.NET 2.0 and C#.NET

The Repeater control is a powerful tool and is easy to use.

First, you will need to import the System.Data.SqlClient namespace.

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

How to run Office macros by using Automation from Visual Basic .NET

This step-by-step article describes how to call Office macros from a Visual Basic .NET Automation client.

You can use Microsoft Office Automation to open a document or create a new document that contains a Visual Basic for Applications (VBA) macro and execute the macro at run time.
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