Solved

PostBack on OKButton click AJAX Modal PopUp Extender - ASP.NET

Posted on 2011-09-07
2
1,732 Views
Last Modified: 2012-05-12
Hi,

I have a modal popup extender control in my ASP.NET application. I set its property "popupcontrolid="Panel1". Where Panel1 is having OK and Cancel Buttons. I want to postback when OK button is clicked and do NOT want to postback when CANCEL button is clicked. I set modal popup extender control properties like this too:

okcontrolid="OkButton"
cancelcontrolid="CancelButton"

Can you please provide me the code for that ?

Thanks
0
Comment
Question by:milani_lucie
[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 9

Accepted Solution

by:
Grant Spiteri earned 250 total points
ID: 36499800
0
 
LVL 7

Assisted Solution

by:gopaltayde
gopaltayde earned 250 total points
ID: 36516099
<asp:Button ID="OkButton" runat="server" onclick="OkButton_Click" Text="Ok" />
<asp:Button ID="Button1" runat="server" OnClientClick="javascript:return (false);" Text="Cancel" />

instead of return (false); write a javascript function which will close the popup.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

628 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