Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

dataset

Get xml from dataset.
Wednesday, 01 February 2012 04:28
Following code will give you the XML representation of the data stored in the DataSet.



DataSet mydataSet = new DataSet();
DataTable table = dataSet.Tables.Add("Items");
mytable.Columns.Add("studentid", typeof(int));
mytable.Columns.Add("name", typeof(string));
mytable.Rows.Add(1,'mac');
mytable.Rows.Add(2,'jac');
mydataSet.GetXml()

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/o9SwMh34waI/14609

 
Create clone of dataset
Wednesday, 01 February 2012 04:21
Following code copies structure of the DataSet, along with datatable relations, constraints and schemas.
Keep it in mind that it does not copy any data.


DataSet datasetcolone= mydataset.Clone();

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/dlcdQBXdZkY/14607

 
Here's A Map Showing The Devastating Power Of The Japanese Tsunami [Tsunami]
Tuesday, 27 September 2011 21:40
Japanese researchers have spent the past few months surveying Tsunami damage at 5,300 coastal locations. This information has created the largest Tsunami survey dataset in the world and the first map to visualize the crushing impact of the wave. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/BepIoAHrq88/heres-a-map-showing-the-devastating-power-of-the-japanese-tsunami

 
Using ObjectDataSource
Thursday, 17 February 2011 03:24
// description of your code here




ID="DetailsView1"
runat="server"
DataSourceID="ObjectDataSource"
AllowPaging="true">


ID="ObjectDataSource"
runat="server"
TypeName="RequestListing"
SelectMethod="GetAllRequests">





//class
using System.Configuration;
using System.Data;
using System.Data.SqlClient;

public class RequestListing
{
private static string _cnnString = ConfigurationManager.ConnectionStrings [ "ApplicationServices" ].ToString();

public static DataTable GetAllRequests()
{
SqlDataAdapter adp = new SqlDataAdapter( "select * from requests", _cnnString );

DataSet ds = new DataSet( "requests" );
adp.Fill( ds, "requests" );

return ds.Tables [ "requests" ];
}
}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/mLLdn5Spg5Y/12953

 


Taxonomy by Zaragoza Online