Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Building Web parts with <form> tags

  Asked By: Wendy    Date: Dec 25    Category: Sharepoint    Views: 3145

Is it possible to create Web parts with <form> tags so it does not
interfere with the SharePoint <form> tags?

If I were using a string builder to write out HTML what would be the
recommended procedure?



3 Answers Found

Answer #1    Answered By: Emmett Hyde     Answered On: Dec 25

I usually just let my Web Part ride on SharePoint's form tag. If you are
in a Web Part Zone, you know you are in a <form runat="server">

Answer #2    Answered By: Laura Walker     Answered On: Dec 25

How would I set the action="http://www.whatever.com/"?????

I was wondering if I could write  out a form in javascript on the


Answer #3    Answered By: Cory Brooks     Answered On: Dec 25

In C# it looks something like this:
HyperLink link = new HyperLink();
link.NavigateUrl = "http://MindsharpBlogs.com/Todd" target="_blank" rel="nofollow">http://MindsharpBlogs.com/Todd";
link.Text = "Todd's Blog";


In JavaScript it looks something like this:
var newLink = document.createElement('a');
newLink.innerHTML = "Todd's Blog   ";
newLink.href = "http://MindsharpBlogs.com/Todd" target="_blank" rel="nofollow">http://MindsharpBlogs.com/Todd";

var uptoLink = document.getElementById('onetidPortalConn');
uptoLink.parentNode.insertBefore(newLink, uptoLink);

Didn't find what you were looking for? Find more on Building Web parts with &lt;form&gt; tags Or get search suggestion and latest updates.