1

I'm using Visual Studio 2008 to make a WAP website.

In the default page, default.aspx, I have this Control:

<mobile:Command ID="com" BreakAfter="True" Runat="server" Click="com_Click">Login</mobile:Command>

default.aspx.cs

  protected void com_Click(object sender, EventArgs e)
        {             
           Response.Redirect("Login.aspx");
        }

When I click the button, the address bar shows 'http://loaclhost:1564/#__pbc1'. It does not work, but in Opera it is normal. I don't know why.
I still need to do something?

Brad Rem
  • 6,036
  • 2
  • 25
  • 50

1 Answers1

0

That's an anchor tag... It could be caused by the javascript library you're using. Often times, because an a tag requires an href item, # is used because it doesn't reload the page.

Try this first: Response.Redirect("~/Login.aspx"); first to see if it helps.

Hope that helps.

Shahzeb
  • 4,745
  • 4
  • 27
  • 40
Jeffrey Kevin Pry
  • 3,266
  • 3
  • 35
  • 67