Disable File Menu Control (Print Option) Of Browser?
Jan 26, 2011How to disable File Menu Control (Print option) of Browser in asp.net
View 5 RepliesHow to disable File Menu Control (Print option) of Browser in asp.net
View 5 RepliesI have a requirement to disable save as and print options of file menu of the browser in which my portal opens.For this i have used javascript code which clears the clipboard text.Because of this when my pplication is opened then copy paste wont work on the system.Iam calling this method on load of a startup page and afer clearing the clipboard text iam opening my home page through javascript with no menu bar just like a modal popup iam trying ot open.This is working fine for some browsers but IE7 and firefox users are unable to load the applicatio because of this javascript function.Can anyone suggest me how to overcome this or how to disable save as and print option.My final aim is user shouldnt be able to save or print my application data...
View 5 RepliesI have a listview on the web page, which looks like a neat report.
Like you know all web pages on IE have a print option on it or Print Preview.
These are existing on the web page.
When I click on it to print my page, which has two pages to print. The first page is fine, but the second page has a wide space right on top. How could I do paging settings to fix this space to go away?
[code]....
In web application i.e .aspx page once user clicks on logout it redirects to login page by clearing all the sessions. Now when user clicks on back button in the browser it redirects to last view page. Since user logged out from the application how can we show the last viewd page? when user clicks on the page it checks hte session exsits or not then redirects to login page..
But i dont wna t the user to lick on the back button.. i want to siable the back option int browser .. I have achived this by
using.
<script>
window.history.forward(1);
</script>
This solution works in all the browser but Not In Google Crome..
Is there any javascript to disable "export to microsoft excel option" on right click in browser. though it can be done using web.config
View 1 RepliesI need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.
At the time of file download process, teh IE thorws a dialog box asking the user open / save or cancel. How to disable the open option, i want only save or cancel. This file is a zip file. i don't want a open option, is it possible?
View 1 RepliesI have a webform on which i display all the details of a particular record now i want to give my client print functionality so he can print those detail. Can this be done in asp.net and if yes then how?
View 4 RepliesI have a custom control with four checkboxlist(Country, City, Outlet, Stores) controls in it. The functionality is.. if a country is selected cities would be populated similarly outlet depends on city and stores depends on outlet. I am using the same functionality through out but in one webpage I need to disable the multi selection property of the country checkboxlist without disturbing others.Following is the javascript for the checkboxlist controls:
<script language="javascript" type="text/javascript">
function CheckBoxListSelect(cbControl, cbxControl)
{
[code]...
I am trying to print a report containing the single record using print option available in Report Viewer control. But print is coming in more than one page.
How can we shrink the report to a single page?
I'm using Visual Studio 2010 and ASP.NET 4.0 to render a Menu control as an HTML list so I can style it using CSS. Here is the code I am using below
<asp:Menu ID="navlist" runat="server" Orientation="Horizontal"
SkipLinkText="" ClientIDMode="Static" DataSourceID="MenuSource"
MaximumDynamicDisplayLevels="0" IncludeStyleBlock="False"
StaticDisplayLevels="2">
</asp:Menu>
This produces the following HTML
[Code]....
At first glance this looks like exactly what I wanted. However, if I open up WebResource.axd there is a whole bunch of javascript code related to the menu. Part of this code is applying it's own inline styles to the list. Using FireBug I can view the HTML markup after the javascript has executed and it looks something like this:
[code]....
These inline styles ultimately affect the layout of my page. I have no need for any of the scripts in WebResource.axd. How can I prevent this script from being rendered in the final markup of the page?
In my website I'm using the standard ASP.NET menu control. I already got so far as to write a custom control adapter to get rid of the rather tacky html output that is generated by the default control adapter.
One thing keeps buggering me though. Somehow ASP.NET is generating extra javascript that I don't want nor need for my menu controls, since I won't be using any of the dynamic features in the control. I replaced the control adapter, so it doesn't generate compatible HTML for that.
how I can prevent ASP.NET from generating the extra javascript for the menu control?
How to Disable print, print screen, right click using asp.net
View 4 RepliesHow to get rid-off ToolTip showing when people hover over menu items in asp:menu navigation control? The ToolTip itself covers pop-out sub-menu and very irritating. ToolTip actually displays "description" from Web.sitemap. I thought to delete "description", but that would be nice to have for asp:SiteMapPath.
View 2 RepliesHow can I disable particular <menu item> tag in asp.net menu control, through code at runtime, according to session value??
View 1 RepliesI am a student and .net freshers.I have been working on a website using asp.net and has used menu control in it.it has various sections like home,about us ,customer care and i have set navigate url for each menu parts and submenus .but it is not navigating to respective pages while it is opened in browser. I have seen sitemap usage and iE8 compatiblity articles does it needs to be done ...cant it workout just by setting navigate url in property of menu?
View 6 Replieshw cn i give print option on web page like say i hv to print a marksheet in defined format.
View 3 RepliesWe have a report that displays 30 records per page..there needs to be print options on the page..
They want to have the ability to print ONLY the records currently on the page or the option to print ALL records for the report..
The print all is fairly easy, i can just present the same page with no page size and they can print it out. But not sure how to go about setting up a print this page only option.
I'm looking for an option to print a web page along with all the formatting of the page, like background color, images etc.. The regular javascript window.print() does print only the text in the page and the formatting is missing. - either in javascript or C#.
View 1 Replieshow to write custom code for printing a report in the report viewer in web forms using rdlc files
View 1 RepliesI would like to restrict what they see in the file upload dialog, which is set to "All Files" by default. I understand how to validate that they only uploaded a certain file type, that is not the question here. I would just like to know how to default the file type in the file selection dialog.
Is there any way to change this to "PNG only" or "*.png"?This is using AsyncFileUpload in the ASP.NET AJAX Control Toolkit.
I m using Client side RDLC reports, the problem which i m facing is that IE shows the report with Print button but Morzilla Firefox does not show print button. How can i rectify the above problem or an alternative soln.
View 2 RepliesFor Testing x509 certificate.I expanded the Default Website node in IIS 7.5.When i right click there is no properties option in popup menu.How to include it?
View 1 RepliesI want to disable the edit option if the value binded to that coulmn is 0.
Else it should allow user to edit.
On a home PC I have SQL Server 2005 installed. If I go to SQL server management studio and select my database, I can then right click on the "Database Diagrams" folder and then select "New Database Diagram" from the popup menu. I can then generate a database diagram. However on my PC at work if I follow the same steps as above, the popup menu does not show an option for "New Database Diagram". Instead my choices are "Working with SQL Server 2000 diagrams" and "Refresh". So why is the "New Database Diagram" menu option missing? Also what is odd is that the popup selection reads "Working with SQL Server 2000 diagrams" when in fact I am using SQL Server 2005 not 2000? Does anyone know why my option to create a database diagram is missing?
View 1 Replies