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:
And when I add postbackurl it does not save to the database.HTML Code:<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" />
What am I doing wrong?HTML Code:<asp:ImageButton ID="ImageButton4" Runat="server" CommandName="Insert" SkinID="save" PostBackUrl="~/Guestbooks.aspx" />
Thanks
Shannon


Reply With Quote
Bookmarks