odamsr
03-22-2006, 10:26 PM
I am building a guest book. I have two forms - guestbook.aspx (enters the guestbook info) and guestbooks.aspx (lists all of the comments). When a user selects to add a comment I want it to add the comment to the database and then get redirected to guestbooks.aspx. I have it saving and everything is working fine except once it saves to the database it is not redirecting. I have the following:
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" />
And when I add postbackurl it does not save to the database.
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" PostBackUrl="~/Guestbooks.aspx" />
What am I doing wrong?
Thanks
Shannon
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" />
And when I add postbackurl it does not save to the database.
<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" PostBackUrl="~/Guestbooks.aspx" />
What am I doing wrong?
Thanks
Shannon