[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

JavaScript Pop up box in C#

Posted on 2012-04-09
3
Medium Priority
?
258 Views
Last Modified: 2012-04-09
I don't want a JavaScript pop up box to be attached to any event.  I just want it to show in my OnRowDeleting() event in a GridView.  I have some code that runs and at the end I just want to embed JavaScript to show a pop up box to show the user a message.
0
Comment
Question by:zintech
[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
3 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 37824017
Do you just want a javascript alert box to appear when the page returns after the Delete event finishes? You can add this to the successful completion of your RowDeleting sub.

ClientScript.RegisterClientScriptBlock(this.getType(), "alertScript", "alert(\"Delete Successful\");", true);
0
 

Author Comment

by:zintech
ID: 37824224
I am having issues with the "this.getType()" argument in the method.  I don't have a method that has the getType() name and I don't know which type of System.Type to use for it to work
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 2000 total points
ID: 37824281
Just a typo,it's supposed to be this.GetType(). GetType is a built-in method.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

649 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