c# - ASP.NET Website: page with multiple forms -



c# - ASP.NET Website: page with multiple forms -

i'm having problem while creating dynamically web page in asp.net (c#).

i need insert multiple form tags in page, know can't set more 1 runat="server" attribute , don't need it.

i want place them c# (one each element i've got manage), without runat attribute htmlform object utilize insert form adds runat attribute automatically , can't remove (tried form.attributes.remove("runat"))

if utilize simple string like:

"<form id="someid" method="post" action=""></form>"

and add together multiple times div works. point don't want insert html objects writing them in string , add together innerhtml method. i'm looking object manage form without runat attribute or way remove htmlform.

a user command cleanest solution can add together htmlgenericcontrol instead of htmlform object isn't bound specific attributes.

dim ctrl new htmlgenericcontrol("form") ctrl.attributes.add("id", "someid") ctrl.attributes.add("method", "post") ctrl.attributes.add("action", "") outerdivcontainer.controls.add(ctrl)

c# asp.net forms runat

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -