views:

299

answers:

1

I have a page which consists of a formview containing several Web User Controls (WUCs.) The WUCs get a value from the parent page using a public property, which is stuffed into a HiddenField.

I just finished another WUC to manage yet another aspect of a company. It allows you to insert a new record (this is a different table) tied back to the company ID from the main page, which it gets through that public property.

The problem is that on the server when I do the insert, the InsertParameter of my LinqDataSource does not have the value... BUT this only happens on the server. On my development machine it works perfectly.

The HiddenField is getting the value before the OnInserting event, but the InsertParameter is not. (For now I'm handling the OnInserting event and setting the value from the HiddenField manually.)

Does anyone have any idea why the LinqDataSource is not grabbing the value when the site is on the real webserver, but it does do so on my development box?

A: 

Is viewstate disabled on the real webserver?

Per Hornshøj-Schierbeck
Nope, we use viewstate all over the place...
Telos