473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Methods missed

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...
Jul 21 '05 #1
2 1235
What about all the other properties, do they contain the expected values?
Does Path contains something? How about Request? What I am getting at is
that you should make sure that the error is actually applying to the
EndsWith, 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...

Jul 21 '05 #2
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...

.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
0
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
8
by: Matthew Bell | last post by:
Hi, I've got a question about whether there are any issues with directly calling attributes and/or methods of a threaded class instance. I wonder if someone could give me some advice on this. ...
2
by: Craig Ringer | last post by:
Hi folks I've been doing some looking around, but have been unable to find out how to implement class methods on Python objects written in C. "Why are you using C?" you ask? Yeah, so do I....
5
by: Nobody | last post by:
I am trying to write a BTree class, just wondering if I missed any useful methods. This is my class definition so far (excuse the MFC portions, its a project requirement): template <class TYPE,...
9
by: Mike Meyer | last post by:
Another thread pointed out a couple of methods that would be nice to have on Python collections: find and inject. These are taken from <URL:...
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
19
by: Mike Ruane-Torr | last post by:
Why can't I have a static abstract method in C#? My intention is to have a class-level method that returns a string to supply information about inherited classes, and it is natural to make this...
9
by: Steve Folly | last post by:
Hi, I had cause to change a base class virtual method's signature from const to non-const and realised the compiler didn't warn me about derived classes that hadn't changed: class Base {...
2
by: Tom P. | last post by:
I have a class that ahs several methods. It pulls from a queue so it has to be singleton at that point. The question I have is: does the lock{} statement work across methods? If I have A(), B(),...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.