|
by: Paul Daly (MCP) |
last post by:
I'm trying to write a log file that captures the referring url if the request is a new session, and captures a querystring value if the user is browsing between pages on the website.
When using the code below, I get the following error...
"System.NullReferenceException: Object reference not set to an instance of an object"
******************************************
protected void Session_Start(Object sender, EventArgs e)
{
System.Uri...
|
by: Arjen |
last post by:
Hi,
I try to get the 'Context.User.Identity.Name' from inside the global.asax in
the 'Application_BeginRequest' event.
I get this error message:
Object reference not set to an instance of an object.
You can simple test this with:
Response.Write(Context.User.Identity.Name);
|
by: LS |
last post by:
Can a WebMethod return an Interface type?
Can we pass an interface parameter ?
Example :
public interface IEntity
{
long Id { get; set; }
string Name { get; set; }
}
|
by: Roland Dick |
last post by:
Hi,
surely simple enough, but I got stuck on this one:
I want to use the Global.asax file to log every call to a webservice
method. For this, I'm using the Application_BeginRequest method. The
problem now is: how can I get the name of the method the client
requested? All properties of the Context.Request object seem to have
just the filename (.asmx) of the webservice...
Thanks for any hints on this!
|
by: Alexander Walker |
last post by:
Hello
I would like to write a method that allows me to pass a reference to an instance
of a class, the name of a property of that class and a value to set that
property to, the method would then set the property of the instance to the value
here is an example of what the method might look like
public void SetProperty(object instance, string property, object value)
{
|
|
by: tao lin |
last post by:
Hi, all
I am using VS 2005 under windows 2000.
I just upgrade my asp.net app from 1.1 to 2.0. And I found a very strange
proglem in my Global.asax.cs's Application_BeginRequest function, here is my
code:
protected void Application_BeginRequest(Object sender, EventArgs e) {
|
by: John |
last post by:
I am writing a custom httpmodule, I can catch BeginRequest, EndRequest
event,
But I can not catch Error event, I tried throwing an error from my Web
Service, creating a security exception (by login the web service with
invalid user name 3 times)
Did I do any thing wrong here? (VS2005)
Please advice.
Thanks in advance.
John
|
by: simon |
last post by:
hi,
I would like to separate my javascript completely from my xhtml. in the
end there should be only
<script type="text/javascript" src="javalib.js"></script>
in the head-tag to my javascript.
Because I want to use some ajax-requests and other javascript-functions
on my xhtml, I need to dynamically add event handlers to any possible
dom-elements. All solutions I found so fare are for specific, pre-known
|
by: =?Utf-8?B?bXVzb3NkZXY=?= |
last post by:
Hi guys
I've used an Application_BeginRequest function in my global.asax page to
implement some URL rewriting functionality on our website.
However, upon moving it to my host (1&1.co.uk), it no longer works. They
don't support Application_BeginRequest?
They've given me a list of the low-level functions they do support, which
can be viewed at http://s221042302.websitehome.co.uk/check.aspx
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|