?
Solved

JavaScript Pop up box in C#

Posted on 2012-04-09
3
Medium Priority
?
250 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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

764 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