Hi all,
I have requirement that user can't open popup (aspx) with direct copy and pasting in url.
i am opening this pop with this code
Dim strScript As String
strScript = "<script language='javascript'>" & vbCrLf
strScript &= "window.open('" + strResolvePath + "','POPUP'," & _
"'height=700,width=900,scrollbars=yes,status=yes,resizable=yes,menubar=no,top=0,screenX=0,screenY=0,left=2,top=2')" & vbCrLf
strScript &= "</" & "script>"
HttpContext.Current.Response.Write(strScript)
In this application IsAuthenticate property is always coming false so we can't use this
Request.UrlReferrer property is also coming nothing as this is popup
Here how can we restrict this - unable to find a event that can show that this is direct copy and paste