jteixeira Posted May 3, 2007 Share Posted May 3, 2007 hi, i'm workin with visual web developer in c# and i have a button. I want when i click in the button to move to other pageI have this but not work: Button1.PostBackUrl = "~/Precos/Precos.aspx"; Link to comment Share on other sites More sharing options...
pulpfiction Posted May 3, 2007 Share Posted May 3, 2007 Try this code... <script runat="server" language="vb">Sub submit(sender As Object, e As EventArgs)Response.Redirect("newpage.aspx")End Sub</script><html><body><form runat="server"><asp:Button OnClick="submit" Text="Submit" runat="server" /></form></body></html> Link to comment Share on other sites More sharing options...
jteixeira Posted May 3, 2007 Author Share Posted May 3, 2007 I'm working in c# Link to comment Share on other sites More sharing options...
aspnetguy Posted May 3, 2007 Share Posted May 3, 2007 <script runat="server" language="c#">private void submit(object sender, EventArgs e){ Response.Redirect("newpage.aspx");}</script> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.