473,413 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

ModalPopUp AJAX

Hi All,
I have to implement modelpopup.I am using masterTemplate.
the code :

Expand|Select|Wrap|Line Numbers
  1. body {
  2. font:normal 10pt/13pt Arial, Verdana, Helvetica, sans-serif;
  3. color:#666666;
  4. margin:20px;
  5. }
  6.  
  7. /*Modal Popup*/
  8. .modalBackground {
  9. background-color:#ffffff;
  10. filter:alpha(Opacity=100,FinishOpacity=0,Style=2,StartX=400,StartY=100,FinishX=0,FinishY=0);
  11. opacity:0.8;
  12. }
  13. .modalPopup img {
  14. border:solid 5px #fff;
  15. }
  16. .modalPopup-text {
  17. display:block;
  18. color:#000;
  19. background-color:#fff;
  20. text-align:center;
  21. border:solid 2px #000;
  22. padding:10px;
  23. }
  24. .modalPopup-text input {
  25. width:75px;
  26. }    
  27. .feedback
  28. {
  29. color: #00cc00;
  30. font-weight: 700;
  31. }
  32. /////////////////////////////
  33. <ajaxToolkit:ModalPopupExtender ID="MPE" runat="server"
  34.          TargetControlID="btnChooseAnother"
  35.          PopupControlID="popUpPNL"     
  36.          DropShadow="false" 
  37.          OkControlID="btnOK" 
  38.          OnOkScript="onOk()"
  39.          CancelControlID="btnCancel"
  40.           BackgroundCssClass ="modalBackground"
  41.            X="400"
  42.             Y ="100" >
  43.  
  44.          </ajaxToolkit:ModalPopupExtender>         
  45.        <script type="text/javascript">
  46.     function onOk() {
  47.         var postBack = new Sys.WebForms.PostBackAction();
  48.             postBack.set_target('btnOK');
  49.             postBack.set_eventArgument('');
  50.  
  51.             postBack.performAction();
  52.     }
  53. </script>
  54.  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  55.  
  56.         Page.ClientScript.GetPostBackEventReference(Me, String.Empty)
  57.     End Sub
-----------------------------
The problem I m facing here:
1.Whenever popup opened the size of main page increased.
2.When ever I am clicking OK button JavaScript error showing object refence not found.
Plese Help.

Regards,
Manohar
Mar 6 '08 #1
3 2332
Hi All,
I want to have some information about ModalPopupExtender.
How to control the background page Locking Area.

Regards,
Manohar
Mar 6 '08 #2
acoder
16,027 Expert Mod 8TB
Since ModalPopup is .NET-related, I'll move this thread to the .NET forum.
Mar 6 '08 #3
Hi All,
At least can I have any info about the selection of something on the popup scren and based on that doing something on parent page.

Regards,
Gyanendar
Mar 7 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Darth Continent | last post by:
Hello, I'm trying to replicate the functionality presented here specific to the ModalPopup control: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx I've created a C# Ajax-enabled...
0
by: Nemisis | last post by:
Hi everyone, Does anyone know how to show an Ajax ModalPopup when a page loads? I would like to use it as a warning dialog for a company record, so that when a user navigates to a companies...
1
by: shaizaban | last post by:
hello, my question is as follows (very urgent): i generated in an aspx page a modalpopup ajax control. i inserted a user control into the panel contained in the popup control. the panel contains...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: Jamie Sutherland | last post by:
Hi , On my page I have updatepanel 2 buttons, 2 modalpopup extenders panel with a updatepanel and some textboxes in it. I want to use the 2 buttons to open the same panel using the...
1
by: gsauns | last post by:
I have a DetailsView inside a ModalPopup (using the AJAX ModalPopupExtender). I would like the user to have the ability to change the DetailsView's mode within the ModalPopup. But whenever I...
2
by: Ben | last post by:
Hi, i'm trying to get an AJAX modalpopup to confirm if a user really wants to change a dropdown list value (on the client side) -- if they choose 'No' in the popup, the dropdown list value...
0
by: pechar | last post by:
I've posted this in the AJAX section but was told I'll have more luck here so : Hi all, First of all I've searched the net but with no luck. My problem is I have a master/detail webform. i.e....
2
by: E11esar | last post by:
Hi there. I am utilising a ModalPopupExtender in my ASP.Net (C#) page, to act as a dialog box so a user can either select from a dropdown list or perform a search for an item. This all works...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.