How to redirects to default page if user doesn't have appropriate role in particular forms Using Asp.net authentication.
Thanks in Advance
View Complete Post
I have two pages in my 'Root Site' - login and registration. At the moment i can't get to them if i'm not logged in as a valid user which is a pain! Obviously for these pages in the long run I want non-authenticated users to be able to access them and use
them to authenticate for site access. So i have two questions:
- How can i set permissions on these pages to allow for public access?
- Any tips you might have about using a form-based login overriding the default SP2010 popup box would be appreciated
How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!
I am having problems with a user control. I want my solution to have a separate project for holding my user controls.
The main project can get a reference to this user control project and can import this user control dll into my main project.
Thanks in advance,
I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.
I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.
I need to show the URL like this http://www.saffronrouge.com/face/moisturizers
for me http://www.mysite.com/products/
i need to list all the products. please help me on this.
My web application has user control which uses third party controls called Devexpress controls. The user control is a menu and is part of the Master page. It is placed there because this needs to be available in all the pages. My user controls raises a even on item clicked. Now, My question is that Is there any way to know that the event has occurred in page_load of the current page in which I am in?
I'm developing a web-site, that uses SWFUpload for
multiple files upload to the server. Page, that uploades files, is
accessable only to registered user. Authentication is done via
web-forms (authentication mode="Forms" in Web.config). Flash uploades
files to special web page - upload.aspx. In IE everything works great,
but Flash player in non-IE browser (in Firefox, for example) does not
send any cookies to upload.aspx. Because of it no sesion and no
authentication information is available in this page.
I can pass
all the information, necessary for uploading, in GET-parameters, which
upload.aspx recieve. But this is a serious security hole and I don't
want to expose session information. I can pass session identifier in
GET-request. But the question is the following: how can I restore
session information from the session identifier? How can I make
HttpContext.Current.User point to currently logged in user in this case?
I have some logging that has to be done, which are some database update or inserts.
However this logging is of no importance to the user, so I only want to process the data/logs after the page is completed for the user.As of now, if I process the data while the page is loading, I go from 1.4 to 2.0 speed (server side time processing of code), which is quite a bit comparing it is of no use to the user.
So I want this code only executed after that the page is complete.
I've been checking out Ajax, async pages etc, but the problem is it still gets executed before the page is rendered to the client, which means the client will have to wait longer then it is not being processed.
I've been checking out Threadpool.queueBackgroundWorker, however if I get it correct, this will still be executed before the page is shown to the user, as it has to complete before the prerender.
Then I thought about creating a new thread, and do the processing there, which would not have my page waiting to complete the data/logging.However when I have 100 or 200 users loading pages at the same time, then that would mean I would be creating 200 threads on those loads, which I doubt will be good for performance. So if I want to solve this, I would have to create my own threadpool and only assign for example a max of 40 threads to it which can pr
I have a text input to get a 'roomID' and an ASP button that calls an 'enterRoom' function:
roomID:<asp:TextBox runat="server" ID="roomID"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Enter Room!" OnClick="enterRoom" />
Sub enterRoom(ByVal sender As Object, ByVal e As System.EventArgs)
Server.Transfer("users/room.aspx?roomID=" & Request.Form("roomID"))
I've got a single user who's not able to manage his links in MOSS 2007. The links I speak of are gotting to via
users have no issue.
I read somewhere that this might be caused by the user in question having added an improperly formated link. My issue is how can I check for that condition and correct it? Any thoughst
would be much appreciated.
I have a dynamic accordion on a page. Set its datasource to an
object of paged data source.The user control is in the accordions
content template. When i was writing code the properties were showing
but after giving the values of databases as
but the values shows null, these properties are shown as textboxes text property by user control.
MoreOver when I checked the values of database Items.So i made a textbox instead of usercontrol here as
<asp:TextBox ID="txtTest" runat="server"
It is showing the correct value. And if i pass the value directly it is also showing correctly like
<uc:UserControl1 runat="server" Property1="XYZ")%>' Property2="ABC")%>' ></uc:UserControl1>
. where I am wrong
the problem is eval is not passing the value to usercont
We have been using the mysite section of sharepoint for 6 months and have recently changed the default.master is there any quick way of changing all the users pages without losing anydata.
I know i can go into the Master Page library for the users, upload the new default.master and then set this as default within sharepoint designer, however this will be quite a lenghty task for me to complete for all our userbase.
Could you please advise if there is a quicker way to do this.
I have document library which is having folders,the document library i have displayed as tree view in the left side of the page.
Here Document library having views,suppose i have selected one view on the document library it is navigating the particular view that is good but when i am trying to click document library folder still the page in same view do not navigate the
default view .
I need when ever i click on any of the folder in document library that should navigate defualt view ,could you please help me on this.
Really its need urgent...
I've posted my problem in a few other categories. Sorry for that. I didn't see the security category until now.
I'm trying to use ASP.NET's built-in role/user management for a couple ASP.NET MVC 2 sites. I'm using the MVCMusicStore as my guide. I click on the Configuration Tool as the tutorial suggests, which launches the site administration page. Unfortunately when I click on the security tab, I get an error that it cannot connect to the data store. Attempting to test the AspNetSqlProvider gives me a similar error.
I've run the aspnet_regsql program as the error message suggested, and I have a role/user management database ready to go on the server. The proper tables are constructed, and all that. The configuration tool still doesn't see the data store.
As a test, I ran the MVCMusicStore demo in the debugger. Its role/user management functionality worked. I was able to add myself as a customer, and add/remove items from my cart with no errors or exceptions. However, when I attempted to access its security tab in the configuration tool, I received the same error as I get for my own project. How is it possible that role/user management works, but the configuration tool cannot change its settings?
Any suggestions on how I can get the configuration t