5
Jestem nowy do C#. Mam tej klasy ...Jak uzyskać dostęp do GetGlobalResourceObject()
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public class clsErrorMessages
{
string _sErrors;
public clsErrorMessages(string sErrorTextFileName)
{
_sErrors = (String)GetGlobalResourceObject("resource","FriendlyErrors.txt");
}
}
Kompilator mówi the name 'GetGlobalResourceObject' does not exist in the current context
Czy muszę to kolejny using
?
Dzięki! To pozbyło się błędu. W jaki sposób intellisense nie pozwoli mi przejść przez hierarchię jak "System.Web.HttpContext" lub coś podobnego? –
Nie jestem pewien, czy rozumiem. Co rozumiesz przez "przechodzenie przez hierarchię"? –
Mam na myśli co to jest "HttpContext" członkiem? Czy nie powinno być wszystkiego pod "Systemem"? –