databinding issues... Take two

    Date: 01/06/05 (Asp Dot Net)    Keywords: asp

    Hello hello,

    Ok so here's (another) ASP.Net 2.0 question...

    I've got a GridView that's bound to a table that has several lookups:

    Field A, B and C are foreign keys. B & C's values depend on A so if A changes, so must the possible values for B & C.

    I store A's value in a Session variable. This works out nicely 'cause in 2.0, you can set Select Parameters to values of Session variables. However -- when I change the value of the Session variable, the following error occurs:

    Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

    I'm guessing that it's due to the following problem: the dropdowns I use for looking up the values of B & C are not happy about re-binding while the row is being edited, either because of the SelectedValue binding or simply because it will not re-bind to the datasource I use for the lookup.

    Any idears?



« determine event raised in... || and CVS »

antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home