.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

ASP.net login status not updating

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :.NET Framework
 

Hello All,

I am developing a website, which is having a user login area, using master page and have login control on it.

There are various roles and based on roles, user is diverted to relevant page. For this purpose, I had created an onClick event of login form.

The following code is used to divert users to admin area.

If

Roles.IsUserInRole(Login1.UserName, "Administrators") Then

Server.Transfer(

"~/u_Secure/u_Administrators/u_a_w_AdministratorsHome.aspx", True)

The transfer is working fine, but strangely, the login status is not updating to logout. It still shows login.

Thanks in advance.




View Complete Post


More Related Resource Links

Login Status - Login returns Bad URL

  
Hey there, I can't see anything for this so posting it in the hopes someone can help me. I have a website secured using Forms: <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH"/> </authentication> My login page is the usual login.aspx so I don't need to set the loginurl. I have a standard loginsatus control to display the current status and allow the user to login/logout.<asp:LoginStatus ID="LoginStatus1" runat="server" /> On the my development machine this works fine. However when I release it to a test site when I click the "login" link the request sent to the server includes as number of percentage-coded / so the request looks something like this: http://wwwmysitehere.com/%2flogin.aspx%3fReturnUrl%3d%252fDefault.aspx (returns a "A potentially dangerous Request.Path value was detected from the client (?)." error) or without the "Default.aspx" returnurl:http://wwwmysitehere.com%2flogin.aspx%3fReturnUrl%3d%252f (returns page not found)I can't see any thing wrong with this. Can some one help me this?   Thanks, Aigeec

Disable edit after updating status to "completed"

  

Currently we have a list which items can be edited by two SPgroups.  However, the customer would like to "lock" the individual list item after it is marked as "completed" from one or both of the SPgroups.  The list item should be displayable however not editable. 

Any suggestions as to how this can be done ... I have looked at workflows, target audiences, and javascripting, however, my investigation has been fruitless.

Any help would be greatly appreciated.


Disable edit after updating status to "completed"

  

Currently we have a list which items can be edited by two SPgroups.  However, the customer would like to "lock" the individual list item after it is marked as "completed" from one or both of the SPgroups.  The list item should be displayable however not editable. 

Any suggestions as to how this can be done ... I have looked at workflows, target audiences, and javascripting, however, my investigation has been fruitless.

Any help would be greatly appreciated.


SharePoint 2007 approval workflow status not consistently updating

  

I have an InfoPath form library in our SharePoint site that people use to create requests and submit them through an Approval workflow for concurrence and process completion tracking.  The workflows are manually started by users and the system is supposed to update the approval status only on completion of the workflow (ie the request is approved or rejected).  I did go into SharePoint Designer when we first launched and set the document library property settings to "Require content approval for submitted items".  They are not required to check out the item before editing it.

At first everything was just fine, but now it seems that the workflows are inconsistently updating the approval status.  Any ideas?


I thought this would be simple... Trying to create a login does an ajax check before submit

  

I have the standard .net login control that is working.  (Still learning .net after 15yrs of classic)

What I want to do is OnButtonClick run a javascript function (to do an ajax call to the db to check if login is valid or not) and if it returns true, then submit the form normally, else don't submit. The piece that I can't figure out, is how to correctly override the default click even to hit my JS routine and then submit the form properly afterwards.

Thanks ahead of time


Error when updating. Supposedly updating ID without being asked.

  

 

Server Error in '/' Application.

Value of member 'ID' of an object of type 'Ref' changed.
A member defining the identity of the object cannot be changed.
Consider adding a new object with new identity and deleting the existing one instead.

I get this error whenever I attempt to update an entry. Even an entry that has had nothing altered. I have tried to circumvent it but I think it must be a simple oversight. How could I have caused an ID update using the Edit.aspx page of dynamic data? Thank you in advance for the help!


How to modify the login control

  

Hi,

I'd like to record more information than the default control allows as well as perform actions with the input when the form is submitted but I'm having trouble figuring out how.

So firstly, if I want to record the middlename for example, how would I do that, and by default, where would it go if anywhere?
When the form is submitted, I'd like to take specific input, such as just the middlename for example, and write some linq to sql code to specify when and how it's stored.
In what event would I put this code?

Thanks 


create user wizard login error message dont show in a message box?

  

hi

 

i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.

 

there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes

 

is it possilbe to hook all of these up so I get one message box with all errors including membership ones?

 

thanks

 


Using network login

  

Hello:

Is anyone have sample code to set up log in page using network login?

For example: User Name(same as Network Login)

                     Password(Same as Network Login)


Your help is highly appreciated.


ASP:Login

  

Hi All

VS2005, .Net 2.5

i have been building a website and testing it in google chrome, which has been working fine.

i am now testing it in IE and firefox and the asp:login doesnt work, it doesnt even post back when i click the 'login' button.

anyone and idea what might be going on? im not sure where to start, as i mentioned above the login works fine using google chrome.

Thanks



Visual Web Developer 2010 Express "Copy Web Site" using different login

  

I created a site and am trying to grant another pesron access to upload changes to it without giving them my super-user login.


I made a login for her but I can't test whether it works or not because no matter how much I "disconnect" in the Copy Web Site page of VWD 2010, reconnecting to the same site always logs in as my superuser account without prompting me for a login again.

How do I test is the account it set up correctly before having her try to upload to it?    I want to force the login to remote site dialog to pop up again to test her account.

Any ideas?


Login Adpater

  

I am having problems getting the adpaters to work.  The Whitepaper references a vsi to install but the link to download does not contain the vsi - just source for the CSSFriendly kit.  The kit is missing the css/import.css file also.

Anyway, I fumbled around and was able to get the menu working but I cannot figure out how to specify the css class for the login control.  With the CSSFriendlyAdparters.browser file in my project, I lost all styles and most of the features of the login control.  The menu uses cssselectorclass but I tried that server tag on the <asp:login> and it did not work.  The original cssclass attribute does not seem to do anything either.

Can someone point to some documentation on how to use these tags and integrate with the CSSFriendly.dll adpaters.

Thank you,


Steve


Desktop Security: Create Custom Login Experiences With Credential Providers For Windows Vista

  

Why is a change to the Windows logon plug-in interface so exciting? Because with credential providers you can customize the logon experience for your users.

Dan Griffin

MSDN Magazine January 2007


Data Points: Updating Data in Linked Servers, Information Schema Views, and More

  

Every day a developer somewhere needs to write code to iterate through SQL ServerT system objects, query and update tables in linked servers, handle optimistic concurrency, and retrieve column and stored procedure metadata.

John Papa

MSDN Magazine November 2004


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend