My Web Part properties won’t save. Because of no server side controls on my web part?

There are tons of reasons why a web part property won’t save, but I came across a bizarre one today.


  • User control web, and a web part that loads the user control. 
  • The user control had NO server side controls on it.  I was just using inline c# to render my HTML for the web part.
  • When I edited the web part properties in sharepoint, the wouldn’t save.

I was banging my head against the wall all day, and found out by accident that if there are NO SERVER SIDE controls on the web part, sharepoint won’t try to save the web part properties.  You’d think that the web part properties and the controls on the web part would be completely unrelated, but not from what I saw today.

I sincerely hope that it’s just a issue with our user control loader and doesn’t happen to anybody else, ever.

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: