.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
AndyV
webmaster
SOHINI DASGUPTA
Post New Web Links

How to freeze the background page when modal popup window called

Posted By:      Posted Date: November 01, 2010    Points: 0   Category :ASP.Net
 

Hi,

when i call modal popup extender the background is scrolling , i want to freeze the background page then
 is there any properties or any other idea to get this .. 




View Complete Post


More Related Resource Links

modal popup and background page not grayed out.

  

Hi,

using .net 4.0 and trying to open a modalpopup with grid loading; it pops up but doesn't grayout the rest of the page, allowing more clicking on the grid. I want the page to grayout with modalpopup and disable any further activity until the grid is loaded.

Please help me if you can.


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
    <script type="text/javascript" language="javascript">
        var ModalProgress = '<%= ModalProgress.ClientID %>';
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq);

        function beginReq(sender, args) {
            // shows the Popup
            $find(ModalProgress).show();
        }

        function endReq(sender, args) {
            //  shows the Popup 
            $find(ModalProgress).hide();
        }
        function CallPrint(url, window) {
            window.open(url, window, 'left=0,top=0,width=900,height=600,toolbar=1,scrollbars=1,status=0');
        }
    </script>  
    <div>
		    <asp:ModalPopupExtender ID="ModalProgress" runat="server" BackgroundCssClass="modalBackground" PopupContro

Modal popup window in ASP.Net

  
A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

Open different page using Ajax Modal PopUp Extender Control

  
The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Datalist and Ajax control toolkit Modal Popup window

  
Hi friends I have created list of thumbnail images in datalist and on clicking image i want to pass image name to Ajax control toolkit Modal Popup window which display bigger image.   Please help me.

refreshing (reloading) the self page when it opens the popup window

  
silbut = e.Item.FindControl("button4")         silbut.Attributes.Add("onclick", "window.open('firmaus.aspx?i=" + rrid.Text + "&s=" + Session("firma").ToString + "')") Hi all,I add an attribute on data bound event to the datalist with following codein studentlist.aspx page :deletebutton = e.Item.FindControl("button4")deletebutton.Attributes.Add("onclick", "window.open('studentus.aspx?i=" + rrid.Text + "&s=" + Session("studid").ToString + "')")but i want deletebutton to refresh parent page (studentlist.aspx) when i click it, with openning the page (studentus.aspx...)how can i add this attribute?thanks for helps.

show asp.net modal popup on page load event?

  
 hi,   I have placed an asp.net modal popup extender on my page. it works fine when a button is target controlId but I want to show it when user enters page. so I put the below in the page load event but nothing happens (ie6) pnlModal_ModalPopupExtender.Show(); Is this the right way?   thanks  

javascript window.history.back() issue with Modal popup extender

  

Hi,

I have a asp.net page that has a list of items. When one of the items from the list is clicked a details page is displayed. This details page has a link button to show a popup for history of the item. The details page also has a button with text 'Back'.  The back button has onclick event set to  "javascript:window.history.back();".

This back button works fine and goes back to the first page. However when the user is on the second page and opens the pop up by clicking on the link button, the back button stop working and displays Webpage has expired message.

Any help would be appreciated.

Regards,

Steve.

 


Make modal popup scroll with page

  

I've got a modal popup and when it loads contents that are taller than the browser height I am unable to scroll down to view the rest of the information. Instead the background can scroll but the popup won't, I'd like to have the popup stay in place so the users can see the bottom of the modal.


Close a Popup Window page from Code Behind

  

Good Morning,

