i use linq and want to send several parameters to another page,
and use it as "where cluse" how do i can?
Sending several parameters from form1 to form2
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mamta MRank #268 · 9.4K reputationPosted Sep 16, 2010, 11:07 PM EDT
For example, in the first form, write
Form2 frm2 = new Form2(p1, p2, p3);
frm2.Show();
...
In Form2, write the constructor as follows: (you can replace string with any other data type you want, I m using string as an example)
public Form2(string p1, string p2, string p3)
{
...
}