To stop this you can use Iframe to open your page. But it will effect on your application performance.
Anuj Banka
Posts
-
Avoid Refer of page on Menu Item click. -
Error using Eval in asp.netCommandName='<%# GetCommandNamebunit(Container.DataItem) %>'
And in code behind
Function GetCommandNamebunit(ByVal dataItem As Object) As String GetCommandNamebunit = "demotext" GetCommandNamebunit = String.Empty Dim texpinnerText = DirectCast(dataItem, Object).texp Dim bunitinnerText = DirectCast(dataItem, Object).bunit Dim rexpinnerText = DirectCast(dataItem, Object).rexp Dim bunitid = DirectCast(dataItem, Object).id Dim Str\_blevel Dim str\_alig Dim str\_TFrame Dim str\_bunit Dim str\_fiscalY Str\_blevel = sltBusinessLevel.SelectedValue str\_alig = sltAlignmentLevel.SelectedValue str\_TFrame = sltTimeFrame.SelectedValue str\_bunit = sltBusinessUnit.SelectedValue str\_fiscalY = sltFiscalYear.SelectedValue If str\_alig = 1 Then If Str\_blevel < 4 Then If texpinnerText <> "0" Then GetCommandNamebunit = "sendModuleValues" End If Else If texpinnerText <> "0" Then GetCommandNamebunit = "setonefacility" End If End If Else If Str\_blevel < 3 Then If texpinnerText <> "0" Then GetCommandNamebunit = "sendModuleValues" End If Else If texpinnerText <> "0" Then GetCommandNamebunit = "setonefacility" End If End If End If End Function
This is working fine for you can take help from this.
Anuj
-
want code to be executed automatic on server every 5 minutesYou can create a window service which will do whatever you want to do and run on sevrer Or SQL JOB This service or job will run on server where you have database for this application. In database you can take a flag for Repeated meetings.This service will check that flag and send the mails.
-
setting up start up pageYou can't set master page as start up page. You have to set any of content page as master page. This content page first execute the master page part and then content page code.
-
I want to catch event when user close page.With the help of Jquery you can call code behind function somthing like this HTML Part: <script src="jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> function confirmSubmit() { $.ajax({ url: '/WebSite2/Default.aspx/SecretFormula', type: 'POST', contentType: 'application/json', data: '{}', success: function(result) { alert(result.d); } }); alert("I am in "); } </script> </head> <body onbeforeunload="confirmSubmit()"> <form id="form1" runat="server">
</form> </body> </html> Code Behind Function:
** _**
Public Shared Function SecretFormula() As Integer Return 42 End Function
-
I want to catch event when user close page.you can use this to catch close event for the page using this. < body onbeforeunload="alert('Closing');">
-
All day event in .ics -
Horizontal Scrollbar, GridView and StylesYou are saying browser for all is same but the resolution may be different. Check with the different resolutions.
ANuj
-
I want to force webpage to IE9 compability mode.<meta http-equiv="X-UA-Compatible" content="IE=8"> <meta http-equiv="X-UA-Compatible" content="IE=7"> and here is the link you can read about meta tags Link For Meta Tags[^]
ANuj
-
How to keep the root path in the browser's addressbarAlways welcome dear :) If My post is helpfull to you then please give rating to my reply.
ANuj
-
c#.net login pagesYou can take some application label variable for storing USerID at the time of login
-
SQL Automatic backupCreate a SP that will Take Backup of The Required dataBase And Run The SP through SQl JOb
-
How to keep the root path in the browser's addressbarYes BY URL Rewriting Check these links: http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[^] http://msdn.microsoft.com/en-us/library/ms972974.aspx[^] Or YOu can also Use MVC3
-
Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms....sorry first for long title.. I mean to say that if i have 3 controls in user control. den can i access events of that controls in my windows forms
-
Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms....Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms....
-
Implementing logout functionality for web applicationcgs ans not wrong but if we hav secure page in our site. user can view secure information
-
Implementing logout functionality for web applicationU means u disable ur back button in ur whole project.
-
Implementing logout functionality for web applicationWhat logic u applied.Beacuse back button take page from cache.so it take old session value. so to avoid this wat u did? I also want to know
-
can we use wpf controls in window's application .ohh sorry i thought u not understand wat i m tring to say
-
can we use wpf controls in window's application .I dont want to change the whole application. I want to apply WPF graphics on some of my pages. IS its possible???????????