HttpHandlers / Modules :: Sharing Data Structure Between Requests?

Feb 13, 2011

I am working on a web service that return image tiles for site using Bing Maps. The problem I am having is that All these tiles are created using a single data source. When the bing maps control calls out for the imagery it calls the service multiple times to get the tiles it needs. So if the first thread to go in gets the file all the other threads will fail until the first thread is done reading in the file. Is there an easy way to share this file between all the requests? The flow for what im trying to do is as follows: recieve request open file and read in the data to a custom class - (this is the class I would like to share for all the threads) create the image based on the data return the image.

View 3 Replies


Similar Messages:

HttpHandlers / Modules :: Intercepting Requests?

Mar 22, 2010

I've got a site which calls to an outside domain to request file data...is there a way in asp.net to intercept that request and append something to it?...the outside resource is needing an authkey, and Id like to append that automatically on my end Doable?

View 3 Replies

WCF / ASMX :: Sharing Data Between User Requests?

Nov 7, 2010

am new to web services and have a quick question. I've some data (an c# class object) that needs to be shared between two different users (of my web service) . all the methods in the web service have a parameter called "sessionkey" which can be used to know what data to share.

i need to know how/where to store this data ?

View 4 Replies

HttpHandlers / Modules :: Entry Type Of IIS Custom Modules?

Jan 26, 2010

After adding a custom module, Module list is showing MyModule "Entry Type" as "Local".

and Entry Type of all other modules is "Inherited".

what is Entry Type and difference between "Local" and "Inherited"?

View 4 Replies

HttpHandlers / Modules :: Regarding Http Modules Execution?

Jun 8, 2010

is httpmodules executed each and every time in request and response cycle ?? if Yes is it possible to disable a specific http module ??

View 3 Replies

HttpHandlers / Modules :: Read Data Sent After A GET Request?

Oct 31, 2010

I'm in a situation where a GET request is made of my server without any content-length header. After the GET request is sent the client then sends a small chunk of data (8 bytes to be exact). It's imperative to note that this data is not meant to be treated as a request body. For this reason asp.net/iis ignores it. I cannot read it and the input stream says it has a length of 0. This is the correct behaviour!

What I need to do is somehow hook into the request processing pipeline early enough to read this data and somehow append it to the request (Items?) I don't know how to do this 'correctly'. I figure I should probably create an IHttpModule to check if the request is of the type that will have this data, then somehow read it.

How would I go about this? How would I be able to read this information in from the stream? I've tried adding an event handler to HttpApplication.BeginRequest but everything I try to read the stream fails. I've read that I could potentially add a custom header using reflection (this would allow me to add a content-length header) but this feels nasty and hacky - I presume there's just a place where I can hook in and handle the reading of the stream before passing it on for further processing.

View 2 Replies

HttpHandlers / Modules :: Getting Data Posted To A Site?

Sep 29, 2010

I am trying to get data posted to a site. The only way i have been able to access these variable is through the headers:

Posting script:

HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;

request.Headers["name"] = "Brandon"; [code]....

I have tried doing this but cannot access the variables in the Posted to Script..

[Code]....
[Code]....

Is there a better way than using Request.Headers?

View 1 Replies

HttpHandlers / Modules :: Acessing Data Through Port?

May 7, 2010

I am supposed to extract the data which will be pushed through a dedicated port to the given Static IP address of a system / Server. The service that pushes the data is NOT a web service. This service supports SMTP, HTTP GET, HTTP POST, UDP and TCP protocols and the data format is XML. How can this data be accessed using dotnet platform??? Please provide any pointers on the same.

View 2 Replies

HttpHandlers / Modules :: Sending Binary Data From Server To Client?

Oct 29, 2010

I want to send a file by converting it into binary file to the client end and then it should be read by javascript which again I am passing to the OCX method.(like my OCX method accept only the binary data so i have to transmit binary data from server side to client).

View 1 Replies

Web Forms :: Sharing A Structure Or Class Among Multiple User Controls?

Feb 2, 2010

I'm building an application where custom modules may be developed and "dropped in" to the system, where they can be picked up and utilized.

I'm building a forum module and have a user control to create a login/registration region. I plan on using a struct to store the user session data. However, i need this class structure to be shared between the forum module and the login/registration control.

Because the functionality is to be contained in the module's folder, i cant add any assemblies to the app_code folder.

How can i share a class or struct among two user controls?

View 6 Replies

Httphandlers And Http Modules?

Feb 7, 2011

How do we findout the whether the application is using any HTTPModules and httphandler in the applicaion?Is there anyway to findout from the url without checking the web.config file?

View 1 Replies

HttpHandlers / Modules :: Url To A Subdomain Is That Possible

