C# - Force Users To Browse With One Browser Window At A Given Time?

Jan 11, 2011

i have to implement a requirement that's kind of weird for web apps (intranet web app).

after an user login to the app, the user may press Ctrl + N to open the current page in a new window. this sounds perfectly normal except the business requirement is to prevent users from doing this. users must logoff before they can access to the app again with a different browser window/tab.

View 1 Replies


Similar Messages:

Opening A Force Download In A New Browser Window?

May 17, 2010

I have a button event when forces a download to the users browser, but I would like to know whether there is a way for the download open in a new sized browser window. Is there away to do this?

View 5 Replies

Web Forms :: Is It Possible To Programatically Browse Back One Step, Instead Of Doing That With The Browse Back/forward Buttons In The Browser

Jul 2, 2010

How is it possible to programatically Browse back one step, instead of doing that with the browse back/forward buttons in the browser ?

View 4 Replies

Web Forms :: Reload The Parent Browser Window From Client Browser Window In Codebehind?

Sep 27, 2010

Im calling the new popup window from gridview like

[Code]....

In the AddTargetPopUP.aspx ,I have button Call "ADD".When i click the add button it'll insert datas into database.I want to reload the parent gridview after insert into the database and want to close the popup.

View 4 Replies

C# - Can Force A Website To Show Time In A Specific Time Zone

Apr 6, 2010

I have a client request that all times be displayed in Pacific Time Zone, regardless of client settings. I'd like to avoid a scenario where I have to call a function for every time display and instead have a single point where I can make the switch.

I'm thinking a custom culture might do the trick, but I wanted to ask before I set off down a potentially blind alley (or miss something trivially easy).

View 3 Replies

Calling Browse File Window Of Fileupload Control?

Oct 5, 2010

I have an ImageButton and a FileUpload controls in a child page of a master page. I would like to achieve something like when user click on the ImageButton, the browse file window will pop-up like what we did when we click on the Browse button of the FileUpload control.

How can call the browse file window of the FileUpload control when i click on the ImageButton?

View 1 Replies

Web Forms :: Show Only Image Files In FileUpload Browse Window?

Nov 18, 2010

Fileupload.My requirement: Only Image files should be displayed in FileUpload browse modal window.how to do this?

View 2 Replies

Web Forms :: Browser Popup Window Maximize Button Is In Enable State In Chrome Browser

Dec 14, 2012

I used javascript code to open popup window.Popup window "Maximize" button is in 

disable state.But in Chrome it is in enable state.I want to make browser maximize button disable.

Below is my javascript code

function Call_PopUp(event, URL) {
window.open(URL, 'CustomPopUp', 'width=990, height=540, menubar=no,scrollbars =yes, resizable=no, top=50,left=50,toolbar=no,dialog=yes,minimizable=yes,maximizable=no');
}

View 1 Replies

Web Forms :: Stop Users Users Using The Browser Back Button And Potentially Submitting An Old Version

Mar 25, 2011

I need to stop users users using the browser back button and potentially submitting an old version of a form.

I'm storing a guid in a session variable and also writing the value to a hidden form field and then checking the session value against the hidden field value if a user does try to navigate back and submit an old form.

If the form is submitted and the user wants to complete a new copy of the form then a new guid is generated both to the session and to the hidden form field. Now, if the user decides to hit the back button a few times to get the old form and tries to submit it again, the page checks the current guid in session against the guid stored in the form field and it finds a mismatch and prevents the form being submitted.

This works as expected in Chrome and Firefox, but in IE6, when the user hits the back button to view the old form, the new guid value appears in the hidden field of the old form! This means the user can submit the old form again, which we definitely do not want.

View 3 Replies

Security :: Force New Tab Or New Window To Login?

Jan 17, 2010

Does ASP.NET have the capacity to force a user to a login page if they open a new tab or window to the site? So I've got a window open to A Site, I open a new tab to A Site, or a new window to A Site, is it possible to automagically detect that and force a fresh login?

I have a client who is trying to press this requirement on me, and insists that they do it in-house using Session.IsNew. That of course only works when the session has timed out. Is it possible to force a fresh login within an existing session when a new window or tab opens, or no?

View 4 Replies

Web Forms :: Attach The Image - Users Browse The File From The Local Computers And Send It

Feb 9, 2011

I have created a form and it works. But on the form I want to let users browse the file from the local computers and send it to us.

View 2 Replies

User Controls :: How To Browse Folder Using Browser Button From Any Location On Server

Apr 17, 2012

i'm creating a asp.net web application in which i need to select source file using browse button to select the Source location from where the files has to be copied from and destination file using browse button to select the destination location where the files has to be copied to .So pls tell me what should be the code for browse button to browse a folder for source and destination and copy the source folder files to destination folder(i want to copy only text and excel files from source to destination folder) and i want user to see the progress how files are copying from source to destination and error also if there is any error in copying.

View 1 Replies

Web Forms :: How To Force Reload Of Pop Window - Odd Behavior In IE

Jan 13, 2010

I have a gridview control where clicking on a specific row saves an ID number to session("ReportID") and then brings up a popup window. The popup window checks session("ReportID") on load and then displays the correct report information. This setup seems to work fine in Firefox and Safari, but for some reason IE is not refreshing the popup window. I'm trying to figure out a way to force IE to refresh/reload the popup window like it does in firefox/safari. If the popup is not refreshed then it won't update the information on page_load. Code below:

