PerfMon counter : Cache % Process Memory Used is more than 100 % . How is this possible??
Note : only one worker process was running, hosting one website.
...
On my website i can upload files. I then use file[indx].SaveAs(path) to save the file however i notice the modify date is the current date and the creation date is 1second after that. Is there a way i can get the correct modify/write date from the client?
...
How can i get the MIME type from an extension? C# ASP.NET
...
Am using following .net code to add objects to cache:
public static void Add<T>(string key, T dataToCache)
{
try
{
ApplicationLog.Instance.WriteInfoFormat("Inserting item with key {0} into Cache...", key);
HttpRuntime.Cache.Insert(
key,
...
Currently I have an object implementing the IComparable interface (ASP.NET 3.5, VB). When I place several instantiated objects into a Generics list, I sort them by doing a simple someList.Sort. My CompareTo() function is this:
Public Function CompareTo(ByVal obj As Object) As Integer Implements
System.IComparable.CompareTo
'default is...
I have a url like "site.com/page?a=1&ret=/user/page2"
I was using string.split('/') to figure out the paths but this case you can see it isnt very useful. How do i split the url so i can get the page path? (if no one gives me an answer i'll split yet again using '?')
...
Ok so this is super basic. I just got done implementing the collapsible panel using the MS AJAX Toolkit and was wondering if anyone knew where to get the collapse and expand images that they use in their demo?
One would think these images would be distributed with the toolkit...if so - where are they found? Any recommendations for colla...
I'm trying to make a menu based off of an asp.net sitemap. How do you nest the sitemap nodes so that they all appear on the same level. Here is what I have:
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode url="~/Default.aspx" title="Home" description="link to Home" />
<siteMap...
I know in general it is a good practice to move as much processing as possible from Sql Server to the application (in my case ASP.NET). However what if the processing on the application level means passing 30+ extra parameters to the Sql Server. In this case is it worth moving the processing to the Sql Server?
Here's the specific dilemm...
Possible Duplicate:
Running IE6, IE7, and IE8 on the same machine
IS there anyway to have IE 6.0, IE 7.0 and IE 8.0 all installed on the same machine? Using Windows XP?
I am trying to test my web application and it must be able to run in IE 6-8
...
Hello,
am having a grid view and i have a template checkbox... Now i have a edit, delete button.
Once i click on edit button in gridview.... This template checkbox has to be automatically have checked == true... that is automatically checked has to be selected on click of edit buton in gride view..can anyone tell that code...Thank you...
I need to produce with asp.net controls this structure, but ListItem doesn't allow add properties and classes.
What is the best way to do it?
<ul>
<li class="1">SomeText</li>
<li class="2">SomeText2</li>
</ul>
...
I am checking emailId exists in DB, If Exists
I am looking to create a Ok/Cancel confirmation dialog.
if user say "Ok" I am redirecting to some other form.
My code is :
If emailId = True Then
If MsgBox("Your email address exists in our database. Click OK to update your Details.", MsgBoxStyle.Information + MsgBoxStyle.OkCancel, Ti...
Hello
We have a ASP .Net application whereby we use Log4Net to log details within the app - nothing new there - and the rolling log filenames are in the usual format of:
rolling-log.txt
rolling-log.txt.1
rolling-log.txt.2 etc.
A each user of the application adds to the logfile, the logfile can be difficult to read for a specific use...
I am cropping an image, and wish to return it using a ashx handler. The crop code is as follows:
public static System.Drawing.Image Crop(string img, int width, int height, int x, int y)
{
try
{
System.Drawing.Image image = System.Drawing.Image.FromFile(img);
Bitmap bmp = new Bitmap(width, heig...
We have a large legacy application where we want to start using MVC for new functionality.
To do this we added custom routing, for instance:
routes.IgnoreRoute( "{*allaspx}", new { allaspx = @".*\.as[pmh]x(/.*)?" } );
And we want to share the master page between the old WebForms and the new MVC pages.
This seems simple enough - chan...
Hi,
i'm using a DataGrid to display informations (e.g. names and addresses of bookstores), and i want to display the opening hours in a tooltip onmouseover. The information i want to show onmouseover is in a TemplateField which Visible porperty is set to false.
How can i achieve that? Must i use javascript and css ?
Thanx
...
hi i am using a treeview control in my page i am binding the treeview with the datatable
i need to use javascript to get the selected node value on the tree in a button click.
how to do this
...
I am trying to crop an image. I have found multiple ways to do this, however none are performing how I would like. Once the image is cropped, I am sending it to a PDF generator. If I send the normal jpg, it works fine, however if I crop the image, it does not come through to the PDF in the correct size. I think it might be to do with res...
I'm loading a DLL via System.Reflection.Assembly.LoadFile and reflecting over it's members in a plugin-esque system.
I need to be able to update/overwrite these DLL while the system is running but it appears that after calling System.Reflection.Assembly.LoadFile the file is subsequently locked.
Does anyone know of a way to unlock the fil...