Hi guys,

How can i make it that when a user logs in successfull... the Login link becomes Logout link.

Any ideas would be appreciated.. thanks.

sunnny 124

Can you please provide more detail. I'll make some assumptions since you're posting in the ASP.NET forum.

1st assumption: you already have your security figured out. Perhaps you're using Forms Authentication?

2nd assumption: the login link is an ASP.NET LinkButton or Button server control.

If both of those are correct, then on the OnAuthenticate event, change the LinkButton.Text property.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.