|
Just an idea, but maybe you can raise an event in the first user control, handle it in the aspx page and then set a property or execute a method in the second user control from within the eventhandler in the aspx page
|
|
|
|
|
hi friends
When I went the memory usage (through task manager) for a particular application pool, initally it shows let us assume 10000K. After each instance of web application, it keeps on incrementing, and if one closes the brower or log out the application the memomy usage remains the same, its not getting decreases as expected.
Is there any way to release the memory what the particular instance of web appln. uses when one logs out or closes the browser.
Abhishek
Mumbai, India
|
|
|
|
|
1) There is no way we can determine from server side user closed the browser or not.
2) You can set the Application pool to recycle itself based on various citerias so that it will relase memmory once it reached a predefined value.( Applicatio Pool> right click properties > Recycling)
3) Question : Do you have any idea how your application is filling up this much of memory ?.. You can also add a clean up script in the Session _end Event in the global.asa.
Note : This event will fire only if you are storing your session in InProc
Thanks
Laddie
Kindly rate if the answer was helpful
modified on Thursday, March 6, 2008 5:41 AM
|
|
|
|
|
Thanks Laddie.
But if we recycle manually, it will logout all the users.
Any other way to release the memory.
and how can we clean up in session_end event.. and one more thing
we are not using any session varaibles. We have an integrated application
and the session variables are created in asp page and that session variables v are using in our dot net page.
Abhishek
Mumbai, India
|
|
|
|
|
You dont have o do this manually. You can schedule it to get it run from the application pool pproperties.
What is criteria of loging out users if you are not storing nothing in session?
What i mean y cleaning up in Session_End is that in case you are using any COM objects or something you have a chance to relase them from memory.
Or may be force a GC.(Of course for GC is not recommened)
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
How ,I select multiple items in Listbox when page loads, the data is first loaded from database and then items at index 2,4,5 is selected automatically.
|
|
|
|
|
hold down ctrl and select them
|
|
|
|
|
|
if(ListBox1.Items[2] != null)
ListBox1.Items[2].Selected = true;
if(ListBox1.Items[4] != null)
ListBox1.Items[4].Selected = true;
if(ListBox1.Items[5] != null)
ListBox1.Items[5].Selected = true;
|
|
|
|
|
I knew this method, but it is not working.
|
|
|
|
|
chanu007 wrote: but it is not working.
Define "not working"
|
|
|
|
|
maybe you should visit that magic portle of www.google.co.uk and try searching yourself
|
|
|
|
|
there should not be menu popup when user right click on the page how to do that?
|
|
|
|
|
|
|
Hi All
Can any body help me to access asp.net serverside textbox or public string at client-side by using vbscript code.
Here I am trying to use document.getElementsByName("<%=txtAddress%>").value and
document.getElementsByName('<%=txtAddress%>').value. Both are not working please help me.
Thanks,
Aleem Moahammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
indian143 wrote: txtAddress
This is an object right? Did you try using one of its Value or Text properties, as applicable?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
see control name when page render by view source and use that name
|
|
|
|
|
how to restrict user to save any page of website
|
|
|
|
|
|
can we disable save as option in browser's toolbar so that they user cannot download page
|
|
|
|
|
You can not.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
There is no efficient and fool-proof way to protect the content once it lands on to the Internet highway. Perhaps you can obfuscate the content, use SWF or ActiveX to obscure the data from prying eyes making it difficult and harder for them reading.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I'm receiving this error when trying to open a popup page from a custom control.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type MyNameSpace.MyDll.MyClass'.
Line 1: <%@ Page language="c#" Codebehind="MyClass.aspx.cs" AutoEventWireup="false" Inherits="MyNameSpace.MyDll.MyClass" %>
Source File: c:\inetpub\wwwroot\MyVirtualDir\MyClass.aspx Line: 1
Could anyone help me with this?
Regards,
Blumen
|
|
|
|