0

I need to add a HTML Form Web Part to a SharePoint 2010 page programmatically in a feature receiver, but I can't find the class to instantiate.

1 Answer 1

1

It's Microsoft.SharePoint.WebPartPages.SimpleFormWebPart

You'll also need to embed this somehow:

  <sfwp:Content xmlns:sfwp="http://schemas.microsoft.com/WebPart/v2/SimpleForm">

<![CDATA[<div onkeydown="javascript:if (event.keyCode == 13) _SFSUBMIT_"><input type="text" name="T1"/><input type="button" value="Go" onclick="javascript:_SFSUBMIT_"/></div>]]></sfwp:Content>
1
  • I do i get the value of T1? In an alert or something As i want to make sure my params date are correct. Chhers Commented Mar 6, 2012 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.