Home > Net >  Randomly from the database query, value problem
Randomly from the database query, value problem

Time:09-23

How to put the webForm1 the load data to webForm2

CodePudding user response:

A small amount of data can be used browser parameter
A lot of bad lane
You say first applications?

CodePudding user response:

reference 1/f, autumn red fruit reply:

can use a small amount of data browser parametersA lot of bad lane
You say first applications?
not much data, dozens of, is I do a test system

CodePudding user response:

reference 1/f, autumn red fruit reply:

can use a small amount of data browser parametersA lot of bad lane
You say first applications?
with the session data will change

CodePudding user response:

Methods varied,
Put the cache, redis can,
But personally, I feel it is not necessary to
You can put the session, the Dictionary can be

CodePudding user response:

Look at your hair figure, you'd better change the design thinking, why is form1 detected data and pass?
Conventional way is: form1 to form2 only send a key code as the primary key of the exam questions, form2 after receiving the primary keys, to check the database and get data
Pass the primary key, such as... Webform2.aspx? Id=10001...

CodePudding user response:

And you figure in the list with the static unless everyone exam questions, otherwise, please don't use the static

CodePudding user response:

refer to the fifth floor in the autumn red fruit response:
carefully looked at your figure, you'd better change the design thinking, why form1 detected data and pass?
Conventional way is: form1 to form2 only send a key code as the primary key of the exam questions, form2 after receiving the primary keys, to check the database and get data
Pass the primary key, such as... Webform2.aspx? Id=10001...
so id is become

CodePudding user response:

cited the 6th floor in the autumn red fruit response:
also, you figure in the list with the static, unless everyone exam questions, otherwise, please don't use the static
this is random load every problem is not the same as

CodePudding user response:

cited the 6th floor in the autumn red fruit response:
also, you figure in the list with the static, unless everyone exam questions, otherwise, please don't use the static
had the characteristics of the load is random load, if I change it to non-static variables also have to write a getset method

CodePudding user response:

You don't need a WebForm2, this make a div hidden in WebFrom1, need to display your traversal of a record, div display is ok,

CodePudding user response:

All the f1 form post directly to the f2 is not finished??

CodePudding user response:

references to the tenth floor EdsionWang response:
you don't need a WebForm2, this make a div hidden in WebFrom1, need to display your traversal of a record, div displayed,
I know why, because I am using asp server: button, each click refresh, but don't use this button to submit, server in the background of button click event is gone

CodePudding user response:

Get a arrays put ID are all in the past
  • Related