Solved

Confirmation of delete alternative to JavaScript

Posted on 2011-03-24
2
461 Views
Last Modified: 2013-12-17
I have an asp.net link button (changing to an asp:button if javascript is disabled) for deleting an item and I want to prompt the user for confirmation prior to deletion.  I found a lot of things online about adding javascript into the onclick property of the button(s) and thats fine, I'm pretty familiar with that.

However, I need to have the site conform to the accessibility guidelines, meaning if javascript is turned off, the above option wouldn't work as the onclick, etc, is dependant on javascript - correct? (I know this is true for HTML, but does the runat="server" change this rule?)

Is there any server side option in C# i.e. equivalent of the messagebox in windows forms, which doesn't require javascript?  Or is my only option to submit the page and in the page_load have something that dynamically creates a confirm button or something?

Whether this makes any difference or not, I'm developing for ASP.NET 4.0.
0
Comment
Question by:sbickerstaff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 35206734
Unforunately the only way you are going to be able to achieve that without using client script is to submit your form, have the server bounce you to a confirmation page, and then submit again.
0
 
LVL 3

Author Comment

by:sbickerstaff
ID: 35206823
Yeah, I thought that might be the only way.  I was hoping I was wrong thoguh.

Finding the same problem with FormView, GridView, etc.  Insert / update options stop when JavScript is disabled.  Having to code my own versions to make them accessible.
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question