Can you nest html forms?

前端 未结 20 3200
悲&欢浪女
悲&欢浪女 2020-11-21 04:56

Is it possible to nest html forms like this

so

20条回答
  •  忘掉有多难
    2020-11-21 05:15

    Today, I also got stuck in same issue, and resolve the issue I have added a user control and
    on this control I use this code

    '
    '

    and on PreRenderComplete event of the page call this method

    private void InitializeJavaScript()
    {
            var script = new StringBuilder();
            script.Append("$(document).ready(function () {");
            script.Append("$('.divformTagEx').append( ");
            script.Append(litFormTag.Text);
            script.Append(" )");
            script.Append(" });");
            ScriptManager.RegisterStartupScript(this, GetType(), "nestedFormTagEx", script.ToString(), true);
        }
    

    I believe this will help.

提交回复
热议问题