Pop-up window while creating a webpage - c#

I'm using Visual Studio 2010, and i'm creating a website using C#.
I'm opening a pop-up when user clicks a button.
Now i want to perform the task mentioned below:
When a pop-up opens i do not want user to click anywhere else. I mean
he should be able to click or do any activity in the pop-up window
ONLY, whereas he shouldn't be able to do anything in the parent
window until and unless he closes the pop-up.
How to achieve this?

Depends on how you are creating the website. C# is the server-side language and can be used in ASP.Net websites as well as MVC.
If ASP.Net, Ajax Control Toolkit has a modal popup:
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/modalpopup/modalpopup.aspx
If MVC, jQuery has a modal popup:
http://jqueryui.com/dialog/

Related

Open start form and close all other Forms with Xamarin Crossplatform

At the start of my project I open a Dashboard form, each time I am calling other forms with the Navigation.PushAsync. But when the User logs out I want to close all forms and stacks and open my Dashboard again without going back option. How do i do this?
Use Navigation.PushModalAsync (modalPage);
It will create new navigation stack, thereby back button won't be visible.

How to open pop-up window in ASP.NET web application?

I'm using a GridView in ASP.NET web application and want to open something like a "new form" (like in Windows Forms application) which will contain the selected GridView row data. I don't have issues selecting the row and the data, I just want to know how to open a new pop-up window, or secondary page or something like that, and how to pass the information to newly opened pop-up.
Years ago I wrote a simple tutorial on that:
http://netpl.blogspot.com/2007/12/autocompleteextender-key-value-issue.html
http://netpl.blogspot.com/2007/12/autocompleteextender-and-key-value.html

BHO Toolbar working like Plugin

I developed IE Toolbar using BHO C#.
I can see the toolbar at the bottom of MEnu with Button.
What this toolbar is do, when enter any url in Address bar that Display me title of the site in message box.
But Now what I want I don't want to display that button (and even toolbar below menu) and it just like working in backround same as other plugin.
so,please any body tell me what changes I need to make to work toolbar just like plugin.
Thanks,
Toolbars and BHOs are two completely separate objects. They have different registration in the registry, and they are hosted differently by IE. So, if you don't want a toolbar, just register as a BHO.

How to access a file browser opened by a WebBrowser control?

I am writing a C# WinForms application that fills a form automatically on an existing website.
Let's consider http://tinypic.com/ as an example to illustrate my problem.
When the user clicks the Browse button, a file browser dialog opens as a modal dialog. In my case, the modal window is opened from code and I own the form and the WebBrowser control.
How can I access this modal window programmatically and paste/enter my filename into it ?
I don't know particularly, but I do believe its possible (even if you have to hook the OS)
You might want to check TwebstLib for such functionality

How can I create nice-looking, functional overlays like what's being used in SharePoint 2010 in ASP.NET MVC?

I have tried in my MVC app to add jquery modal dialogs to prompt the user for input, but my code turned really sloppy just prompting the user for 1 field of information.
SharePoint 2010 has ajax overlays that are very functional, some even include the office ribbon.
How is this being done? What libraries can I use where I can open up entire forms as ajax overlays on top of a page?
Thanks so much!
If you want to show complete forms, use http://plugins.jquery.com/project/jquery-framedialog - I haven't tried it with standard SharePoint forms, but it should work if you set the return url to a page that will close the dialog.
If you just need a nicer looking javascript prompt, use the standard jQuery UI dialog and define the html for the form where you are using it.
With MVC you may find it easiest to post the form using ajax (there is a jquery method to serialize a form, though I don't recall the exact syntax) rather than posting the iframe - that gets you a callback structure that is a bit easier to work with if you are doing more complex stuff with the dialogs.

Categories

Resources