Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Display data without webpart

  Asked By: Amolika    Date: Jan 23    Category: Sharepoint    Views: 1163

I have a sharepoint site, I need to display some data form SQL database. Is
it possible I can do it without using web part?

How can I write a C# file and write the output to a sharepoint site(page)
.aspx file. How can I link the c# file and sharepoint page together?



5 Answers Found

Answer #1    Answered By: Sanjay Lohar     Answered On: Jan 23

Do you really not want to use a web  part, or are you trying to avoid spending
the time writing one? If you are just looking for an easy way you should look
into the Data View web part in FrontPage 2003 - makes this very easy.

Answer #2    Answered By: Mason Salazar     Answered On: Jan 23

I don't want to spend time to write  the web  part since I don't have
much time to learn it if I can find a way around it.

I have looked at the FrontPage. It does a nice job to display  the
data form  the database.

But I would like to do more than just display the data  from
database. For example, I want to display rows of "customer name" on
one page. The "customer name" displayed as a link  with customerID
embeded. when user click on the link, it brings the user to the
second page  with customerID in the URL. And Based on the customerID
in the URL, it would search the DB and display the customer detail
on the page.

How can I do it in sharepoint  site without using Web Part. This
function is only needed once, I don't see the need to creat a web
part which is good for reuse.

It's a very easy task in ASP or ASP.NET. Is it easy to do it in Web

Answer #3    Answered By: Jesus Davis     Answered On: Jan 23

It sounds like what you want to use is a page  Viewer web  Part. You can
insert a .net developed web forms page into the Page Viewer Web Part.

If you do not want to put your application folder under the _layouts
directory (which can be a pain to work with), you can exclude the path to
your web form  pages in SharePoint Portal Central Administration (SharePoint
Portal Server Central Administration -> Portal Site and Virtual Server
Configuration -> Configure virtual server settings from the Virtual Server
List page -> Virtual Server List page -> < Select Virtual Server > ->
Virtual Server Management -> Define managed paths).

The first step is to create a virtual folder in your IIS MMC for the web
server that points to the folder that contains your application, i.e.
"myApplication". Then on the Define Manage Paths page of SharePoint Central
Admin, add the virtual folder to In the Add a New Path section's path box,
click the exclude path radio button, then click the OK button. This will
tell SharePoint not to try to look this path up in the SharePoint DB, but
rather to allow IIS's virtual directory to serve the page.

Answer #4    Answered By: Narasimha Kamane     Answered On: Jan 23

Creating a web  paret is not very difficult - is it essentially a .Net server
control with some extra interfaces to allow it to be added to a web part zone,
and some optional interfaces to support connections. There is a template pack
for VS 2003 oin MSDN with all the info. Kevin's approach will also work if you
are set on avoiding web parts or server controls all together. Based on your
description what you want to do can be done with the Data View web parts (easy
with connections, possible as you describe it).

Answer #5    Answered By: Fidel Crane     Answered On: Jan 23

I guess u can create a data  bound list using create option and fetch using the
cutomize columns u can have what ever column names u want.
Moreover these databound will not be a web  part

Didn't find what you were looking for? Find more on Display data without webpart Or get search suggestion and latest updates.