You must Sign In to post a response.
  • Category: ASP.NET

    How to preview form data before submission

    Sir i have a student registration form and i just want to preview all the information before submission with the photo in a mannered format to print. Sir how can i code to do these.
  • #765370

    To implement the above task you have to design your preview screen with respective controls as you want, and while click on preview save the records in State techniques like (Viewstate, Session etc...) and then using that State techniques you can bind the records to your preview screen controls.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #765503
    So what should i do pls tell me in brief.

  • #765509
    You have to take the same form instead of input controls like textboxes e.t.c you have to use Label controls . Place a preview button . You can use state management techniques like session or Viewstate

  • #766218
    Sir please show me some examples.

  • #766222

    try this code

    Select * from students where StudID=123

    print means using javascript

    function DoPrint()

    Name : Dotnet Developer-2015
    Email Id :

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #766229
    If you want to preview you have to store the user entered value in session or something better Create Dynamic table so store the watever the user entered stored it on Datatable and pass the DT through session, for preview on the same page user Lightbox to show like modal window then get the value from the Session -- and assign to specific field.
    other way is to create a new form and take same fields that present on input form and then you can just store all values in session variable and display on new form and show new form as modalpopup using AJAX

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments