Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Using Tree Control in Sharepoint Pages

  Asked By: Kerry    Date: Oct 12    Category: Sharepoint    Views: 1709

Problem: I want to include Treeview control in .aspx page and I want to display all the sites >subsites>areas contained in virtual server in the form of a tree view .

For that I downloaded IEWebControls form Microsoft Site and installed. If I created one project in Inetpub/wwwroot path and place the

DLL (Microsoft.web.UI.webcontrols.dll) in bin folder of project .Its Working Fine..

I create the new project in (http://coputername/AppName/_layouts ) and copy the DLL File to bin folder of Project. But it is not working ,the error I am getting when I am running the page (“Page Not Found” )

I tried for somuch time and atlast I detected that we have to copy the DLL in GAC or Bin folder of project….In Bin folder its not working

When I am trying to copy the DLL into GAC it is saying it is not Strong named…

How to strong name the the ( Microsoft.web.UI.webcontrols.dll )

If there is any other way to solve the problem Suggest me….

In Sharepoint if we use any 3rd party DLLs then where we have to store in the system????

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Kristopher Morales     Answered On: Oct 12

First, I believe that others have already created  a Web Part that does what
you are trying to do, for instance:
http://tinyurl.com/7y646

You might begin there and search for others.

Second, the "Page Not Found" error  is likely because the SharePoint config
database doesn't know about the page  you are trying to use. Read up on
direct mode pages  in the "60 Hive" that are ghosted into IIS Application
cache and then used by SharePoint as indicated in the site  Definition files.
Using FrontPage you can easily add a page to your site because it
understands the underlying SharePoint database. But it takes some effort to
include a new page in the file  system.

Third, signing a DLL requires a "strong name key" file (can be generated
using the VS.NET sn utility using the -k option), access to the source code,
and the VS.NET compiler. Modify the settings in the AssemblyInfo.cs file.

Much more could be said on each of these topics but I'll wait for your
follow-up reply with specific questions.

 
Answer #2    Answered By: Marquis Ortega     Answered On: Oct 12

First, I believe that others have already created  a web  Part that does what
you are trying to do, for instance:
http://tinyurl.com/7y646

You might begin there and search for others.

Second, the "Page Not Found" error  is likely because the SharePoint config
database doesn't know about the page  you are trying to use. Read up on
direct mode pages  in the "60 Hive" that are ghosted into IIS Application
cache and then used by SharePoint as indicated in the site  Definition files.
Using FrontPage you can easily add a page to your site because it
understands the underlying SharePoint database. But it takes some effort to
include a new page in the file  system.

Third, signing a DLL requires a "strong name key" file (can be generated
using the VS.NET sn utility using the -k option), access to the source code,
and the VS.NET compiler. Modify the settings in the AssemblyInfo.cs file.

Much more could be said on each of these topics but I'll wait for your
follow-up reply with specific questions.

 
Answer #3    Answered By: Javier Hawkins     Answered On: Oct 12

You cannot strong name a DLL that you do not have the source to.

check instructions on how to deploy the control  on his site.

 
Answer #4    Answered By: Tracy Bass     Answered On: Oct 12

The problem  which I am facing "Page not found" is not coming when I remove the tree  view control  from page.when control is again copied into the page

It is showing the page  not found error....the error  lies in control......

I am not getting that....

And one more Question is when I am trying to access the virtual  server settings and sites  under the virtual servers I am getting Security Exception

For that I have copied the following Code:

1 SPGlobalAdmin gadmin=new SPGlobalAdmin();

2 Context.Items[SPGlobalAdmin.RequestFromAdminPort]=true;

3 Page.RegisterHiddenField("__REQUESTDIGEST",gadmin.AdminFormDigest);

It is working  ………… if we save the project  in _layouts Folder

When I create  new folder  in inetpub/wwwroot and there I am getting Error

At 3 line of the above code

The error that I am getting "Cannot Complete this action Please try again"

 
Answer #5    Answered By: Dominick Blake     Answered On: Oct 12

Hmmmm. I don't know where the error  in the control  you build lies.

The code you have listed simply inserts a FormDigest tag into the page. This
is required whenever updating the SharePoint database. Not sure why you
would need it to show the Site hierarchy in a treeview.

Not enough information to solve  the "Cannot Complete this action Please try
again" error.

 
Answer #6    Answered By: Randall Hunt     Answered On: Oct 12

Why I copied the FormDigest code because is I have to create  new sites
and may be delete some sites  also that's why I placed...

And next the Error:

Steps:

I Add the reference to the treeview  control
And then I drag the control  from toolbox
I added some nodes into the tree..control
I added one button control and label also
Execute the application
First it shows the page  with controls for one sec and then it is saying
Page not found


When I execute the app without treeview control

Page is viewing No Problem

I Copied the DLL file  into the Bin folder  of the project...and in
reference I select DLL file contained in the Bin Folder Any Wrong in
this?

 
Didn't find what you were looking for? Find more on Using Tree Control in Sharepoint Pages Or get search suggestion and latest updates.




Tagged: