Login Control

  • Thread starter Thread starter Arne Garvander
  • Start date Start date
A

Arne Garvander

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

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

Default.aspx.cs

Login1.DestinationPageUrl = "url";

Steve
 
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
 
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

Back
Top