ok, I'm asking another question now....
Previously I had code to add the requester and asignee emails, if the are both empty then I need to build the list. Here is my code:
private string BuildUserList(int p_intSendToRoleID)
{
DataSet dstUsers = new DataSet();
DataRow drwData = default(DataRow);
string strUserList = null;
try
{
dstUsers = User.GetUsersByRole(p_intSendToRoleID);
foreach ( drwData in dstUsers.Tables(0).Rows)
{
strUserList += (string)(Information.IsDBNull(drwData("Email")) ? "" : Convert.ToString(drwData("Email")) + ";");
}
return strUserList;
}
catch (Exception ex)
{
throw;
}
}
private string BuildUserList(int p_intSendToRoleID) gives me an error at string and
DataSet dstUsers = new DataSet(); gives me an error at DataSet()
both errors are:"Expected class, delegate, enum, interface, or struct"
and I get "Type or namespace definition, or end-of-file expected" at the last bracket.
I'm stuck again - can anyone help me understand?