Hi NG,
I converted a VS2003 ASP.NET solution to ASP.NET 2 and got 2 Errors
like this:
ERROR: The member declaration for 'reqValEdit' was removed and its
accessibility has been changed from 'public' to 'protected'. To access
this member from another page you should create a public accessor
property for it. editor\FrageEdit.aspx.cs
I read something about the new code behind model, but I was wondering
if there is no way to change the access modifier of a WebControl.
Should I do it like (below) this now, to access a WebControl from
another Page?
- Add a TextBox with ID _TextBox1 in Designer View.
- In Codebehind add a Property like this:
public System.Web.UI.WebControls.TextBox TextBox1
{
get
{
return _TextBox1;
}
}
thx in advance
Bjoern