[Code]....

I thought that window.open should automaticly reload the page in the called popup window as this is what FF and safari seems to do, but maybe not. I think that the javascript .reload() may force IE to refresh the popup, but I don't know what the correct syntax would be.

View 9 Replies

Web Forms :: How To Force Web Browser To Use Mozilla

May 23, 2010

I wanna to use web broswer control with mozila firefox instead of IE.

how can i do that?

View 2 Replies

How To Force Browser Work Offline

Apr 8, 2010

Is there a way change the settings of the web broser to "Work Offline Mode" ? or the only way of doing it is to install activeX that doing so?

View 2 Replies

Force A Link To Open URL In A Different Browser?

Feb 11, 2011

How can we force a link to open a URL in a different browser?

e.g. A link in IE webpage to be open in Google Chrome window.

View 10 Replies

Web Forms :: Force A Page To Open In Parent Frame (whole Window)?

Jun 25, 2010

Is there any way to force a page (that opens in an iframe) to load in the parent frame (whole page/window)?

I am in a scenario where I really had to use iframes to maintain my website branding because my eCommerce provider does not support customizations. When Payment is made, I would like my TransactionComplete.aspx to open in the parent frame and not within the same child frame.

View 3 Replies

Force Showing Login Window With Windows Integrated Authentication?

Feb 16, 2011

I have an silverlight application configured with windows integrated security. I would like to emulate the "Sign in as different user" functionality I would like to give the user, the option to click a button and show the windows authentication login window, so that the user can enter the "User name" and "Password" again using another domain account. (btw i found this question on another site but with no answers, I need the same thing so i copy/pasted a bit)

View 1 Replies

Force VS 2010 To Use IE Without Resetting IE As My default browser ?

Jul 4, 2010

Google Chrome is my default browser. however when i run VS 2010 it opens the page in Chrome. I want to force VS 2010 to open it in IE. how it can be done without resetting IE as my default browser ?

View 1 Replies

How To Force Client Browser To Download Images From Server Rather Using Its Cache

May 20, 2010

Assume a simple aspx data entry page in which admin user can upload an image as well as some other data. They are stored in database and the next time admin visits that page to edit record, image data fetched and a preview generated and saved to disk (using GDI+) and the preview is shown in an image control.

This procedure works fine for the first time however if the image changes (a new one uploaded) the next time the page is surfed it shows previously uploaded image. I debugged the application and everything works correct. The new image data is in database and new preview is stored in Temp location however the page shows previous one. If I refresh the page it shows the new image preview. I should mention that preview is always saved to disk with one name (id of each record as the name).

I think that is because of IE and other browsers use client cache instead of loading images each time a page is surfed. I wonder if there is a way to force the client browser to refresh itself so the newly uploaded image is shown without user intervention.

View 2 Replies

Web Forms :: How To Force A Browser To Refresh A Cached Version Of A Webpage

Mar 9, 2010

How to force Refresh( F5) conditaionally wehn the pages meet new design.

View 1 Replies

Web Forms :: How To Open A Popup Window Automatically At Some Time Interval Of Time

Sep 3, 2010

in my application i need to generate/open a popup window automatically at some interval of time, when the user is working at some page in the application, like a alert message

the popup window contains some information which should take from the database,

and the information should be updated automatically when the popup window opens,

i am developing my application with c#.

View 3 Replies

Web Forms :: Force A Page To Time Out?

Apr 6, 2010

I need to write some code that will force a page to time out.

I tried putting a thread to sleep for a VERY long time, (It is still running as I type this) but it seems to just keep going...

How might I do this? (I need to test some code that should execute if a process times out {script not session} but I can't test it unless I can make it time out...)

View 3 Replies

Web Forms :: Use "Window.Open" Method To Create A New Browser Window From C#?

Aug 25, 2010

I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.

View 11 Replies

MVC :: Opening The "Browse With" Window?

Feb 11, 2010

When operating in a web forms project, you can right-click on any .aspx page and choose "Browse with" and go from there to set a default browser. Now that I'm working in MVC, doing this same operation on a View with a .aspx extension doesn't have the same effect. You have to right-click on the Default.aspx page in the root of the project.

I've always thought this was a clunky way of choosing a default browser in any case. Using a particular browser as a default doesn't really have anything to do with a specific .aspx file, but you still get access to the "Browse With" window by right-clicking a .aspx file. It would be a lot better if you could just bring it up via one of the menus or even shortcut keys.

I think I can understand the logic of not having it available as a result of right-clicking a View, since this isn't really meant to be a page with executable code, but rather a rendering of the data returned from the Controller. I cannot understand the logic of marrying this functionality to the Default.aspx page, which isn't even necessary except for backwards compatibility with earlier versions of IIS. I don't like unecessary things in my projects, so if I know for a fact that I'm deploying my project on an IIS7 server, I delete the Default.aspx page.

I did some research on this, and there doesn't appear to be any way to access this menu window other than right-clicking a page in the root of the MVC project folder (or a html page pretty much anywhere).

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved