Solved

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

Posted on 2011-09-07
2
1,651 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

18 Experts available now in Live!

Get 1:1 Help Now