|
babbelfisken wrote: My problem is to detect when a browser is closed so i can run the same code when the user presses the Logout button..
You might want to look at the onbeforeunload[^] event in Javascript. Be aware that it will also fire when the page is posting back, or the back/forward buttons are pressed too, so you need to set some sort of flag to say that the page is moving on because of a valid reason, or not.
|
|
|
|
|
Hmmm - there's a possibility that you could implement it so that the onbeforeunload changes the session timeout (I'm winging it here so I could be wrong) to 1 minute and then you would reset the session timeout based on another page in your site loading.
|
|
|
|
|
Pete O'Hanlon wrote: onbeforeunload changes the session timeout
that's a javascript event so you don't have access to the Server based Session Timeout
Colin Angus Mackay wrote: look at the onbeforeunload[^] event in Javascript.
led mike
|
|
|
|
|
led mike wrote: that's a javascript event so you don't have access to the Server based Session Timeout
I was aware of that, but you do with a quick Ajax call though.
|
|
|
|
|
Pete O'Hanlon wrote: but you do with a quick Ajax call though.
I had never tried that on closing the browser so I coded it up and yes of course you are correct. First Web Dev I've done in like two years!
led mike
|
|
|
|
|
Yep, I've used this technique on a few occasions. Not perfect, but it works.
only two letters away from being an asset
|
|
|
|
|
led mike wrote: First Web Dev I've done in like two years
And was it as painful as you remember?
|
|
|
|
|
Pete O'Hanlon wrote: And was it as painful as you remember?
Oh yes
led mike
|
|
|
|
|
led mike wrote: Pete O'Hanlon wrote:
And was it as painful as you remember?
Oh yes
That'll larn ya.
|
|
|
|
|
how i can read and write from .rex file by hard code ?
123
|
|
|
|
|
A quick google makes me think no-one has written anything, so I'd say you're on your own. Read up on the file format, and write the code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You have to be more specific. I found at least six different file formats with the extension .rex.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I thought I knew what he meant, but I think I was thinking of lex
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Open up the file and read the bytes in. Without knowing more about the file format, there's not a lot we can do to help I'm afraid.
|
|
|
|
|
Find out what the .rex file format holds and try to write code for it yourself. Google didn't show this as being really done. A binary editor can help you look at patterns and fields in the file format as clues. Good luck to you
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi there,
I wrote a program to connect the computer to a mobile over bluetooth but the bluetooth device on the computer is USB, and the program need the software of the bluetooth to be uninstalled ,the device won't be seen by the computer at all ,
what I can I do ? in order to enable my computer, using the USB bluetooth, to connect to the mobile ,
Thanks
There is always something to learn
|
|
|
|
|
Knowledgestudent wrote: the program need the software of the bluetooth to be uninstalled
Say what ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think he's talking about the driver.
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
You need to install the drivers that came with the USB Bluetooth Dongle. If it didn't come with any, go to the manufacturer's web site and download them from there.
Sometimes, Windows will install drivers automatically for you but they never seem to work sucessfully so I wouldn't rely on those.
Dave
modified on Thursday, February 28, 2008 8:57 AM
|
|
|
|
|
The thing is:
the program is completely right,
it's function is to search for bluetooth enabled devices (e.g mobiles)
but where it is supposed to perform the search operation it finds no devices , (returns null)
after I had searched about that , I read some where that the problem might be because of:
that the program can not see the Bluetooth deriver on the computer and I may have to uninstall the deriver of the USB Bluetooth Dongle(that comes with)
so the Windows install it automatically , in order that my program can see it(use the USB Bluetooth Dongle
I had did, I uninstalled the deriver that came with , and let the windows to install it and I got the same result ,
what do you think I can do so I make my program to run successfully
note : the same result even when I installed the deriver that came with USB Bluetooth Dongle.
Thanks
There is always something to learn
|
|
|
|
|
|
Thank you , I am trying it now
Thanks again
There is always something to learn
|
|
|
|
|
hello,
i'm trying to bind the combobox in context menu, but there is nothing when open it
code:
comboBoxItem1.ComboBox.DataSource = null;
comboBoxItem1.Items.Clear();
comboBoxItem1.DropDownWidth = 100;
ArrayList MYAL = new ArrayList();
for (int a = 0; a < 2; a++)
MYAL.Add(new Items(a.ToString(), a));
comboBoxItem1.ComboBox.DataSource = MYAL;
comboBoxItem1.ComboBox.DisplayMember = "Name";
comboBoxItem1.ComboBox.ValueMember = "Value";
comboBoxItem1.ComboBox.SelectedIndex = -1;
this code is working on a non-contextmenu combobox
any idea?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Where do you call this code ? I'd call it just before the menu is shown. There's an event for that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
this code is in Load event of form
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|