I was wondering if anyone can help me with this. I want to have a form that the user fills out, then when they submit it, it displays the values on the page in a summary with two buttons: Submit and Cancel. The Submit button directs the user to the main page, while the Cancel button takes them back to the form, with the values entered still filled in. How do I do this? I have a simple form that shows the values on the next page, but I don't know how to make it go back with the values filled in. Maybe I am doing the whole page wrong. Can someone tell me how to do this?
twilitegxa 0 Newbie Poster
Recommended Answers
Jump to PostYou can get the values of the controls from the previous page using a feature called Cross Page Posting.
Refer this link. Cross-Page Posting in ASP.NET Web Pages
Otherwise you need to store the values in Session and retrieve it in the form page when …
Jump to PostI have changed your code to store and retrieve the values from Session.
<!-- UserForm.aspx --> <%@ Page Language="VB" ClassName="SenderClass" %> <script runat="server"> ' Readonly property for name Public ReadOnly Property Name() As String Get Return USerName.Text End Get End Property 'Readonly Property for phone Public ReadOnly …
All 8 Replies
padtes 30 Junior Poster in Training
twilitegxa 0 Newbie Poster
Ramesh S 129 Posting Pro
twilitegxa 0 Newbie Poster
Ramesh S 129 Posting Pro
twilitegxa 0 Newbie Poster
Ramesh S 129 Posting Pro
twilitegxa commented: Exactly what I needed! +2
twilitegxa 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.