MessageBox on the client?
-
Hi! I really need to find a simple way to produce a messagebox, similar to that one would use in a standard windows application before deleting items, saving och closing or whatever. I used to do this in ASP by using JavaScript on the client (alert...) but I thought I would not have to bother with that now. I've been searching through the SDK several times and still can't find anything usefull. The MessageBox I found seems to work only in Windows applications, not in browsers. Has anyone seen, heard or done anything that might help me? Consultant, system/web developer. IMS Consulting AB, Sweden
-
Hi! I really need to find a simple way to produce a messagebox, similar to that one would use in a standard windows application before deleting items, saving och closing or whatever. I used to do this in ASP by using JavaScript on the client (alert...) but I thought I would not have to bother with that now. I've been searching through the SDK several times and still can't find anything usefull. The MessageBox I found seems to work only in Windows applications, not in browsers. Has anyone seen, heard or done anything that might help me? Consultant, system/web developer. IMS Consulting AB, Sweden
ASP.NET is a server-side thing. To do anything like that you're still going to have to rely on client-side script. If you want you could roll your own MessageBox component that you could place on your ASPX pages and use like the Windows version, but in the end it'll have to call down to alert as well. I also have no experience in doing such a thing :p James
-
ASP.NET is a server-side thing. To do anything like that you're still going to have to rely on client-side script. If you want you could roll your own MessageBox component that you could place on your ASPX pages and use like the Windows version, but in the end it'll have to call down to alert as well. I also have no experience in doing such a thing :p James
Hi! Thanks :) I've managed to create a messagebox component but I immediately ran in to further problems: If I want to prompt the user for confirmation or input, how do I get the value back to the server? As you pointed out I'll be needing to use scripting inside the component, but I still can't figure out how to get the values back from the client immidiately. I realise you are not experienced in this (nor am I), but I thought I might as well elaborate on my thread so that maybe someone else can supply more information :) Consultant, system/web developer. IMS Consulting AB, Sweden
-
Hi! Thanks :) I've managed to create a messagebox component but I immediately ran in to further problems: If I want to prompt the user for confirmation or input, how do I get the value back to the server? As you pointed out I'll be needing to use scripting inside the component, but I still can't figure out how to get the values back from the client immidiately. I realise you are not experienced in this (nor am I), but I thought I might as well elaborate on my thread so that maybe someone else can supply more information :) Consultant, system/web developer. IMS Consulting AB, Sweden
I think the easiest thing to do, would be to redirect to a confirmed page. I think this is what hotmail does in its Junk Mail folder's "Empty Folder" command. You click the button to empty the folder, that brings up the confirmation Alert box, without moving to another page. If you click ok, it then goes to the confirmed (delete all from folder) page. I think if you click cancel it does nothing, but I've never cancelled that dialog before :-D HTH, James Sonork ID: 100.11138 - Hasaki and a digital cookie (not chocolate chip, its computer chip) goes to whoever can be the first to tell me what Hasaki means. I know someone registered on here can tell me :)