public string GetBookTable()
{
using (SqlConnection conn = <nobr oncontextmenu="return false;" onmousemove="kwM(4);" id="key2" onmouseover="kwE(event,4, this);" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick="return kwC();" onmouseout="kwL(event, this);" target="_blank">new</nobr> SqlConnection(ConfigurationSettings.AppSettings["MyConn"]))
{
using (SqlDataAdapter da = new SqlDataAdapter("select * from Book", conn))
{
DataSet ds = new DataSet();
da.Fill(ds, "Book");
StringBuilder strBuild = new StringBuilder();
StringWriter writer = new StringWriter(strBuild);
ds.WriteXml(writer, XmlWriteMode.IgnoreSchema);
return strBuild.ToString();
}
}
}
{
using (SqlConnection conn = <nobr oncontextmenu="return false;" onmousemove="kwM(4);" id="key2" onmouseover="kwE(event,4, this);" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick="return kwC();" onmouseout="kwL(event, this);" target="_blank">new</nobr> SqlConnection(ConfigurationSettings.AppSettings["MyConn"]))
{
using (SqlDataAdapter da = new SqlDataAdapter("select * from Book", conn))
{
DataSet ds = new DataSet();
da.Fill(ds, "Book");
StringBuilder strBuild = new StringBuilder();
StringWriter writer = new StringWriter(strBuild);
ds.WriteXml(writer, XmlWriteMode.IgnoreSchema);
return strBuild.ToString();
}
}
}