[CLOSED] ASP.NET Server Control inside FormPanel

  1. #1

    [CLOSED] ASP.NET Server Control inside FormPanel

    Hi,

    How can I add ASP.NET Server Control or another control (for example ReCaptcha) inside a FormPanel?

     @(Html.X().FormPanel().ID("registerForm")
                .Title("Register")
                .BodyPadding(5)
                .ButtonAlign(Alignment.Right)
                .Items(item =>
                           {
                             item.Add(Microsoft.Web.Helpers.ReCaptcha.Html) // Here, I want to add ASP.NET Server Control and ReCaptcha
                           }))
    Last edited by Daniil; Jun 04, 2012 at 7:34 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I can suggest the following way.

    Example
    <!DOCTYPE html>
    
    <html>
    <head>
        <title>Ext.Net.MVC v2 Example</title>
    </head>
    <body>
        @Html.X().ResourceManager()
    
        @{Ext.Net.Panel panel = new Ext.Net.Panel();
          panel.ContentControls.Add(new System.Web.UI.WebControls.Label() 
              {
                Text = "I am ASP.NET Label"
              });      
        }
    
        @panel.ToBuilder()
    </body>
    </html>
  3. #3
    One important note: ASP.NET native web controls are not designed to use with ASP.NET MVC and, respectively, should not be used.

Similar Threads

  1. [CLOSED] GridPanel inside a FormPanel
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 09, 2012, 11:59 AM
  2. GridPanel inside a FormPanel
    By cajun in forum 1.x Help
    Replies: 1
    Last Post: May 08, 2012, 1:36 PM
  3. Replies: 0
    Last Post: Nov 17, 2011, 10:53 AM
  4. Replies: 2
    Last Post: Sep 21, 2010, 11:14 AM
  5. [CLOSED] FormPanel - Hide control - label control
    By seanwo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 11, 2010, 8:57 AM

Posting Permissions