问题
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