Can i have two Default ASPX pages? - asp.net

Actually i've started to programm in ASPX using VB.NET as language i've made a client part website where the user can see different kind of products in the Default.aspx page and open a support ticket in another page.
Now i would make an admin part of the website and make a different Default page for it. So the question is it possible to show another Default.aspx page if an admin is logged?
Actually i'd accept all suggestion on how could i do it as better as possible.

Solved by using
FormsAuthentication.SetAuthCookie(username.Value, True)
Instead of
FormsAuthentication.RedirectFromLoginPage(username.Value, True)

It is not necessary.
You can have two pages and redirect or show the Admin's Page when the administrator is logged in.

Related

How to set a login page to see the website in wordpress?

i'm a beginner and I'm trying to set a login page on my website build in wordpress. Searching on google I don't find a solution for my issue. There are a lot of plugins that customize the login page in wp-admin to acces at the backend. What I'm trying to do is different. I'd like to put a login page at my website www.example.com (home page) and after the user has insered the credentials, he can see everything on the website. I don't know how to start. Every suggests are appreciate. Thank you in advance
If you're ok with using WP users table and auth systems you could put template content inside a conditional to check if users are logged in.
It isn't elegant but it would get you what you want.

Tracking login in user time on page on Wordpress

I have a simple informative website built in Wordpress. Users must login befor they can view pages ,I would like to track the time each user is viewing each page. Is there a simple plugin or JavaScript I can use to make a database of this information.
Would something like the following suffice?
https://en-gb.wordpress.org/plugins/aryo-activity-log/

Python : Problems getting past the login page of an .aspx site

Problem:
I have searched several websites/blogs/etc to find a solution but did not get to what I was looking for. The problem in short, is that I would like to scrape a site - but to get to that site - I have to get past the login page.
What I did:
I did manage to use urllib2 and httplib to open the page, but even after logging in (no errors being displayed) the redirection of the login page as shown in the browser does not happen. My code was not too different than what was displayed here: How to use Python to login to a webpage and retrieve cookies for later usage? ; except that I did not use Cookies.
What am I looking for?
I am not entirely sure what fields I need to be looking for besides the "username" and "password" fields. What I would like for the script to do is
1) Successfully login to the .aspx site and display a message of some sort that the login was successful
2) Redirect to another page after logging in, in order for me to scrape the data off from the site.
3) How to gather any site's POST/GET fields so I know that I am passing/calling the right parameters?
Any assistance/help/advise would be much appreciated.

Drupal webform location?

I am working on adding content to an existing site, and I can't figure out how to connect different web forms to different specific pages.
example: http://network.awcbn.com/3blindmicewindowcoverings
I need to replicate this page for other companies listed on the same site. But each webform will be on a different "basic page" and will be sent to a different email address.
I know virtually nothing about coding, and I'm wondering if this can just be done in the webform settings or drupal admin settings. without having to "pop open the hood" and mess with the code?
Basically I just don't know how to place a specific webform on a specific page. Does that make sense?
There's a great module for that called webform:
http://drupal.org/project/webform
When you create a node of type webform, there's a subtab under edit for configuring the fields, email messages, etc. Documentation is here:
http://drupal.org/documentation/modules/webform

Adding multiple facebook page tabs from single facebook application using php

I have created a facebook application.
Now i want that using this application i need to add multiple pagetabs in a page.
and all of this i want to do in php
I have completed following steps
1) Logged in to facebook using my php script and got authenticaticationc code for managing pages.
2) Retrieved the list of pages i have in loged in users profile.
Now i don't know how to add a page tab in facebook programmatically.
I know there is a manual option and that is in applications settings to add a page tab
but I want to add it Programmatic using php.
Any help will be very appreciated.
regards
Applications are allowed to have one Page Tab. So if you need to have multiple tabs for same app on single page where is no way to achieve this.
If you desire to add tabs for other applications you just need to issue POST with page access_token (from accounts connection of user who is admin of that page) request to:
https://graph.facebook.com/PAGE_ID/tabs?app_id=APPLICATION_ID&access_token=...
You need either repeat that step for every APPLICATION_ID you want to be added as tab or Batch requests. Read more on page tabs creation in documentation for page object

Resources