Different Authentication Forms For Different Folders?
Oct 25, 2010
I have an ASP.NET website with two different sections, root website and an /Admin sub-folder. I want to have two different forms authentication/login pages for them. /Admin folder should use/redirect /Admin/Login.aspx and root pages should use /Login.aspx. What should I do in web.config to accomplish this?
View 2 Replies
Similar Messages:
Mar 2, 2011
The problem is as follows: If a visitor try to access a page in Admin folder he must be redirected to login page located in Admin folder, here I will take his username and password and then I will check this in SQL Server table, if he is authenticated then he will be redirected to Default page and he can access any page in Admin folder, but not any page in User folderHere is one thing is important and that is login page in Admin folder and login page in User folder are differentSame scenario is for User folder Please tell me what is the right way to achieve this functionality
View 2 Replies
Mar 2, 2011
At present I am using this method to Redirect to different folders.
private void btnLogin_Click(object sender, System.EventArgs e)
{
string Role=string.Empty;
if (!string.IsNullOrEmpty(Role = ValidateUser(txtUsername.Text, txtPassword.Text)))
{
[Code]....
I can use sessions but I wish to use Form Authentication method to implement this. how to achieve this using Forms Authentication or tell me a procedure to implement this using Forms Authentication.
View 1 Replies
Jun 21, 2010
Listing folders in folders then creating arrays in JS for each of the folders?
Directory Structure:
I have a directory structure as follows;
ad_folder
--folderA
--folderB
--folderC
--anotherFolder
--etcfolder
--afile.aspx
--anotherfile.gif
ad_code
--folderA
--folderB
--afile.aspx
--anotherfile.gif
ad_prep
--folderA
--etcfolder
--afile.aspx
--anotherfile.gif
ad_bin
--etcfolder
--afile.aspx
--anotherfile.gif
other Folder
files folder
assetsfolder
index.aspx
web.config
image.gif
Task at hand:
I want code in VB.NET to create javascript arrays of the folder contents that can then be used on the client end. I only need arrays for all folders contained in folders starting with ad_ and an array for all the base folders . like so:
var folders=["ad_folder","ad_code","ad_prep","ad_bin"];
var ad_folder=["folderA","folderB","folderC","anotherFolder","etcfolder"];
var ad_code=["folderA","folderB"];
var ad_prep=["folderA","etcfolder"];
var ad_bin=["etcfolder"];
note that I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.
[code]...
View 3 Replies
Sep 17, 2010
Just going to start making a web application and was wondering which was better, or at least what are the main differences between them (as it probably matters what I am using them for)?
View 3 Replies
Jul 1, 2010
I have created a Folder and inside this folder, I have put a default.aspx and a default.cs file. I wonder how it is possible to find out what is the folders name as the default.cs is located in. This meens that I am looking for a code to determine what folder that is above in the hierarchy of folders?I cant use this code as this goes all the way back to the root:
[Code]....
View 5 Replies
Jun 18, 2010
How do i delete files and folders from .cs ?
View 1 Replies
Apr 15, 2010
'm using the AutoCompleteExtender from the AJAX control toolkit on my aspx page - I have it wired up to a WCF service that is returning a string array and everything works happily.
If I change my service definition to include a demand for the caller to be authenticated, like so:
<OperationContract(), PrincipalPermission(SecurityAction.Demand, Authenticated:=True)> _Public Function GetLookupValues(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As String) As String()
Then the autocomplete extender stops working, and I get an authentication error in the service. The service is set up to use ASPNetCompatibility mode, and I was hoping that the extender would pass the authentication credentials for my logged in user - does anyone know how to make this work?
View 2 Replies
Sep 3, 2010
What do I need to do in order to change an application from Forms Authentication to windows authentication?
View 2 Replies
Jun 28, 2010
How to make the folders (css, images) to show not found 404 instead of not authorized 403 when accessing it.
View 6 Replies
Jan 21, 2010
How can I display Windows XP 32-bit folders in a web page as TreeView e.g.:
C:LibraryLawsLaw1law1.doc
Then I can press on the link to open a word document.
End users create folders and place Word documents inside , and the web page reads the folders and display it as TreeView and allow end users to open Word documents.
View 2 Replies
Jan 7, 2010
how to retrieve sub folders and files from a particular folder as like windows explorer?
for example ..i am having a folder "config"..
within this folder i am having subfolders as like "images","rss" and also config files..
how to get this in tree view as like windows explorer?
View 3 Replies
Feb 16, 2011
i have a master page in a root and some pages in root and works perfectly, but now i need a different folder (secure) and in this folder i have an Admin page but doesnt show icons from master, only the placeholder. If i change the url from .css (url('images/page-bgglare.png') to (url('../images/page-bgglare.png') works the pages inside the folder but doesnt works the pages in root.
View 7 Replies
Apr 20, 2010
I have an asp.net app that allows users to create personal pages which can be publicly accessed thru a "directory" page. The content of the pages is stored in sql server, so a given user's page is dynamically created thru the code that executes when the relevant link on the directory page is clicked.
I would like to take this a step further by allowing access to a given user's page directly thru the browser's address bar, something likewww.thegreatestsite.com/jim (pretty much like You Tube, Facebook, etc.).
I could achieve this by manually creating a folder under the root, called "jim" and put a default.aspx page in it which has the code in it's load event that would dynamically create jim's page.
However, I would like this "additional feature" to be created automatically, as part of the sign up process of the user.
I have no clue as to what would be the best approach. For all I know there might even be a standardized way to ado this in asp.net?
View 4 Replies
Aug 6, 2010
I would like to display a list of all the Themes in the App_Theme directory and allow the user to select the theme they would like to use. Is there already a method that would return the folder name back to me in the app_theme folder?
View 1 Replies
Sep 10, 2010
I am going to be displaying folders and files in a tree stucture although i need to user todecide what folders they want to view by putting in a path, can this be done? When the user finds the file, they are going to bepresented with an option to move or delete the file. Should i use another tree stucture or an input box to allow the user to put the path
View 1 Replies
Mar 17, 2010
how can i display the images from folders dynamically,i mean when i add it ,this code generated
<img id="1" src=//retreive from folder>
some one told me to write server.MapPath in the src
it is worked for the first image only,i want to display all the iamges from the folder
in the html tag <img.....>
View 5 Replies
Apr 14, 2014
i want to develop image album on my website
1 upload photo category wise
2 view photo category wise
View 1 Replies
May 7, 2015
How to browse and select the folder in asp.net. And after that i need to read the files from that folder and save it in another folder in my system.
View 1 Replies
May 7, 2014
I want to create a thread function in which once a day is completed a folder inside my website project has to be deleted.
View 1 Replies
Aug 28, 2013
In my application, first, i have not connected to iis server, and trying to access secondary path at this time it is accessing that path. but when it is connected to IIS server, it is giving unathourizedaccess exception.
View 1 Replies
Mar 3, 2011
I would like to create different folders in my .net project with following scheme;
+ students
- default.aspx
- query.aspx
+ teachers
- default.aspx
- pictures.aspx
- groupname.aspx
- default.aspx
- login.aspx
- getresult.aspx
and i would like to let it be reached as
[URL] (goes to the it's local default.aspx page, not default.aspx of at the root) [URL](goes to the it's local default.aspx page, not default.aspx of at the root) [URL] (goes to the root's default.aspx page) I hope i could tell my question understandable.
View 4 Replies
Dec 20, 2010
well i know how to apply master pages to webforms white reside in folders. but the problem is, since the master page is linked to a css file, and so when the style (background url) is applied to html element in the page which is in the folder, it doesn't work obviously since the link starts from the folder, the page is in, and not the website root.
css code:
[Code]....
normally i would expect the url to be [URL] but when i view the url from the page which is in the folder it shows [URL]
View 17 Replies
Jul 13, 2010
I am using the 'image control' to display images from my database with no difficulty.
However, I can't seem to find a way to tell the page to use a different folder other than the one the web form is in.
Maybe i'm missing something, but surely this should be obvious?
View 6 Replies
Jan 18, 2011
is it possible to make an upload button that sent an image to two folders
my products page details and my product list have different image folders and in the add product i want to be able to do the above with the image field in the admin add product page
View 3 Replies