Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How to hide one part of Person_details.aspx

How to hide one part of Person_details.aspx

Scheduled Pinned Locked Moved SharePoint
tutorialquestionlearning
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fin Wrestler
    wrote on last edited by
    #1

    Hi! I am just beginner, but How I can hide part of Person.aspx (MySite) page? I want show part of page if accountname (querystring) is same as current user. Is it possible?

    H T 2 Replies Last reply
    0
    • F Fin Wrestler

      Hi! I am just beginner, but How I can hide part of Person.aspx (MySite) page? I want show part of page if accountname (querystring) is same as current user. Is it possible?

      H Offline
      H Offline
      Hemant Singh Rautela
      wrote on last edited by
      #2

      Just make

      and you can set its visibility --(true/false) from your code eg: div1.Visible = false; or div1.Visible = true; using your condition.. --you can use multiple div tag... :-)

      F 1 Reply Last reply
      0
      • F Fin Wrestler

        Hi! I am just beginner, but How I can hide part of Person.aspx (MySite) page? I want show part of page if accountname (querystring) is same as current user. Is it possible?

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        Yes, Based on condition(User Type) you have to show/hide the elements using the properties[^] at runtime, that's it.

        thatraja

        FREE Code Conversion VB6 ASP VB.NET C# ASP.NET C++ JAVA PHP DELPHI ColdFusion
        HTML Marquee & its alternatives

        Nobody remains a virgin, Life screws everyone :sigh:

        1 Reply Last reply
        0
        • H Hemant Singh Rautela

          Just make

          and you can set its visibility --(true/false) from your code eg: div1.Visible = false; or div1.Visible = true; using your condition.. --you can use multiple div tag... :-)

          F Offline
          F Offline
          Fin Wrestler
          wrote on last edited by
          #4

          Thanks, this works fine. I have still problem? How I can hide/unhide if "accounname" is same as current user. I try to use asp code: if Request.QueryString("accountname") = v_currentuser then ' Visible = true else ' Visible = false end if ... as I say I am beginner

          H 1 Reply Last reply
          0
          • F Fin Wrestler

            Thanks, this works fine. I have still problem? How I can hide/unhide if "accounname" is same as current user. I try to use asp code: if Request.QueryString("accountname") = v_currentuser then ' Visible = true else ' Visible = false end if ... as I say I am beginner

            H Offline
            H Offline
            Hemant Singh Rautela
            wrote on last edited by
            #5

            Then what is the problem .?? "your write Visible = true" but with which control...?? please upvote previous answer if you find its helpful for you :-)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups