Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

SharePoint and embedded ASPX

  Asked By: Jeana    Date: Feb 13    Category: Sharepoint    Views: 1030

I have something interesting to discuss with u all and take
ur suggestions. I have a .net application (aspx pages) which I am
trying to embed inside a SharePoint webpart (Page Viewer Webpart).
That means I am trying to integrate two different and discrete
worlds - One side is SharePoint and another side is .NET Application.

The reason behind this is to take complete advantage of the
features of the two different technologies. Now, my question is,
whether it is possible for the two technology to talk to each other?
In the sense, I want to display the .NET pages inside the embedded
SharePoint webpart based on the access rights of the SharePoint site
users. And also I want to pass the SharePoint users id (name) to the
embedded asp.net page. Is this possible and if so then how?

Let me be more clear. I have a complete .NET application
which starts with login page. Now I am embedding the application
inside the "Page Viewer Web Part". So, since I am already logging in
the SharePoint site with the necessary userid and password
(SharePoint user's id), I want the same username to be passed across
to the embedded .NET page (inside the Page viewer webpart) so that I
can skip the .NET's login page and show the next page which has a
column that displays the logged in username. That means, I have to
pass the login id of the SharePoint user to the embedded .NET page
and display it there. Is this possible because both are in different
worlds and if yes, then how? Kindly reply with adequate information,
articles, code (even better).

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Cristopher Gould     Answered On: Feb 13

I understood that you want to implement asp.net application
inside the sharepoint.
One more thing both are not different technologies  but the same technology.
Sharepoint is totally an asp.net application  itself.

Open the IIS, Create a virtual folder under the sharepoint  hosted website.
and copy all the contents of your .net application in this folder.
and Go to sharepoint Portal Central administration,
Under Portal site  and Virtual Server Configuration,
Click on *Portal Site and Virtual Server Configuration,*
Click on your virtual site(http://wsjog-server11:81/),
Now Under Virtual Server Management, click on Define Managed Paths,
In the New Path, Add your virtual folder name you have created and select
the Type as "Excluded Path"
Now Click OK.

Your ASP.net application is hosted inside  SPS 2003.
Now give this link in the page  viewer webpart, it will not ask username  and
password again.

I hope it will solve your problem.

 
Answer #2    Answered By: Selena Glenn     Answered On: Feb 13

But I think you misunderstood my question. I
had reached upto the steps you wrote and I know that SharePoint is written using
.NET Technology. I am also able to see my .net pages  inside the page  viewer
webpart. (Even without using the steps through the SharePoint Central
Administration and managed path etc etc). It is possible if you move the entire
.net application  folder inside  the _layouts folder of the SharePoint site.

I am sure that you know that SharePoint itself has its own user  lists
(Can see in manage users  list after clicking in the site  Settings). What I want
is that the login  details (username only in my case) of the user logging  into
the SharePoint's site (any one user belonging to the Manage users list) should
be passed to the .net application which is hosted inside the Page Viewer
webpart. So that the .net application shows "Mr X has logged  in" where Mr X is
the SharePoint site user. I hope I am clear  this time. I just want to know
whether it is possible and if so then how.

 
Answer #3    Answered By: Jonathon Palmer     Answered On: Feb 13

This is very much possible, use SharePoint OM in your APS.NET web
application get the current user display  name or id and just display as "Mr.
X has logged  in".

 
Didn't find what you were looking for? Find more on SharePoint and embedded ASPX Or get search suggestion and latest updates.




Tagged: