473,651 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to restrict internal customers to access a pop up page

1 New Member
I have a page which has a pop up page. the pop up page should be visible only for external customers. when the main page loads, internal customers within an ip range should not get the pop up page, I have a code

Dim clientIP As String = Request.ServerV ariables("REMOT E_ADDR").ToStri ng



If InStr(clientIP, "120.254") = False And _
InStr(clientIP, "080.91") = False And _
InStr(clientIP, "090.256") = False And _
bodypopup.Attri butes.Add("onLo ad", "popup('htt p://www.website.com/popup.html', 'popup');")


but it doesn't filter my ip s which are starting from 120.154, how can i filter these IPs?do I need to use some thing else than Instr?
Oct 28 '10 #1
0 1170

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1281
by: Irwinsp | last post by:
Hi All, I have a form that needs to be placed on the web. The form contains a subform. The relationship from the form to the sub-form is 1 to many. Can this type of form be converted to a Data Access Page? Data on both forms must be updatable. If this can be done, can anyone recommend a book on Data Access Page. The Running Microsoft Access Book I have only devotes a few pages to Data Access Pages. Thanks! Paul Irwin
0
2208
by: Kim Skytte | last post by:
I have developed a Data access page in access 2002. I want to deploy it on my webserver ( IIS 5.1). However i get an error with the connection string to the database. In the source of my data access page I have replaced the line, Data source = C:\root\dap.mdb with Data source = http://123.23.12.31/dap.mdb ( just some ip address ) I have set the root directory of the webserver to c:\root.
0
1485
by: Manystrengths | last post by:
I must warn all of you willing to help me that this is my first go at designing a functional data access page. Please bear in mind that we all start somewhere so if I should be asking the absolute dumbest questions you've heard in a while remember I'm not the first. I am specifically looking for step by step direction. I also feel I must make you aware of my dedication. You see, I need to complete this project to get a nice bonus for...
0
1147
by: consulttech2004 | last post by:
Folks, Someone I know is using Microsoft Access 2003 to create a Data Access Page. They have inserted a Quick Time Movie. When they view the page (the HTML version of the page) and run the film, the audio sound plays, but not the video. I have searched Technet, as well as the resources found here on Google Groups. I have not been able to find anything about this. Any help would be appreciated. Thanks in advance.
0
1387
by: Spencer Lee | last post by:
I have encountered a very unique problem (for me): I created a data access page, with 3 levels of groups. I put the file on the web folder (intranet), and it seems like everything is working fine. However, the data access page, when opened from my computer, allows user to add new record to the page. When it is opened from other computer, the "add record" button is inactive. One thing I notice is that, the page has the "add record"...
1
1675
Raistlin Windblade
by: Raistlin Windblade | last post by:
I am really hoping someone can help me with this. I'm taking a college class online on Access 2003. There is a chapter about using Internet Explorer with an Access page. (provided by the teacher). However, everytime I try to open the page through Access into Internet Explorer like the tutorial asks me to do, ActiveX pops up a message not allowing the page to be opened. It gives you an option to bypass that, but when I do, IE crashes. ...
0
3421
by: Michael Shaw | last post by:
I am just starting out trying to create my first data access page (DAP) using Access 2000. I have created a default index.html page plus one other "Members" page. I have placed a command button on the index page which I want to use to jump to the second page in the same window. Using the MS script editor I've seen the stub code generated in the HTML for the OnClick event. It says to use either VBScript or Java to flesh out the event...
2
6868
by: mohamed27 | last post by:
hi : in iis 6 i need to restrict web site access i need to restrict access to this site ,just only access it from dialup with a phone number services thanks
2
1186
by: MSCTC | last post by:
Hi Guys, This should be quite simple but my brains are being seriously racked. I have created a data access page as the report I want to generate is 4 pages (too long for a regular report). Access page looks good and works well with my query. The problem is, it will only print off in landscape regardless of how many times I change it to portrait. I have edited it both in Access and Frontpage by editing the actual html document. I have...
3
2578
by: JP Romano | last post by:
Hi - I'm putting together a status report summary for a team of about 15 based in the US (various places), London, Hong Kong, etc. The users have expressed interest in using a web form (data access page), which I have submitting data to an Access db on a shared network repository. They want the forms to be saved in a Sharepoint repository for easy access. So far, so good. Where I need a little help is in setting the data access page to...
0
8347
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.