Re: Security (Urgent!!!)

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 06/30/05


Date: Thu, 30 Jun 2005 07:53:05 -0700

Hello Vinod,

try using
 
Response.Redirect("~/default.aspx");

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> I am just using Reponse.Redirect.
>
> My code is working fine locally , but when i upload to the server it
> doesnot work
>
> regards
> vinod
> "Dominick Baier [DevelopMentor]"
> <dbaier@pleasepleasenospamdevelop.com>
> wrote in message news:523797632555555142675177@news.microsoft.com...
>> Hello Vinod,
>>
>> like this :
>>
>> Response.Redirect(FormsAuthentication.GetRedirectUrl(txtUsername.Text
>> ,
>>
> false));
>
>> ??
>>
>> i have a full working example on my blog - maybe this clarifies
>> things
>> http://www.leastprivilege.com/content/binary/FormsAuthBestPractice.zi
>> p
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> http://www.leastprivilege.com
>>> I user response.redirect and it doesnot redirect to the location
>>> instead it adds the path as a query string to the url
>>>
>>> regards
>>> vinod
>>> "Dominick Baier [DevelopMentor]"
>>> <dbaier@pleasepleasenospamdevelop.com> wrote in message
>>> news:521813632555027199394443@news.microsoft.com...
>>>> Hello Vinod,
>>>>
>>>> what do you use to redirect back?
>>>>
>>>> ---------------------------------------
>>>> Dominick Baier - DevelopMentor
>>>> http://www.leastprivilege.com
>>>>> Hi,
>>>>>
>>>>> I am developing a aspx login screen based on the roles
>>>>> (Admin,User). If
>>>>> the role is Admin he needs to acess a
>>>>> particular folder in the system.
>>>>> If the role is User he needs to access another folder in the
>>>>> system.
>>>>> How can i accomplish it.
>>>>> Currently i am using this code but its not working fine
>>>>> <location path="alfa/admin">
>>>>> <system.web>
>>>>> <authorization>
>>>>> <allow roles ="Admin" />
>>>>> <deny users="*" />
>>>>> </authorization>
>>>>> </system.web>
>>>>> </location>
>>>>> <location path="engine">
>>>>> <system.web>
>>>>> <authorization>
>>>>> <allow roles ="Users"/>
>>>>> <deny users="*" />
>>>>> </authorization>
>>>>> </system.web>
>>>>> </location>
>>>>> In the login screen if i enter a valid login also it is not
>>>>> redirecting it to a page in the admin folder . It attaches the
>>>>> redirection url and stays in the same page.
>>>>> Any Help will be very grateful
>>>>> Regards
>>>>> Vinod



Relevant Pages

  • Re: Security (Urgent!!!)
    ... My code is working fine locally, but when i upload to the server it doesnot ... > Hello Vinod, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Unable to logon through terminal services
    ... MCSA Windows 2003 server ... the server and also the domain admin. ... Vinod Kumar ... "Dragos CAMARA" wrote: ...
    (microsoft.public.windows.terminal_services)
  • Re: Security (Urgent!!!)
    ... I user response.redirect and it doesnot redirect to the location instead it ... > Hello Vinod, ... >> particular folder in the system. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Moving shares to another Windows 2003 Server
    ... Does the File Migration Tool work for W2K3 to W2K3 servers? ... Vinod ... >> What is the best way to migrate my data from my exisiting Windows 2003 ... >> Server DC to my new Windows 2003 DC. ...
    (microsoft.public.windows.server.migration)
  • Finding message in HAT
    ... I have processed many messages in Biztalk server but still the schema ... is not appearing in the HAT. ... Thanks and Regards ... Vinod ...
    (microsoft.public.biztalk.general)