Solved

Confirmation of delete alternative to JavaScript

Posted on 2011-03-24
2
454 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now