×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Who is good at ASP.NET? some issues regarding viewstate.

I have one page with some inputput field, including some dropdown lists. The data in those drop down lists are pulled out from a backend sql server, and maintained in other pages, if the user didn't find the item that he/she wants in the dropdown list, i want him/her to be able to create them in another page (maintaining page).

However, how do i maintain the current page viewstate when the page is navigated away, so the user doesn't have to give up all the data he/she has already input in the current page? Any good suggestion for it?
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Who is good at ASP.NET? some issues regarding viewstate.
    I have one page with some inputput field, including some dropdown lists. The data in those drop down lists are pulled out from a backend sql server, and maintained in other pages, if the user didn't find the item that he/she wants in the dropdown list, i want him/her to be able to create them in another page (maintaining page).

    However, how do i maintain the current page viewstate when the page is navigated away, so the user doesn't have to give up all the data he/she has already input in the current page? Any good suggestion for it?
    • u can use session state variable instead
    • 到你的新页面时把这些东东也submit过去,hidden, 他添加好后再submit回来...好像比较笨, cookie, session应该也可以, 不过你老人家可能追求的是更高的境界..
      • hehe..3x for the tip anyway..:) even they were denied by myself at the very beginning..:)
    • I read again, actually u should avoid to navigate to another page for this situation,
      put a textbox below for them to enter the data. Or what ever state variable u use, u still need quite a long piece of code in page_load procedure.
      • that's why i am asking, try to avoid the very long and tedious page_load. seems no easy way. and session is not good too, coz' in web, u could go anywhere from any page, nothing like model dialog..:<