You can pass the object from your webpage into the class. For example, if you wanted to manipulate the text in a textbox using a separate class you could do something like this:
public class TextBoxHelper
{
public void TextBoxContentsToUpper(TextBox t)
{
t.Text = t.Text.ToUpper();
}
}
assuming your webpage has a TextBox with ID "Name" call the class method from your webpage like this:
var helper = new TextBoxHelper();
helper.TextBoxContentsToUpper(Name);