Note that there are some explanatory texts on larger screens.

plurals
  1. POExecute html from database in ASP.NET page
    primarykey
    data
    text
    <p>Any suggestions to load a html page saved in the database?</p> <p>html:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head id="Head1" runat="server"&gt; &lt;title&gt;xxx&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="Form1" runat="server" method="post"&gt; &lt;ext:ResourceManager ID="ResourceManager1" runat="server" /&gt; &lt;/form&gt; &lt;/body&gt; </code></pre> <p></p> <p>codebehind:</p> <pre><code> protected override void OnInit(EventArgs e) { this.IniciarFormulario(); using (ServicoECMClient proxy = new ServicoECMClient()) { tipoDocumento = proxy.ObterTipoDocumento(int.Parse(tipoDocumentoID)); } if (tipoDocumento == null) { throw new ApplicationException(); } this.Page.Header.InnerHtml = tipoDocumento.estilo; //css this.Page.Form.InnerHtml = tipoDocumento.form; // form base.OnInit(e); } </code></pre> <p>I can not retrieve the form values.</p> <p>Look:</p> <pre><code> foreach (System.Web.UI.Control controle in this.Form1.Controls) { if (controle.GetType().Name == "HtmlInputText" || controle.GetType().Name == "HtmlInputSelect" || controle.GetType().Name == "HtmlInputRadio" || controle.GetType().Name == "HtmlInputTextCheckbox") { if (!string.IsNullOrEmpty(this.Request[controle.ClientID])) { documento_indice documentoIndice = new documento_indice(); documentoIndice.id_indice = int.Parse(controle.ClientID.Split('_')[1]); documentoIndice.valor = this.Request[controle.ClientID]; documentoIndice.timestamp = DateTime.Now; documentos_indices.Add(documentoIndice); } } } </code></pre> <p>Controls is empty. => this.Form1.Controls</p> <p>Any Suggestion? </p> <p>There's another better way to do?</p> <p>Thanks. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload