J
Justin Crossley
I have a webform that lists search results using an XML control
The search results are contained in a string called strResults and are transformed using an xsl file into formatted results.
The c# code is as follows:
XslTransform trans2 = new XslTransform();
trans2.Load(Server.MapPath("HitList.xsl"));
xmlSearchResults.DocumentContent = strResults;
xmlSearchResults.Transform = trans2;
This works fine, but I want to be able to do a postback whilst maintaining the search results using viewstate.
If I enable viewstate the xml control is empty after the postback.
Other controls on the form successfuly return their viewstate so everything else appears to be working.
Any ideas anybody?
Thanks
Justin Crossley
The search results are contained in a string called strResults and are transformed using an xsl file into formatted results.
The c# code is as follows:
XslTransform trans2 = new XslTransform();
trans2.Load(Server.MapPath("HitList.xsl"));
xmlSearchResults.DocumentContent = strResults;
xmlSearchResults.Transform = trans2;
This works fine, but I want to be able to do a postback whilst maintaining the search results using viewstate.
If I enable viewstate the xml control is empty after the postback.
Other controls on the form successfuly return their viewstate so everything else appears to be working.
Any ideas anybody?
Thanks
Justin Crossley