Thanks Peter for you response.
As you know the Path property of the Request object is a
String object which has the the defined methos (i.e.
EndWith(), GetTyep(), Clone(), CompareTo(), ToString()) to
work with the string object but none of this methods works.
The Path property has a value like /app/file.aspx
I already tryed to set it to a string like
string vValue = m_HttpContext.Request.Path;
vValue.EndsWith("file.aspx") but again i see the message
into the watcher the same error: 'vValue.EndsWith' does
not exist
Thanks..
-----Original Message-----
What about all the other properties, do they contain the
expected values?Does Path contains something? How about Request? What I
am getting at isthat you should make sure that the error is actually
applying to theEndsWith, and not something that came before it.
"Erick" <er************@ge.com> wrote in message
news:26*****************************@phx.gbl... Hi,
I'm implementing a IHttpModule.
I get the Context object like this:
HttpContext m_HttpContext = (HttpContext)
((HttpApplication) sender).Context);
this is done on the BeginRequest event of the Custom
module when I try to access the following statemen:
m_HttpContext.Request.Path.EndsWith("Login.aspx");
I did not receive any error at the compile or run time
but if I debug and watch this sentence I see this text into
the value field of the watcher.
error: 'm_HttpContext.Request.Path.EndsWith' does not
exist
Looks that the EndsWith method is not recongnized for
the Path string object contained into the Request object.
Does any know what is going on?
Regards...
.