Hi,
I Have the following problem: I'm developing a NHibernate-web-based application. I have a session per http request, like it is described in many places throughout the net.
I load a dropdownlist with a List, databind it, and all OK, but when I try to change the datasource, and databind another List in the same session, the application fails and throws an exception stating that it didn't find the value.
ddlState.DataSource = NState.GetFilteredStates(Convert.ToInt32(ddlRegion.SelectedValue) , Constants.EMPTY); ddlState.DataTextField = "Name"; ddlState.DataValueField = "Id"; ddlState.DataBind();
the NState is in the business layer, and calls another method in the persistence layer which actually summons the NHibernate source code.
Is it posible to databind a dropdownlist twice in the same session?
Thanks.
Sebastian
|