Jul 2, 2010

I got a website [URL] and I want to redirect http://www.example.com/folder to http://folder.example.com so if
folder has a page called example1.aspx [URL]

It should be called in this way:

http://folder.example.com/example1.aspx Is that possible that using IIS 7 and asp.net 4.

View 2 Replies

HttpHandlers / Modules :: What Is Httphandler In .net

Mar 3, 2010

what is httphandler?what is the use ?

View 7 Replies

HttpHandlers / Modules :: URL Rewriting On IIS 7.0?

Apr 1, 2010

I have a HttpModule that rewrites the url:

eg: Folder/StaticPage.aspx?PageName=TestPage is re-written as

Folder/TestPage

This works fine on my local dev. machine on the Cassini server. But when its hosted in IIS (5.1 & 7.0) it fails to work, with the error as 404 Page Not Found.

View 3 Replies

HttpHandlers / Modules :: HttpModule Is Not Working

Jan 24, 2010

I have written simple http module just to print Hello. but it is not working.

View 10 Replies

HttpHandlers / Modules :: HTTPHandler -> Session_End

Oct 19, 2010

I am using Httphandler to access my pages. Have Loginstatus Control on the master pages.

OnLoggingOut for the Loginstatus control I am doing a Session.abandon()... But My session_end

does not get called in the Gobal.asax.I tried link button and everything. but when I take out the httphandler the Session_end gets executed in global.asax

I can handle the full session end on my own but is there any way to call Session_end in global.asax?

View 2 Replies

HttpHandlers / Modules :: Ampersand In URL = Bad Request

Feb 24, 2010

If I have an & in the URL I get a bad request. I have followed the instructions at [URL] but still no luck. If I remove

[Code]....

from web.config it works. Encoding the URL does not help.

View 7 Replies

HttpHandlers / Modules :: How To Attach A PDF To MailMessage

Apr 22, 2010

I am trying to attach a pdf to a MailMessage, but it is not a file, rather it is a web page.

Allthough the pages respondes the PDF normaly, when I am attatching the IO.Stream to MailMessage, it is only 300B, so it cannot be opened.

This is the code:

[Code]....

Also I tried this one, but failed too:

[Code]....

View 2 Replies

HttpHandlers / Modules :: How To Url Rewriting Like As Subdomain

Jan 4, 2011

I wants to url rewriting like as subdomain.

For example my website is website.com so that now i wants to url rewriting like

client1.website.com ,
client2.website.com,
client3.website.com,
clientN.website.com

In my website there are list of client whenever click on client my url like this

website.com/client.aspx?client=client1
website.com/client.aspx?client=client2
website.com/client.aspx?client=client3
website.com/client.aspx?client=clientN

Now i wants to url rewriting like as

client1.website.com
client2.website.com
client3.website.com
clientN.website.com

Also whenever once client is registered,After that client can directly open site

View 1 Replies

HttpHandlers / Modules :: URL Rewriting And IIS 6 Subdomain?

Jun 16, 2010

I have created my url rewrite handler and its working fine, but on live site i have IIS 6
and its not accepting the subdomain requests

when i type

http://website.com
it works fine but with
http://sub.wesite.com
i got the error Server not found

View 2 Replies

HttpHandlers / Modules :: How To Add Dynamic Folder Name In URL

Jun 28, 2010

the project i'm working right now, client wants to make url seo friendly, if any event would enter from the admin section the url should show the name of the event itself.

right now it shows www.--------.com/eventdetails.aspx?id=879878

but the client wants www.---------.com/eventname/

the event comes dynamically every day.

View 3 Replies

HttpHandlers / Modules :: How To Do HttpWebRequest For Every 10 Minutes

Mar 31, 2011

I would like to perform HttpWebrequest every 10 min in my website. Right now it is performing onbutton click.

View 1 Replies

HttpHandlers / Modules :: Remove The .ASPX From The URL?

May 28, 2010

This can be accomplished by overriding the Application_BeginRequest method in the Global.ascx file:

[Code]....

View 2 Replies

HttpHandlers / Modules :: URL Rewrite But Without Id In Address Bar?

Jan 15, 2010

How do I url rewrite without id in Address Bar?

Example:

[URL]

I don't want this..

[URL]

Is it possible?

View 6 Replies

HttpHandlers / Modules :: Update Db In 2nd Web App With Post?

Feb 11, 2010

I have 2 asp.net apps, each on a different server and with its own SS2005 db.

What I need is to grab the data entered in a form in app1 and insert that "behind the scenes" into the app2 db.

I suppose I have to do a POST in app1 and intercept that in app2, but since I've not done much http handling yet, I could use some hints or even examples if possible.

The data to be transferred is all strings.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved