C#代码和HTML [英] C# Code and html
问题描述
以下是我的网页现在的样子:
Here is what my web page looks like right now:
<%@ Page Language =" C#" AutoEventWireup = QUOT;真"代码隐藏= QUOT; Default.aspx.cs"继承= QUOT; WebApplication2.Default" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2.Default" %>
我有选择玩家数量:然后是一个带有数字的下拉列表,然后是旁边的提交按钮。 我希望当用户选择玩家数量并点击提交按钮时,会出现许多文本框输入您的姓名。
请帮忙。
I have Select Number of Players: then a drop down list with numbers then a Submit button beside it. I would like it to when the user selects the number of players and hits the submit button that many text boxes come up for you to enter your name. Please help.
推荐答案
根据我的理解,你想动态添加文本框数。
As per my understanding you like to add the Number of textboxes dynamically.
你可以以两种方式在该页面中添加文本框。
You can able to add the textboxes in that page in two ways.
1。使用客户端脚本
2。通过服务器端代码。
2. By server side Code.
请选择更好的选项。
ASP.NET论坛 http://forums.asp.net 是提出此类问题的最佳地点
The ASP.NET forums http://forums.asp.net is the better place for such questions
这篇关于C#代码和HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!