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


Top 5 Contributors of the Month
david stephan
Post New Web Links

modal window in asp.net

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :ASP.Net
 
Hi! i have popup windows which are opened using window.open() property. Now, i want them to work them as a modal box. I should have OK and CANCEL button on the popup windows where the OK button passes the selection of the listitems of that modal window to the paret page and itself is closed. The CANCEL button should close the modal box  without passing any value to the parent page. How do i do it plz?


View Complete Post


More Related Resource Links

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.

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?


Closing Javascript Modal dialog window after server side event processing

  

Hello Friends..


Please tell me how to close Javascript ModelDoalog Window.. after Server Side event Processing .

Basically i want close window in  finally Block After sucessfulll Updation.


AMit..... InnocentInnocentInnocentInnocentInnocentInnocentInnocent


WPF Window as Modal Dialog, strange behavior

  
Hopefully someone has a clue.... My application displays WPF Window as a modal dialog box. The dialog box has a few child user controls, one of which has combo box. When the user clicks this combo box to select... the whole dialog disappears except of the innards of the combo box. So the user only sees the list box of the combo box. Here are the details I got from the  client: The window itself is launched from non WPF application (Lotus Notes). This happens only on a few machines. The OS is Windows XP SP3. There is no issue with the parent handle, windows owner, etc... I've seen this behavior during the development phase, only when running under a debugger.    Thanks, Michael        

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.

Does the ReportViewer control print button work inside of a modal MSIE window?

  
I am getting the following two error messages when using the new ReportViewer v10 control after pressing the toolbar print button. I am only seeing this error inside of a modal popup window in MSIE. The print button in a normal popup window doesn't have this error. An error occurred trying to get the current window Error: Could not complete the operation due to error 8007f305. If anyone knows of a quick fix, please let me know. Thank you. VS2010, MSIE 8, SQL Server 2008.

How to prevent collapsible panel from closing modal window

  
I have a collapsible panel extender inside a modal window, my problem is that whenever I click on the link button (to expand my panel), the window closes. Does anyone know of a way to avoid this?

Retain previous selection in a modal window when it is reopened within same session

  
Hi ! I have a modal which have a listbox inside it. I am passing the values through a session to the parent page. Suppose, i made few selections on the modal page and i closed it. I want to see the same selection on the modal page once i reopen the modal window Is there any possibility to retain the previous selection in a modal window? I used <body onload="window.focus();" onblur ="this.focus" > but this doesn't work Any idea please?  

Modal Window won't close

  
I have a linkbutton at the end of each record of a gridview that has a client side javascript invoked on the OnClientClick event. It displays a popup modal window. This is applied to each record in the gridview databound event. lnkbtnAppts.OnClientClick = String.Format("javascript:window.showModalDialog('CAPAC_Appointments_Modal.aspx?Client_Name={0}&Client_SR={1}','','dialogWidth:800px; dialogHeight:600px; center:yes');", Client_Name, Row_SR) On the modal window, I have a standard server side button, with attributes applied to run a client side javascript to close the popup window. Seems fair enough! btnClose.Attributes.Add("onclick", "javascript:window.top.close()") The problem is it closes the window, but the popup immediately appears again. The second time I can close the popup window? Not good! 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.

 


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


Problem with Modal Window and Iframe

  

I have a web page with a link that opens a modal dialog.Im using ajax toolkit. Asp.net 2.0

On the web page I have an iframe displaying some content. When I click on the button to show the modal box it appears behind the iframe in some browsers. In IE 8 it show in front of the iframe. In others its located behind out of view.


How do I fix this so it always appears on top?


How to freeze the background page when modal popup window called

  

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 .. 


lossing focus from model pop up window controls

  

hi i using a model pop up window with some textbox but when i click on textbox of model pop up focus move to back to page textbox control plz help me 


Pass a grid column value to a Modal

  

Hi, I have a requirement to hide a field called details on a gridview and show it in a jQuery modal dialog when users click on the Customer ID hyperlink. This grid is created programmatically. I will be hiding the details column via the CSS display:none property. Does some one know how can I pass the grid's selected hidden column value to the modal? Here is some of the code I started:

            GridView mygrid = new GridView();
            //.....................................More columns code for the grid

            //Here is where I need to pass the Details column value associated with the customer ID field selected to the Modal and open the Modal dialog.            
            HyperLinkField linkField = new HyperLinkField();
            string[] dataNavigateUrlFields = { "CustomerID" };
            linkField.DataTextField = "CustomerID";
            linkFi

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

Create a user friendly pop up window

  

Hello friends I am new to asp.net programming. While working with windows form(windows application) i have created a window for editing purpose(just like popup window ) which contains three bounded dropdown list a button and a gridview. After making selections from the drop down when we press button the corresponding result should display in a grid.After that when you click on the grid row it will load the corresponding datas in my form. i want to create such control in asp.net . i have to use jquery or ajax.And this pop up window i have to use more than twenty times in my application.am using VS2008 ASP.NET and C# 3.5 . Plese suggest me what to do. Thanks in advance


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