By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

Restrict aspx page access only through application

P: n/a

Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any other
browser. It should only be accessible through my application.

Please help.

Anish

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish


Check the browser agent (Request.ServerVariables("http_user_agent")
in the Page_Load event, and show an error message when it's not
your browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

--

Riki
Nov 19 '05 #2

P: n/a
Thanks

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
"Riki" <ri**@nospam.com> escribió en el mensaje
news:eO****************@TK2MSFTNGP12.phx.gbl...
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish


Check the browser agent (Request.ServerVariables("http_user_agent")
in the Page_Load event, and show an error message when it's not
your browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

--

Riki

Nov 19 '05 #3

P: n/a
Hello Riki,

Why would you not create a single base Page class that each "protected" page
would inherit from?

This beats adding a control to a page, or copying the code.

--
Matt Berther
http://www.mattberther.com
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish

Check the browser agent (Request.ServerVariables("http_user_agent") in
the Page_Load event, and show an error message when it's not your
browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.