.NET King Logo Comments on: SharePoint Page Viewer webpart!
Skip Navigation Links
Home
Weblog
How to... (video)
Articles
About us
Contact us
0 Items in Video cart!

SharePoint Page Viewer webpart! (4/16/2007)

I received this question from Ahmad Jadallah:
I am developing a small C# asp.net application that I will be showing inside sharepoint server 2007 through the page viewer web part.
I want to be able to show something based on the profile of the currently logged in user.
For example: If the city value of the currently logged in user is Paris then show button 1, otherwise dont show it.
How can I achieve that? I tried the SharePoint webservice but I could not get it to work.
best regards,


Dear Ahmad Jadallah
You are trying to read the user profile info in a wrong way. Remember that Page viewer WebPart cannot and does NOT interact with the page that it opens. In better word Page Viewer WebPart can only get the requested page and display it on the client. It does not execute the requested page as a part of SharePoint page and it does NOT run the requested page in the SharePoint execution context.


  1. To have your page interact with the SharePoint context you have two ways:
    Create your WebPart yourself and interact with the current user like a normal ASP .NET user (User.Identity.Name) and then decide of displaying the controls on the webpart.

  2. Try creating your ASP .NET page under server layouts “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS” and call it under http://servername/_layouts/yourpage.aspx


Regards
Alireza


By: Final Fantasy XIV Gil  
Come on, Stop!
URL: http://www.destiny-service.com/final-fantasy-xiv-is-a-brand-new-gameplay-stormblood/  
By: adidas nmd for sale  
Iok��s pretty much nothing effortless to find out ans matter oy net ar compared to textbooks, as trying to find found this paragraph at this web page:
URL: http://www.adidasultraboosts.us.com  
By: nike air max  
Have you ever thought about taking in a little bit more than just with no articles? I consist of, whdirectly onto you say is fundamental and everythingself help anxiety Nevertheless think of igary you addimpotence problems some great appearances or videos to give yougary the gadget guy posts put on, inches widthpoplong! your health content is excellent and thus with pics and videos, tyour sweetheart website could certainly be roll of the most beneficial in its make trades. most significant blog.
URL: http://www.air-max-2017.fr  
By: louis vuitton bags  
Do you know each other? levaquin 250 mg tab a??I would say Andy is the director of basketball for Findlay Prep (and he) is our admissions person for the high school,a?? Ahlborn said. a??We have established criteria a?? Andya??s working off an established criteria (so ita??s) not just Andy thinks hea??s a good basketball player and so we should take him.a??
URL: http://www.louis-vuittonoutlets.us  
By: buy NBA 2K17 MT  
I'll fix it!
URL: http://begamer.net/blogs/1577/6415/enjoy-fun-within-seconds-nba-2k1  
By: nike air max  
Republican presidential candidate Mitt Romney's campaign has targeted supporters who don't typically vote in every election, a nod to the campaign's efforts to encourage supporters to vote absentee by mail or cast their ballot at an early voting location.��Investigators believe the wife would have collected Adams�� insurance money,000 in rare stamps and jewelry, he said. Monster's lawyer Daniel Callahan said the company hired a team of physicians to review the medical records in the case, When we spoke to him at the end of the week he said, so I'm writing about it just to express myself, the 20-year-old singer doesn't see what the big fuss was all about."
URL: http://www.airmaxs-90.us  
By: fifa 17 ps4 coins  
No, I know.
URL: http://a6.pl/blogs/post/26861  
By: fifa coins  
The youre really talented .
URL: http://u4fifa.blogcu.com/u4fifa-is-a-professional-mediator-for-online-fifa-coins-selling/21120006  
By: buy albion gold  
Take my word .
URL: http://carpetarota.com/blogs/37355/144921/three-tips-help-you-make-money-in-albion  
By: u4fifa  
You 're so smart.
URL: http://u4fifa.flavors.me/  
By: cheapest fut 16 coins xbox 360  
Take my word .
URL: http://www.fifa16mall.com/fifa-16-coins/XBOX-360-2110  
By: Blade and Soul gold  
You did it !
URL: http://kcancer.com/content/how-best-using-your-soul-shields-blade-and-soul#comment-2040  
Your name:
Email:
URL:
Comments:
 

 -