Hello,
I am opening a ASP.NET page, starting a thread, and would like that thraed to continue running UNTIL the page is closed. How would I stop this thread upon closing the page?
Steven
Thanks for the tips guys, this now leads me to another question.
I have decided to go with Isadore's approach and do a clean up at the end of a session. My question now is, how do I see when the function
protected void Session_End(Object sender, EventArgs e)
{
//code ...
}
gets called...
Is there some event that lets me know when the page has been closed. My problem is I want to delete all files that were created during a viewing of a web page. What is the best way of doing this?
Steve
I want to run a command like "dir" or "del <filename". How do you do this in C#? In C\C++ you can do a System(cmd); What is the C# equivalent?
Steven
I have an array of bytes which should make up a double.
double val;
byte[] doub = new byte[8];
doub[0] = arraybytes[20];
doub[1] = arraybytes[21];
doub[2] = arraybytes[22];
doub[3] = arraybytes[23];
doub[4] = arraybytes[24];
doub[5] = arraybytes[25];
doub[6] = arraybytes[26];
doub[7] =...
I have a hashtable and a value that matches up with a key. Is there an easy way of getting the key from the value? (Without search through all values to find the index)
Or is a SortedList better from going back for forward between keys and values?
Steven
How come this will not work?
DECLARE @TableName VARCHAR(40)
SET @TableName = 'analog'
SELECT * FROM @TableName
Server: Msg 137, Level 15, State 2, Line 5
Must declare the variable '@TableName'.
How could I get around this?
I am currently using the code to open a window.
<a href="javascript:void(0)" onClick="window.open(link, null, 'menubar=no')">link</a>
I was hoping that once I clicked a link, it would open a new window. Then if a clicked another link, it would open another new window...
Now this leads me into another question...
I was hoping that once I clicked a link, it would open a new window. Then if a clicked another link, it would open another new window, instead of replacing the first window with the new page.
Would anyone know how to do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.