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

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

SP.UI.Dialog.showModalDialog wsuuc:ButtonSection in a fixed footer.

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

I'm developing a dynamic sharepoint 2010 modal dialog solution where I can load any UserControl that derives from "XYZ.WebControl.ModalDialogControl".


Basically, I've created a default popup page called "OKDialog.aspx".  In there I have standard content sections for a sharepoint application page.  I have something simple like this in the main content panel,

<asp:PlaceHolder runat="server" id="phModalContent" />

<wsuuc:ButtonSection runat="server" id="buttonSection">


        <asp:Button runat="server" id="btnOK" OnClick="btnok_clicked" text="OK" />




That's it,  I also have a class on the button section I copied from viewing source on OOTB sharepoint popups "like site actions -> new page".


So I have a javascript function I call that goes something like this,

OpenOKDialog('_/ControlTemplates/Solution.Dialogs/ManagedPropertyPicker.aspx', 'Select desired Managed Properties', allowClose, allowMaximize);

Which basically calls SP.UI.ModalDialog.showDialog(url to OKDialog.aspx with app

View Complete Post

More Related Resource Links

How to Fixed GridViews Header and Footer when scrolling in asp.net?

This article is to show you how to Fix GridView''s Header and Footer in a simple code with CSS and JavaScript

Css Object Overlapping a fixed footer div

Hi,     Having problem finding how to fix this problem where an object tag (video) is overlapping (on top) on a fixed-positioned footer div. Tried using wmode= transparent and z-index. Any ideas? Puzzle is there is another div of the left side (no object tag) which does not overlapped the fixed footer div when page is being scrolled down.    

Fixed footer in gridview using jquery


 Hi This is vijay. I want Fixed footer in gridview using jquery.

I found the article like Fixed header in Gridview in the following link.. http://www.dotnetcurry.com/ShowArticle.aspx?ID=255&AspxAutoDetectCookieSupport=1.

In the same jquery can I make fixed footer?. or any other code fixed footer in gridview. Please help me.


Thanks & regards

Vijay kumar

Fixed footer in gridview using jquery



 This is vijay. I want Fixed footer in gridview using jquery. I found the article like  Fixed header in Gridview in the following link..


 In the same jquery can I make fixed footer?. or any other code fixed footer in gridview. 


Please help me.


Thanks & regards


Vijay kumar



A Generic Dialog ViewModel

I worked on a wpf viewmodel for dialogs, because it seemed strange to me that you needed for instance windows forms dialogs to open or save files in wpf. So I set about creating my own wpf dialogs. After creating the dialog viewmodels there still remained a small issue with the library and also I didn't have much time to write an article about it. I however published the library containing the viewmodels for dialogs with another article on my blog

ASP.NET GridView - edit records using JQuery Dialog

There are many ways in which you could modify modular data in Grid View:
1. Inline by making rows editable when u click on Edit
2. By using separate pages for Edit
3. By using popups/dialogs for adding/editing

Scrollable GridView with fixed headers in asp.net C# vb.net

In this example i am going to show how to create scrollable GridView with fixed headers which don''t get scrolled with records and stay on the top in asp.net using css, I''ve tested this code on IE7 and Firefox 2.0 , 3.5.

For this we need to add css to headers of gridview to keep them on the top.

First of all place a Panel on the aspx page from thetoolbox. Set height to 200px and width to 200px
and scrollbars to Vertical.
Now add a gridview inside this Panel and set the datasource to populate gridview.

Show grand total running total in GridView Footer

In many scenarios we need to display Running total as well as Grand total in GridView footer. In this post i will try to explain in an easy way that how we can display running total & Grand total in a GridView footer combindly. To explain this solution using an example here i use a sales order report. The report contains all sales order amount in a tabular way. I will use a GridView to display sales order amount and use GridView footer to display Running total & Grand total. Let we have a customer table with id and name column plus an orders table with OrderID,CustomerID,OrderDate & Amount. Now our goal is to show all customers order with amount as well as page wise running total & grand total. Note that running total is necessary when you enable paging in a GridView where as Grand total is always you can consider.

Open ModalPopup dialog on page load


Is there a way to make a modal popup panel active on page load so that the user can't do anything until they deal with the popup dialog?

inserting from gridview footer


I have been following the tutorials from Scott Mitchell on this site.  I am trying to insert a new record from the gridview footer.  I have my BLL set up as a .cs class in the App Code folder.  When I fill in the fields and click add, nothing happens.  The page refreshes and the text boxes empty, but nothing is added to the database.  The edit and delete functions work fine.  Have I put something in the wrong spot?


I have the rowcommand and the datasource_inserting on the code page as below.

protected void Oems_RowCommand(object sender, GridViewCommandEventArgs e)
    // Insert data if the CommandName == "Insert" 
    // and the validation controls indicate valid data...
    if (e.CommandName == "Insert" && Page.IsValid)
        // TODO: Insert new record...

protected void OemsDataSource1_Inserting
(object sender, ObjectDataSourceMethodEventArgs e)
    // Programmatically reference Web controls in the inserting interface...
    TextBox txtOem = (TextBox)GridView1.FooterRow.FindControl("txtOem");
    TextBox txtOemStreet = (TextBox)GridView1.FooterRow.FindControl("txtOemStreet");
    TextBox txtOemCity = (TextBox)GridView1.FooterRow.FindControl("txtOemCity");

Cutting Edge: Modal Dialog Boxes with AJAX


This month Dino Esposito shows you how to get Windows-style modal dialog boxes for your Web applications thanks to the Ajax Control Toolkit and some clever coding.

Dino Esposito

MSDN Magazine Launch 2008

Cutting Edge: Customize Your Open File Dialog


Displaying an Open File dialog is certainly easy in the Microsoft® . NET Framework with Windows® Forms, but the resulting window is not as customizable as when you create it through the Win32® API. With Windows 2000, Microsoft added a nice feature-the places bar, which is the vertical toolbar that appears on the left side of the window to let you select a frequently visited folder.

Dino Esposito

MSDN Magazine March 2003

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

Customize Read Only/Edit Dialog box

Is there a way to customize the dialog box that comes up when you click on a file to open it?  

The box goes as follows:

You are about to open:
How would you like to open this file?
Read Only

It always defaults to Read Only, but I'd like to default it to Edit. 

Any ideas?  Thanks.

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