Adding a form to a template?

Posted by Community Admin on 04-Aug-2018 23:42

Adding a form to a template?

All Replies

Posted by Community Admin on 05-Dec-2013 00:00

Hi there,

I'd like to add a small login form to the top of my Sitefinity site that will send a POST to a separate site to login there.  This would normally be done using HTML similar to this:

<form method="post" action="http://www.example.com/login">
    <input type="text" name="username">
    <input type="password" name="password">
    <input type="submit" value="Login">
</form>


Now, when I put this HTML into a Sitefinity template, obviously it doesn't work in Hybrid mode because WebForms puts a "form" tag around the whole page.  What's the quickest and easiest way to accomplish this?

Posted by Community Admin on 06-Dec-2013 00:00

Hello,

You can always use the "PostBackUrl" property in an asp.net submit button to force your form to post to an external location. Is this an option for you?

Regards,
Bonny
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed