// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using System.Collections;
using System.Collections.Specialized;
+using System.Data;
using System.Text;
using System.ComponentModel;
{
SessionField = sessionField;
}
+
+ public SessionParameter (string name, DbType dbType, string sessionField) : base (name, dbType)
+ {
+ SessionField = sessionField;
+ }
protected override Parameter Clone ()
{
return new SessionParameter (this);
}
-
- protected override object Evaluate (HttpContext ctx, Control control)
+ protected internal
+ override object Evaluate (HttpContext ctx, Control control)
{
- if (control == null || ctx.Session == null)
+ if (ctx == null || ctx.Session == null)
return null;
return ctx.Session [SessionField];
}
}
}
-#endif
+