protected void btnShowpart_Click(object sender, EventArgs e)
{
FormView1.Visible = true;
txtNewpartcode.Text = txtPartcode.Text;
txtNewcustnbr.Text = txtCustnbr.Text;
btnShowmodify.Visible = true;
}
protected void btnShowmodify_Click(object sender, EventArgs e)
{
Panel1.Visible = true;
txtNewcustpart.Text = ((TextBox)this.FormView1.FindControl("txtCurrcustpart").ToString());
}
ASKER
ASKER
Control ctrl = this.FormView1.FindControl("txtCurrcustpart")
System.Diagnostics.Debug.Print(ctrl.GetType().FullName);
System.Diagnostics.Debug.Print(ctrl.Text); // it this is the textbox should show the text; else - error
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
HTH
Ivo Stoykov
Open in new window