Brett Winters free asked 6 years ago


Hello,I'm just playing around with some of your free templates for a new project in asp.net (using master/content layout)

I can't seem to remove the <form> tag from your demo without the formatting crashing: (asp.net needs a <form runat=server> on the outer wrapper)

<form class="form-inline">[search input]</form>

I can't understand how <form> is used by the <div class="view to generate content there 
and why the formatting would crash   

Thanks

Brett

Bartłomiej Malanowski staff commented 6 years ago

Currently, MVC is not supported

ivan44 free answered 6 years ago


If you're using asp.net webforms, nested form tags are a bit of a problem. You're on the right track by eliminating the mdb form tag and replacing it with something else, a 'div' perhaps with a custom class name. <div class="alt-form form-inline" >...[search input] </div> This will kill the styles, as you noticed already. The next thing you need to do is look for the MDB Sass rules for the form and extend those rules to include '#alt-form'. After you recompile the Sass, your custom div should inherit the style rules for the original form. You will have to use JavaScript to handle the click on that input control, since it's not the submit for the form anymore.    

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags