Whats the best way of sending a lot of parameters between pages?

假如想象 提交于 2020-01-06 15:11:43

问题


I have one JSF page and I would like to get to another with a lot of parameters. when I add them to query string by f:param at h:link it would be very long and unclear, like this:

http://www.example.org/?id1=1&id2=2&id3=3&id4=34324&id5=fdgfrde&id6=434&id7=4324&id7=5543&id8=rewr&id9=fwefe&id10=1021021&id11=retert

what is the best why of sending this parameters between pages?


回答1:


Based on your requirement, for example which data is not going to chaged frequently those data can be obtained from cookie or view state etc don't forgot to encrypt...




回答2:


Please learn about the following things then u can get the answer by ur self...

State Management in asp dot net

Client side

Hidden Field

View State

Cookies

Control State

Query Strings

Server side

Session

Application

for more details

http://www.codeproject.com/Articles/492397/State-Management-in-ASP-NET-Introduction



来源:https://stackoverflow.com/questions/20903577/whats-the-best-way-of-sending-a-lot-of-parameters-between-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!