Hi. I have a problem width this piece of code.
When I'm debugging, I can see two values of tbxCount.Text
incrementing separately (for btnPage and btnUser).
I just want both buttons works in a same way.
Default.aspx
------------
<asp:TextBox ID="tbxCount" runat="server">5</asp:TextBox>
<asp:Button ID="btnPage" runat="server" onclick="btnPage_Click"
Text="Page Button" />
<uc1:WebUserControl ID="WebUserControl1" runat="server" />
Default.aspx.cs
---------------
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack) WebUserControl1.FunctionDelegate = FunctionOriginal;
}
public void FunctionOriginal()
{
tbxCount.Text = (int.Parse(tbxCount.Text) + 1).ToString();
}
protected void btnPage_Click(object sender, ...
Go to the complete details ...