Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. rRetaining Data in web form after transfer to another form and back

rRetaining Data in web form after transfer to another form and back

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sakshi Smriti
    wrote on last edited by
    #1

    Hi, I have two fileds in a form both are combo box ie month and year and not data bound (form1) . from this form I am going to another page (form2) and from form2 back to form1 I have to show the same values of the combo ie month and year(which was selected by user ) when form 1 is loaded again what is the correct way of passing data in two web pages in asp.net ie retaining the values of the drop down list in the form1 no use of sessions or global variables please What is the correct way of doing it thanks in advance :) Sakshi

    C 1 Reply Last reply
    0
    • S Sakshi Smriti

      Hi, I have two fileds in a form both are combo box ie month and year and not data bound (form1) . from this form I am going to another page (form2) and from form2 back to form1 I have to show the same values of the combo ie month and year(which was selected by user ) when form 1 is loaded again what is the correct way of passing data in two web pages in asp.net ie retaining the values of the drop down list in the form1 no use of sessions or global variables please What is the correct way of doing it thanks in advance :) Sakshi

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It's not possible. Instead, you'd need to turn the two pages into controls, so they could both exist on one page, then viewstate will maintain the state of form1, even when it's not visible, and form2 is being shown.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups