Answer the question
In order to leave comments, you need to log in
How to dynamically insert inputs into a form?
Good afternoon, I am writing a simple application on asp.net webforms, c# programming language.
Here is my page code:
<%@ MasterType VirtualPath="~/Site1.Master" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Registration.aspx.cs" Inherits="LkMiac.Registration" MasterPageFile="~/Site1.Master" Title="Войти в личный кабинет"%>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<!-- Вот сюда мне нужно вставить код -->
</asp:Content>
Label label = new Label();
label.Text = "Я это создал динамически";
Answer the question
In order to leave comments, you need to log in
Create a user control in it after initialization add this.Controls.Add(label);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question