Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 146369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:35:26+00:00 2026-05-11T08:35:26+00:00

On a content type in a SharePoint (MOSS 2007) site I want to show

  • 0

On a content type in a SharePoint (MOSS 2007) site I want to show an icon if the property is a certain value.

The column is a Yes/ No so the selected value should be fairly easy to determine.

So how can I, in the ASPX, show read the value? I know I need to modify the web.config to allow for in-page C#, but I’m just not sure how to find the property. I think I need to use SPContext.Current, but I’m not sure what inside that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:35:27+00:00Added an answer on May 11, 2026 at 8:35 am

    Well I’ve found out how to do this:

    var item = SPContext.Current.File.Item; //returns the SPListItem for the current context var myField = item['SomeFieldName']; //this will throw a NullReferenceException if there is no data for the field yet though Response.Write(myField.ToString()); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a new content type for a sharepoint project (MOSS 2007). This content
Using Sharepoint MOSS 2007, I want to add a Publishing Image field to my
I have an InfoPath form template hosted as a Sharepoint content type. I want
I am getting multine content type filed value programatically with LINQ To SharePoint. It
The below query i used to search the content of the MOSS 2007 site
I am trying to migrate a content type from a sharepoint site in one
I have SharePoint site with publishing features enabled. I have a custom content type
I need to update an existing SharePoint content type by adding a new field
So here is the scenario... I have a sharepoint content type that calls a
header(Content-type: image/gif); readfile($filename); The above can only be used to show gif images. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.