Return Value on a diffrent form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all!

I have SP that returns a value.
txtTableid.Text = cmdLog.ExecuteScalar is basicly the line of code to get
this return to this text box. Thanks again for the tip on that one. Anyway,
I want this text box to be on a diffrent form. When the button is clicked,
it returns the value, then it takes you to the next form. How can I return
the value from that SP to a textbox on a diffrent form, without making
another SP on the second form?

TIA!!!

Rudy
 
Hi,

You can use one of the following ways...

1.Pass the return value in the QueryString
2. Store the value in a hidden control and access the control value in the
second form through forms collection

3. Store the value in a session variable and retrive it in the second form

4. Store it in a public variable and get it

Cheers,

Jerome. M
 
Back
Top