473,569 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.R equest.Path.End sWith("Login.as px");

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.En dsWith' 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 1249
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.R equest.Path.End sWith("Login.as px");

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.En dsWith' 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.R equest.Path;

vValue.EndsWith ("file.aspx" ) but again i see the message
into the watcher the same error: 'vValue.EndsWit h' 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) ((HttpApplicati on) sender).Context );

this is done on the BeginRequest event of the Custom
module when I try to access the following statemen:

m_HttpContext.R equest.Path.End sWith("Login.as px");

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.En dsWith' 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
5851
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 important changes, so in this thread I would like to focus on that issue alone. I have edited the Proposed Syntax example below to take out the...
0
2331
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 Methods Version: $Revision: 1.34 $ Last-Modified: $Date: 2004/09/03 09:32:50 $ Author: Kevin D. Smith, Jim Jewett, Skip Montanaro, Anthony Baxter
8
2407
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. Generally, the documentation suggests that queues or similar constructs should be used for thread inter-process comms. I've had a lot of success...
2
2078
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. However, I need to provide bindings for an application that Python is embedded into, and thanks to Qt the bindings are going to be both simple and...
5
2046
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, class ARG_TYPE = const TYPE&> class CBTree : public CObject {
9
1358
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: http://martinfowler.com/bliki/CollectionClosureMethod.html >. find can be defined as: def find(self, test = None): for item in self: if test: if test(item):
175
8730
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 changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
19
24567
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 static so that I don't need an instance in order to call it. However, because my class model is using a common base class, I need to make it...
9
1825
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 { public:
2
1974
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(), and C() and I do this: A() { lock{ SomeWork(); } }
0
7701
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.