FIX: "WebForm_PostBackOptions is undefined"

Like many of you, I too received this error. Here's my setup:

  • WSS / sp2 / .NET 2.0 (appPool is using 2.0 as well)
  • Son of SmartPart

To be sure here's my issue: I merged my controls with aspnet_merge (part of the Web Deployment project add-in currently in B2 that Scutt Guthrie's been talking up lately). NOTE: Without the capability of merging the half-dozen assemblies created when you "publish" a VS2005 website you will have to ensure that all of your child controls are loaded in various SoS parts - just so that you can load the parent control that calls them (SoS will not do it). Anyway, I moved my controls and assemblies (including Enterprise Library 2.0's data block - yeah it works inside of SoS) over to the UserControls & bin folders respectively. After it pretended not to load (fixed by recycling the browser) I noticed that certain postback events failed with the subject error.

I googled it numerous times... but nobody could actually fix it! I even asked a few SharePoint MVPs - all to no avail. Then I happenstanced across Jan's blog entry about ASP.NET 2.0 Web Resources and SharePoint... and it was like EUREKA - that's it! Thank you Jan! You are a lifesaver... but how about you update your blog with the fact that it also fixes THIS issue? At least then people who google the error will find the answer.

Update (3/22/2006): Jan has posted the link between "WebForm_PostBackOptions is undefined" and Son of SmartPart, and promises to update the installation instructions. Thanks again Jan - I'm positive this will help a lot of folks out.

Anyway I am now back on track... and the problem has completely gone away. I suspect that this should also be added to the installation instructions... since who isn't going to have a linkbutton or a validation control (what specifically broke me)? Also, with the capability to drop js's and images (since they don't load correctly sometimes due to a different directory structure on the server) why wouldn't we want this ASP.NET 2.0 specific magic bullet?!

Thanks again Jan (another SharePoint MVP - it seems like everyone is one these days) for making our lives just a little bit easier. You have now been officially added to my blogroll.

posted @ Tuesday, March 21, 2006 7:41 PM

Print

Comments on this entry:

# FIX: "WebForm_PostBackOptions is undefined"

Left by at 3/22/2006 6:43 AM
Gravatar
Thanks for adding this fix's link to my problem to your blog.

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Peter Vranich at 3/22/2006 3:32 PM
Gravatar
Would this by chance fix the "Add Link to Site" problem in SPS 2003 .NET 2.0

As referenced here...

http://sharepointblogs.com/vandest/archive/2005/11/23/4257.aspx

I have tried but can't seem to get it to work still. Same with the add user. Error "Unable validate Data".

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Steve Hartzog at 3/23/2006 1:52 AM
Gravatar
I don't know Peter. It looks the same, but despite getting that issue - it works for Van De Craen. I can't imagine it being the same issue and working; but I am by no means an expert on the other issue as I have never encountered it.

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Peter Vranich at 3/23/2006 2:14 PM
Gravatar
You don't get the errors? I thought everyone got this issue when running SPS with .NET 2.0. I guess not. So must be a configuration issue...

Can I ask what your OS, WSS and SPS versions you are running are?

I am running,

Win 2003 R2
SQL 2005 Standard
Wss with SP2 (this was the R2 installation with Sp2)
SPS with SP2

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Steve Hartzog at 3/23/2006 6:38 PM
Gravatar
Win 2003
SQL 2000 Standard
WSS with SP2
SPS with SP2

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by hpv at 1/23/2007 10:05 AM
Gravatar
I still got this message!'WebForm_PostBackOptions is undefined'

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by edwinn robison at 4/23/2007 1:13 PM
Gravatar
My web page got this problem while it was doing an insert to the backend Oracle DB when it was running from an IIS server. However, it always successfully all inserts/updates/deletes when it run from my local XP with VS2005.
Any thoughts/leads where to investigate?
Thanks.

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by bsknuisss at 12/11/2007 9:55 AM
Gravatar

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by 尖锐湿疣 at 3/3/2008 3:09 AM
Gravatar

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Arwind at 4/2/2008 6:43 PM
Gravatar
To Fix this issu follow the following steps:

open add/remove programms select asp.net framework 2.0 and click on change.

Thanks

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by ramzi hawa at 4/24/2008 10:41 PM
Gravatar
I have a fix for this: check and make sure you have <form runat=server> and </form> appearing one time in your page. (not more, not less)
eng. Ramzi Hawa
www.cccommunications.com

# re: FIX: "WebForm_PostBackOptions is undefined"

Left by Rigel at 6/4/2008 9:47 PM
Gravatar
Do you try insert ScriptManager into your page?

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 1 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011