J
Jeremy
I'm having some problems with using Server.Transfer and I
am hoping somebody can help me.
Page 1 has a datagrid, Page 2 has a form.
If a user goes to page 1 and selects something out of the
datagrid I want to transfer the value of that records item
number in the grid over to page 2. I use the passed
number to retrieve data from a database and populate the
form.
So far, what I've explained I have working. My problem is
that when I go directly to page 2 I get an error about an
invalid cast type and I want to see a blank form that I
can use to insert a new record into the db (as opposed to
updating an existing record when the value gets transfered
to the form).
I am hoping that somebody can explain to me how to do this.
Thanks,
Jeremy
am hoping somebody can help me.
Page 1 has a datagrid, Page 2 has a form.
If a user goes to page 1 and selects something out of the
datagrid I want to transfer the value of that records item
number in the grid over to page 2. I use the passed
number to retrieve data from a database and populate the
form.
So far, what I've explained I have working. My problem is
that when I go directly to page 2 I get an error about an
invalid cast type and I want to see a blank form that I
can use to insert a new record into the db (as opposed to
updating an existing record when the value gets transfered
to the form).
I am hoping that somebody can explain to me how to do this.
Thanks,
Jeremy