0

Just want to make sure that the following syntax will work. The look-up list is on the parent list.

SPList lookupList = web.ParentWeb.GetList("States");
1

The syntax looks fine, of course there are a lot of assumptions here:

  • you are not already at the top-level web
  • the list exists on the parent
  • the current user has permissions to the list on the parent web

If you are fine with all those assumptions, it looks right.

  • All of your assumptions are correct. Cool. I will implement it accordingly. Thanks – K K Jun 10 '11 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.