Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

message box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bbdobuddy - 19 Jul 2005 21:36 GMT
Hi,

I have an application in which before they move to a different form.  I
would like a message box to pop up to ask them if they want to save their
changes but I can't figure out how to accomplish this.  Any help would be
appreciated

Regards
Brian
Scott M. - 19 Jul 2005 22:08 GMT
Then only way you could accomplish this would be with client-side
JavaScript, since only the browser knows that the url is changing.

> Hi,
>
[quoted text clipped - 5 lines]
> Regards
> Brian
Sreejith Ram - 19 Jul 2005 22:24 GMT
This is discussed in detail @ following thread

http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.fra
mework.aspnet&mid=79ba970f-d62d-481e-9fb6-4eb114ed0446&sloc=en-us


> Hi,
>
[quoted text clipped - 5 lines]
> Regards
> Brian
Steve C. Orr [MVP, MCSD] - 20 Jul 2005 07:48 GMT
Here's some server side code that uses javascript to display a confirmation
message.

myDeleteButton.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")

In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise the server code is never called in
response to the button click.

Here's a more detailed analysis of your options, including a free control
that can handle many of the options for you.
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

> Hi,
>
[quoted text clipped - 5 lines]
> Regards
> Brian

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.