I am using the ClientScriptManager class to call a java alert from Code Behind when a condition is not met. This is being done from a page that is already a JavaScript pop up. When the alert is responded to, I want the script to close both the alert AND the page that generated the alert. Everything works as designed until I close the alert window...THEN the user is also forced to close a second page (the original generating page for the alert) to return to the starting point. This seems cumbersome and unprofessional. I Googled a bunch of stuff but cannot seem to come up with just the right one. What I have currently is below. I appreciate any assistance...Thank You, Pat

        if (RadioButtonSelect.Checked == false)
{
string msg = "My String";
ClientScriptManager script = Page.ClientScript;
if (!script.IsClientScriptBlockRegistered(this.GetType(), "Alert"))
{
script.RegisterClientScriptBlock(this.GetType(), "Alert", "alert('" + msg + "')", true);

Customising the Metadata capture Modal popup window

  

Hi,

Can I customise the standard SharePoint modal window where the user specifies the metadata of a document before saving? I need to put in a tree view type meta navigation.

Can I do this?

Juran


'calendarShown' is undefined - Got it to show up in modal popup (on one page)

  
I managed to find the way to get the calender to show in a modal popup by searching the forum.  However, I now have a problem in which the calendarShown function throws an error.  

 

The strange thing is that it works fine on one page of my website - no error and the calendar shows up but on the other it throws the 'calendarShown' is undefined on page load.  Then the calendar doesn't show up.  I've gone as far as copying the exact function from the working page and pasting it in to the non-working page.  Still get the same error!!!

 

<asp:TextBox ID="txtEffDate" Width="100px" MaxLength="10" runat="server" onkeyup="enableAddSave();" ></asp:TextBox>
								<cc2:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtEffDate" OnClientShown="calendarShown"></cc2:CalendarExtender>


 

 function calendarShown(sender, args)
  {
  	sender._popupBehavior._element.style.zIndex = 10005;
  }


Anyone run in to this problem??

 


Refreshing thumbnail image on parent page on body unload of popup window

  

Hi, I am facing a problem in refreshing the thumnail image on parent page after body unload method of popup is called.

Below is th JS function I am calling on body unload of popup. Please note that parent window is refreshing but image thumbnail still shows old image. After I refresh the page for second time I see the new thumbnail.

Thannks & Regards

  function refreshParent() {
        window.opener.refresh();
   }

 

 

 

 


Selected to change the background color of the page

  

Hi,

As this site, http://www.borfin.com.tr/genel/Default.aspx, How can I change the background color selected pages.


Open PopUp Window From Error httpModule

  

I would like to open a popup window from the assembly to present the information to the user. Does anyone know if this is possible, I am presently doing the following:

HttpContext.Current.Response.Clear()
HttpContext.Current.Response.ClearContent()
WriteLine("<HTML>")
        WriteLine("<HEAD>")
        WriteLine("<TITLE>")
        WriteLine(FormatDisplayString(strPageTitle))
        WriteLine("</TITLE>")
        WriteLine("<STYLE>")
        WriteLine("body {font-family:""Verdana"";font-weight:normal;font-size: .7em;color:black; background-color:white;}")
        WriteLine("b {font-family:""Verdana"";font-weight:bold;color:black;margin-top: -5px}")
        WriteLine("H1 { font-family:""Verdana"";font-weight:normal;font-size:18pt;color:red }")
        WriteLine("H2 { font-family:""Verdana"";font-weight:normal;font-size:14pt;color:maroon }")
        WriteLine("pre {font-family:""Lucida Console"";font-size: .9em}")
        WriteLine("</STYLE>")
        WriteLine("</HEAD>")
        WriteLine("<BODY>")
        WriteLine("<H1>")
        WriteLine(FormatDi

Problem when displaying a popup window

  
Hi all,
I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages.
But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that there is an error in webpage and want to debug

want to launch modal Popup from created User Event handler

  

hi,

 

I have a create user wizard on my page and in the event handler (Created User) I get extra information from the user

via textboxes within the aspx etc.

 

I then do a response.redirect to another page.

What I want to happen is this

 

When the CreatedUser Event is fired, I  want a Modal Popup to show up with a message Processing your registration.

once the registration code is processed it will close and the users get redirected.

 

On my ASPX I have the Modal PopUp and a Panel.

In the code behind in the handler I put ModalPop.show()

 

but this does not work.

 

thanks for any suggestions

 

 


How to pass paramters to Jquery modal window

  

Hi I have a webpart in a page in which there is a gridview(which shows list of customers). When I click on a link button in gridview, I would like to popup a JQuery modal window and fill the popup(this contains textboxes, then a gridview which contains mapped systems for thet customer, and another gridview which contains list of configured reports for that customer) with the details based on the customer name(link) clicked. Here I need to pass the customer Id and customer name parameters based on which I can fill the Jquery modal window.

Can any one have an idea to pass parameters to JQuery modal window in order to fill the contents inside it?


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend