我在工具箱中添加了Checkboxlist到我网站上的登录页面。一旦我检查CheckBoxList中的ListItem(单击时),我想要在刚刚选中的ListItem(例如:用户名,密码和ID文本框)的右侧打开三个文本框。检查CheckBoxList中的复选框时显示文本框
我一直在试图做这一整天,但我仍然在努力。这是我的C#代码+图片结尾:
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
}
protected void CheckBoxList1_SelectedIndexChanged1(object sender, EventArgs e)
{
if (CheckBoxList1.SelectedValue == "1")
{
multiView.ActiveViewIndex = 0;
}
}
}
请看下面的图片我做了什么。
这是源的aspx视图。
灿您还将标记发布在.aspx页面中? –