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



Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

login without membership problem

Posted By :Nikhil Kumar     Posted Date :09/03/2010    Points :2   Category :ASP.Net
I have a link on my first web page that redirects to another page which contains two dropdownlist
both dropdownlist containing some items
now when i select an item from dropdownlist
some links shows in view
and user click that link then a pdf file downloads
now my question is :
when a user is not logged in then it should redirects to login page
else able to download the file
how to do it
i am not using membership and my code is for this...

if(Session["UserName"]==null)
{
Response.Redirect("Redirect.aspx");
}

Responses
Author: Venkat        Company URL: http://www.dotnetspark.com           
Posted Date: 10/03/2010     Points: 5

Hi,

Are you getting any error?

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: Nikhil Kumar        Company URL: http://fast-get.com           
Posted Date: 10/03/2010     Points: 5

Thank you for replying Venkat ....

I am not getting any error but it always send me on registration.aspx page every time when i choose item from dropdownlist because i use this code on drp1_SelectedIndexChanded event

Waiting for answer...

Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...
Author: Venkat        Company URL: http://www.dotnetspark.com           
Posted Date: 10/03/2010     Points: 5

Hi,

Did you set AutoPostBack="True" for the dropdownlist?

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Post Reply

You must Sign In To post reply
 

Related Questions Related Questions

Latest Forum Questions From The Same Category

 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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