问题1
int pagenow = Gridview1.PageIndex;
if (pagenow + 5 < 10)
{
for (int i = 1; i <= 5; i++)
{
LinkButton lb = new LinkButton();
lb.Text = i.ToString();
lb.CommandArgument = i.ToString();
lb.CommandName = "Page";
lb.CausesValidation = false;
//lb.Click +=new System(this.num_con);
numlb.Controls.Add(lb); //numlb 为PlaceHolder、Panel
}
}
要求生成的和这个一页
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="1" CommandName="Page">1</asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="2" CommandName="Page">2</asp:LinkButton>
</asp:Panel>
问题2
for (int i = 0; i < 5; i++)
{
TextBox tb = new TextBox();
tb.ID = "TextBox" + i.ToString();
Panel1.Controls.Add(tb);
}
点击按钮后,我怎么得到生成的这些Textbox的值
问题3
在网上音乐mideaplayer播放器那里,我怎样才能知道一首歌播放完毕,接着播放另一首歌