Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
Syed Shakeer Hussain
laptop charles
Sunil Yadav
Abhisek Panda
Dhananjay Kumar
Home
>>
Forum
>>
ASP.Net
>>
Post New Question
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
Problem with login control
page_load event problem
Set permission for SQL login id
DATAGRID NULL ITEM REPLACE PROBLEM
problem of explorer
Latest Forum Questions From The Same Category
What is the use of Server.Execute()
Alert messgae in popup in GridView while edit
what is meaning of Application Domain?
how to access server''s webcam through internet
Dynamic checkobx adding in GridView
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Here
Quick Links For Forum Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
OOPs
Silverlight
IIS
JQuery
JavaScript/VBScript
Biztalk
WPF
Patten/Practices
WCF
Others
www.DotNetSpark.com
UnAnswered
All
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend