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

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

page setup dialog

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :Windows Application


I have a pagesetup dialog I am opening it throw webbrowser.showPageseupdialog and also from 

creating an object of pagesetup dialog as 

dim psd as new pagesetupdialog 



my problem is can I change it color and look.as I want to give a new look to it , will it work  from both the way it will work as new (which I want to create)

Is it possible.


Please help 

View Complete Post

More Related Resource Links

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?

Custom Edit form - close modal dialog and navigate to page

Hi, I created one custom edit form for my document library, replaced default save and cancel buttons with input buttons and added the form action to them. Then I set my page as default edit form. When I click edit button, my custom form opens in modal pop up. When I try to save the item by clicking new save button, item gets saved but pop remains as it is. Now, I want the modal pop up to get closed and navigate to page other than the parent page with some parameters after I click save button. How can I achieve this? Thanks!!

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

New Page dialog takes master page style

I am designing a master page for my companies intranet. I started out with the simple master page that is included. I built my html and created a custom style sheet. Everything appears to work just fine. Except when I click Site Actions > New Page and I get the New Page dialog box, the box takes the style of my master page. It includes the banner and the navigation bar and squishes everything together. The textboxes are still there and they work just fine, but how do I get that box to not take the master page layout?

How to close the sharepoint modal dialog and refresh the parent page using Server side API?

I am trying to find a way to close a modal page that has been opened with the click event of ribbon control. Once the modal dialog is opened, I'm showing 'OK' button for the user to confirm some action on the respective list item. If the user clicks on 'OK', I'm performing some action on the listitem using server side code. Here the problem for me is, once the action is completed on this listItem, I need to close the dialog and refresh the parent page (AllItem.aspx) using *sharepoint server side

I'm aware that for closing the dialog we have JS code "SP.UI.ModalDialog.commonModalDialogClose". But this is not useful for me, because I should first run some action on the listitem and once that action is complete, then only I should close this dialog.

show / hide jquery modal dialog box on page load



i have a jquery modal dialog box which displays on page load of my asp.net web app - i am using asp.net aspx pages and c#

how can i hide this pop up if a value for example is false and display it if a value is true?

the following is my jquery code:

$(function() {


modal: 'true',

title: 'title'



any advise would be much appreciated as i am new to jquery and its quite a learning curve

many thanks


Custom master page + on explorer minimizing + page should setup like maximized page + problem after



i am created a custom master page in sharepoint 2010 and applied the custom master page to MySite.


on explorer maximization - team site is appearing properly

on explorer minimizing - team site is not appearing(it should appear as explorer maximized site page) - which is not happening

on refreshing the page (on explorer minimizing team site page) - then only it is appearing setting up properly.

pls help me to fix this issue.

Remove the Modal Dialog 'Page' Button


Hello ...

Throughout my SP 2010 / InfoPath2010 site, I have a number of Modal Dialogs that were developed with InfoPath2010.  Everything is working fine apart from one nagging problem ... each Modal Dialog appears with the 'PAGE' button at the top.  Clicking it opens up the toolbar with various options available. 

How do I get rid of this?  Or is it only appearing because I've got admin access?




Refresh Parent Page when close the jquery dialog



I have to open PopupPage.aspx from MainPage.aspx using jquery Dialog. For this i have added the iframe inside the Div and loaded the PopupPage.aspx in the iframe. 


    <link href="inc/css/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="inc/scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="inc/scripts/jquery-ui-1.8.6.custom.min.js"></script>

    <script type="text/javascript" language="javascript">
        function OpenJQueryDialog()
            $('#dialog-modal').dialog({ autoOpen: false, bgiframe: true, modal: true });                         

Open custom aspx page as modal dialog from link


Here's what I'm trying to achieve. I got a url field in my list which contains a link to a custom aspx page I've created earlier. I've added the "&IsDlg=1" property to my url and I want to page to be opened as a modal dialog. However the page opens full window and not as a dialog at all.

Do I have to create a custom field? I've seen how to open a modal dialog with javascript, but my url field only accepts http://xxx aso so I'm screwed. Any help is very much appreciated.

The Jquery dialog appears but the focus goes to the top of the page


Hi, I have a jquery dialog box(red rectangle with a cross) when triggered(via the click button) appears at the top of the page(in the browser - see left part of the diagram) and the page focus  goes to the beginning of the website(see the right part of the diagram).

I need the dialog to appear such that the focus does not go to the beginning of the website as shown in the right part of the diagram above, 

but appears like in the left part of the diagram.

Here is the code:

$(function() {
        $("#location-search-id").click(function() {
                modal: true,
                open: function() {
                    $(this).load('<%= Url.Action("LocationSearch", "Tab") %>');
                position: 'top',
                width: 650
        return false;

Here are the jquery scripts I have referenced:

    <link href="<%=Url.Content("~/Content/themes/base/ui.all.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Content/themes/ui-lightness/jquery-ui.css")%>" rel="stylesheet" type="text/css" />

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

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

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.


I have 2 web pages. First page has a textbox and a button control.

when I enter test and click on the button , system goes to the second page. And in the second page I want to access the Textbox in the first page. When I try to do this I get the following error.

"Object reference not set to an instance of an object. Following is my code :

Dim txt As New TextBox

' Find the server name on the previous page
txt = CType(Page.PreviousPage.FindControl("TextBox2"), TextBox)
If Not IsNothing(txt) Then
Response.Write("[Name Not available]")
End If

I know I could do this with session, but I want to use the Page.PreviousPage.FindControl. Any help is greatly appreciated
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