Click here to Skip to main content
15,885,757 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: fire alert box from the button event Pin
Guffa12-May-06 20:24
Guffa12-May-06 20:24 
QuestionPopup window - avoid or ok to use these days? Pin
Member 9612-May-06 6:22
Member 9612-May-06 6:22 
AnswerRe: Popup window - avoid or ok to use these days? Pin
il_manti12-May-06 6:27
il_manti12-May-06 6:27 
GeneralRe: Popup window - avoid or ok to use these days? Pin
Member 9612-May-06 6:46
Member 9612-May-06 6:46 
AnswerRe: Popup window - avoid or ok to use these days? Pin
minhpc_bk12-May-06 7:41
minhpc_bk12-May-06 7:41 
GeneralRe: Popup window - avoid or ok to use these days? Pin
Member 9612-May-06 8:24
Member 9612-May-06 8:24 
AnswerRe: Popup window - avoid or ok to use these days? Pin
V.12-May-06 9:54
professionalV.12-May-06 9:54 
QuestionCaching? Problems with dataset... Pin
il_manti12-May-06 6:19
il_manti12-May-06 6:19 
OK, im working on an assignment and I'm running, running, running my web application like crazy. Mod a line, run... mod another 3 lines, run.

Suddenly I realize that my dataset (being filled from a mysql database on load of the ASP.NET web application) seems to be caching my data. I don't know if that's what it's actually doing but sometimes I'm stuck with old data until I wait sometime and re-run.

Now as much as MS thought this was a great idea, it's really bugging me. My friend told me to kill the aspnet_wp (worker process i suppose) when it happens and it works. BUT:

my problem is this: since this is an assignment I need to submit and leave with my lecturer and because my diploma is hanging on this assignment I need to find a fail-safe work-around to this. Don't want it happening to my (less then bright, let me tell ya this) lecturer and get a big, old FAIL!

So I thought... great... I'll kill it programmatically on Session_End in the <font color="blue">Global.asax</font> file but it ain't working. This is my code:

foreach (Process p in Process.GetProcesses())<br />
{<br />
	if (p.ProcessName.Equals("msnmsgr.exe"))<br />
	{<br />
		p.Kill();<br />
		break;<br />
	}<br />
}


Thanks a lot... you'll save my life :/

In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

-- modified at 12:20 Friday 12th May, 2006

Just so you know, I've been trying to close msnmsgr.exe first to be sure it works coz aspnet_wp restarts as soon as it's killed. This way I'll know it's working and then I'll just replace msnmsgr with aspnet_wp
AnswerRe: Caching? Problems with dataset... Pin
Member 9612-May-06 6:49
Member 9612-May-06 6:49 
AnswerRe: Caching? Problems with dataset... Pin
minhpc_bk12-May-06 7:38
minhpc_bk12-May-06 7:38 
GeneralRe: Caching? Problems with dataset... Pin
il_manti12-May-06 9:41
il_manti12-May-06 9:41 
Questionsave and submit buttons Pin
Bhasker Pinninti12-May-06 5:56
Bhasker Pinninti12-May-06 5:56 
Questionconverting Pin
ptvce12-May-06 5:56
ptvce12-May-06 5:56 
AnswerRe: converting Pin
_AK_14-May-06 18:44
_AK_14-May-06 18:44 
QuestionMoving ASP.net website to Internal Server Pin
Bustum12-May-06 5:22
Bustum12-May-06 5:22 
AnswerRe: Moving ASP.net website to Internal Server Pin
RichardGrimmer12-May-06 5:48
RichardGrimmer12-May-06 5:48 
QuestionBrowserCompatability Pin
Parvathivadde12-May-06 3:18
Parvathivadde12-May-06 3:18 
Questionlogin problems in asp.net Pin
amaneet12-May-06 2:25
amaneet12-May-06 2:25 
AnswerRe: login problems in asp.net Pin
scott987uk12-May-06 2:35
scott987uk12-May-06 2:35 
GeneralRe: login problems in asp.net Pin
amaneet12-May-06 2:37
amaneet12-May-06 2:37 
GeneralRe: login problems in asp.net Pin
scott987uk12-May-06 2:42
scott987uk12-May-06 2:42 
Questiondatalist problem in asp.net Pin
amaneet12-May-06 2:17
amaneet12-May-06 2:17 
AnswerRe: datalist problem in asp.net Pin
Nitin198112-May-06 21:51
Nitin198112-May-06 21:51 
QuestionDynamically adding buttons and there events Pin
scott987uk12-May-06 2:07
scott987uk12-May-06 2:07 
AnswerRe: Dynamically adding buttons and there events Pin
minhpc_bk12-May-06 6:33
minhpc_bk12-May-06 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.