Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am learning SharePoint and just learned how to develop Visual Webparts and read data through CAML and write data also. I have a portal where I have one site collection and under that site collection I have sub-sites where we have different document libraries related to their department..i have managed to give permissions by breaking the inheritance and made department groups..well we just started one project in which are taking "Requisitions" (master-detail) from all more then 600 users across the country. so I made one subsite called "EFormsCenter" which is accessible by "http://portal.mydomain.com/EFormsCenter".

In this site "EFormsCenter" i have created two lists "RequestMaster" and "RequestDetail"...created a visual webpart with girdview and all...took input from user and data writes to master list and detail list. When I log in as site collection administrator I can submit data through form but any other user who logs in cannot submit and and getting

"Sys.WebForms.PageRequestManager Server Error Exception : <nativehr>0x80070005</nativehr><nativestack></nativestack>"

and this shows when I used "developer tools" and in console window it shows otherwise pressing submit button nothing happens. I figured its a permission issue so my question is.

  1. How to prevent users not to visit "http://portal.mydomain.com/EFormsCenter"
  2. Which permissions I should give to "RequestMaster" and "RequestDetail" libraries so user can read, insert, update and delete through visual webpart form. currently its inherting HOME permissions.
share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

You'd want to make sure the users have Contribute permission to the appropriate lists/libraries. That gives them full CRUD operations.

share|improve this answer
    
Suppose they dont have contribute rights then can i use SPSecurity.RunWithElevatedPrivilege(delegate() can do the job? as i am running the code using visual webpart? –  user342944 Mar 18 '13 at 19:29
    
Yes, you'd need to run with elevate privs if you aren't going to give users access. –  PirateEric Mar 18 '13 at 19:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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