asp.net - Is it possible to serialize the instance of the SqlDataSource into structured text, such as XML? -
i'm developing in-house asp.net application, due reason, i've create dynamic page dynamic created sqldatasource(s). so, i'm finding way serialize , persist sqldatasource instance(s) structured text(s) (e.g. xml), , later on de-serialize structured text(s), instantiate corresponding object(s) of sqldatasource.
please kindly advise simplest way that.
thank you!
william
simplest way serialize relevant properties (such connection string, selectcommand) - these way strings. de-serializing, create new sqldatasource
, set these properties (or pass them via constructor).
Comments
Post a Comment