SharePoint – deploying a Webform

I am new to this new and exiting world of sharepoint, and i like it so far (c: but no pain no gain ,..
so this my expirience so far. I installed the lates version of Sharepoint designer ,.. and this is where fun beguins

One of my fist challenges was to an 2.0 webform to sharepoint and this is what i did,..

1) start runing around like GRAZZZYY,,..
2) make your code,. when it works
3) Set up your version of SharePoint to display errors, if you don’t you’l end up with nothing but “An unexpected error has occurred”
3.a) in webconfic change <SafeMode MaxControls=“200“ CallStack=“false“… to <SafeMode MaxControls=“200“ CallStack=“true“…
3.b) <customErrors mode=“Off“/>
4)Next problem is how to you add code behind to your aspxes
4.a) Build your WebPart and copy dll to your sharoint solution bin folder.
4.b) In Sharepoint designer, create your aspx page and copy your code in to it.
4.c) Change Inherits if nead to,.. remember class first then assembly.
4.d) In Webconfic add folowing

<SafeControl Assembly=”” Namespace=”” TypeName=”*” Safe=”True” /> this enabeles all your aspxes which uses this namespace for sharepoint.
4.e) In Webconfic change CallStack=”false” to CallStack=”true” in <SharePoint><SafeMode>
4.f) In Webconfic add folowing to <SafeMode><PageParserPaths>
<PageParserPath VirtualPath=”/*” CompilationMode=”Always” AllowServerSideScript=”true” IncludeSubFolders=”true” />
this enabels all event handeling for buttons and others.

and this is it ,.. You have done it ,..
by the way thanks to Will for a briliant article it was a big help ,.. i can recomend you to read it ,..

over and out ..


One Response to SharePoint – deploying a Webform

  1. Pingback: 401 UNAUTHORIZED – error when developing a costume login for sharepoint « maanehunden’s Blog

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 )

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: