Click here to Skip to main content
15,905,232 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: .net remoting and object invocation Pin
xibeifeijian19-Apr-07 20:36
xibeifeijian19-Apr-07 20:36 
GeneralRe: .net remoting and object invocation Pin
alimohammed19-Apr-07 21:37
alimohammed19-Apr-07 21:37 
GeneralRe: .net remoting and object invocation Pin
xibeifeijian20-Apr-07 5:16
xibeifeijian20-Apr-07 5:16 
QuestionGet RowIndex from GridView when Click a Button Pin
michaelastewartmas19-Apr-07 18:38
michaelastewartmas19-Apr-07 18:38 
AnswerRe: Get RowIndex from GridView when Click a Button Pin
Chetan Ranpariya19-Apr-07 21:24
Chetan Ranpariya19-Apr-07 21:24 
QuestionExport fon Asp.net 2.0 Pin
AnhTin19-Apr-07 17:32
AnhTin19-Apr-07 17:32 
QuestionForm Authenication Pin
hahii19-Apr-07 14:28
hahii19-Apr-07 14:28 
AnswerRe: Form Authenication Pin
Venk25919-Apr-07 22:38
Venk25919-Apr-07 22:38 
Solution is for .net 2.0

Add these lines to the web.config

<authentication mode="Forms">
<forms name="AuthCookie" path="/" loginUrl="login.aspx" protection="All" timeout="30" defaultUrl="test2.aspx">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

the authorization is used to prevent the anonymous user. in this example my default url is text2.aspx page


In login page write the following code in the button click event
if (ValidateUser())
{
FormsAuthentication.RedirectFromLoginPage(txtuserName.Text, false);
}

ValidateUser() is user-defined function where you will write the code to check whether the password given my user matches with the password available in the database.

In other page's nothing is needing to write for validation



QuestionView State problem in pages Pin
pothineni19-Apr-07 13:43
pothineni19-Apr-07 13:43 
AnswerRe: View State problem in pages Pin
Rakheesh Chalil21-Apr-07 16:58
Rakheesh Chalil21-Apr-07 16:58 
Questionquery Pin
er ashish bhatia19-Apr-07 13:41
er ashish bhatia19-Apr-07 13:41 
AnswerRe: query Pin
xibeifeijian19-Apr-07 16:01
xibeifeijian19-Apr-07 16:01 
QuestionLogin Page Pin
hahii19-Apr-07 11:56
hahii19-Apr-07 11:56 
AnswerRe: Login Page Pin
xibeifeijian22-Apr-07 15:42
xibeifeijian22-Apr-07 15:42 
Questiona button to convert dynamic web page into a .doc? Pin
xxrono19-Apr-07 9:02
xxrono19-Apr-07 9:02 
AnswerRe: a button to convert dynamic web page into a .doc? Pin
Dmitry Khudorozhkov19-Apr-07 14:28
Dmitry Khudorozhkov19-Apr-07 14:28 
QuestionInteresting issue Pin
cisco210319-Apr-07 8:55
cisco210319-Apr-07 8:55 
AnswerRe: Interesting issue Pin
Kschuler19-Apr-07 10:20
Kschuler19-Apr-07 10:20 
GeneralRe: Interesting issue Pin
RichardGrimmer20-Apr-07 5:11
RichardGrimmer20-Apr-07 5:11 
GeneralRe: Interesting issue Pin
Kschuler20-Apr-07 5:19
Kschuler20-Apr-07 5:19 
QuestionConvert a current webrequest page into html stream Pin
Nirmalabesu19-Apr-07 8:35
Nirmalabesu19-Apr-07 8:35 
AnswerRe: Convert a current webrequest page into html stream Pin
kubben19-Apr-07 8:53
kubben19-Apr-07 8:53 
GeneralRe: Convert a current webrequest page into html stream Pin
Nirmalabesu19-Apr-07 10:55
Nirmalabesu19-Apr-07 10:55 
QuestionFinding control Pin
TAK7819-Apr-07 7:08
TAK7819-Apr-07 7:08 
AnswerRe: Finding control Pin
Sujit Gupta19-Apr-07 7:29
Sujit Gupta19-Apr-07 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.