Login Control

A

Arne Garvander

I am using the asp:Login control. How can I set the destinationPageUrl in code?
 
S

Steve

Default.aspx

<asp:login ID="Login1" runat="server"></asp:login>

Default.aspx.cs

Login1.DestinationPageUrl = "url";

Steve
 
A

Arne Garvander

That does not compile for me!
I am using Vs 2008. I compile in VB.
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)


Steve said:
Default.aspx

<asp:login ID="Login1" runat="server"></asp:login>

Default.aspx.cs

Login1.DestinationPageUrl = "url";

Steve
 
S

Steve

Sorry, I just assumed that you wanted to get paid. ;-)

Default.aspx.vb

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Login1.DestinationPageUrl = "destination_url"

End Sub

I have no idea if this will work in VS2008 as I'm still using 2005.

HTH

Steve


Arne Garvander said:
That does not compile for me!
I am using Vs 2008. I compile in VB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top