Output cache in content and master page
Two questions:
Two questions:
I have a WCF web service that uses ASP.NET session state. WCF sets a read-write lock on the session for every request. What this means is that my web service can only process one request at a time per user, which hurts perceived performance of our AJAX application.
Constraints: I’m not using MVC, just regular ol’ .aspx files in my web app. Not using master pages either – each page is a different beast, so that solution isn’t right for me.
I’m using the auto-implemented properties syntax in the C# source files of my ASP.NET Web Application:
I have in the database a field that will always have an tag. and also lots of text..
On every page (sitting in the master) I have the login fields.
i have two project
1) class library with no inteface just an api
2) web application
I have an asp.net web application running on IIS 7 set-up in web-garden mode. I want to clear runtime cache items across all worker processes using a single-step. I can setup a database key-value, but that would mean a thread executing on each worker process, on each of my load-balanced-scenario web servers will poll for changes on that key-value and flush cache. That would be a very bad mechanism as I flush cache items once per day at max. Also I cannot implement a push notification using the SqlCacheDependency with Service Broker notifications as I have a MySql db. Any thoughts? Is there any dirty work-around? One possible workaround, expose an aspx page, and hit that page multiple times using the ip and port on which the site is hosted instead of the domain name – ex: http://ip.ip.ip.ip:82/CacheClear.aspx, so that a request for that page might be sent to all the worker processes within that webserver, and on Page_Load, clear the cache items. But this is a really dirty hack and may not work in cases when all requests are sent to the same worker process.
I have the url:
http://localhost:1714/Message/Index
I want to share the currentTab variable which exists on the C# server side with JavaScript. Here is my code: