S
sck10
Hello,
I created a class (public class General) with the following. My question
is, is this good practice to have a group of methods(?) in one class, or
should I have a separate class for each method? I'm not sure if this makes
sense, but can/should you put more than one class in a file (myclasses.cs)?
Any help would be appreciated...
Thanks, sck10
public class General
{
public void HidePanels(Page MyPage)
{
// my code
}
public void SetFocusControl(Control FocusControl)
{
// my code
}
public string ClearCell(object RepeaterValue, string CompareValue)
{
// my code
}
protected void SendMail(string From, string To, string Subject, string Body,
string Client)
{
// my code
}
}
I created a class (public class General) with the following. My question
is, is this good practice to have a group of methods(?) in one class, or
should I have a separate class for each method? I'm not sure if this makes
sense, but can/should you put more than one class in a file (myclasses.cs)?
Any help would be appreciated...
Thanks, sck10
public class General
{
public void HidePanels(Page MyPage)
{
// my code
}
public void SetFocusControl(Control FocusControl)
{
// my code
}
public string ClearCell(object RepeaterValue, string CompareValue)
{
// my code
}
protected void SendMail(string From, string To, string Subject, string Body,
string Client)
{
// my code
}
}