Topic: Example of Inserting and Retrieving data from xml file (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29587" title="Pages that link to Topic: Example of Inserting and Retrieving data from xml file (Page 1 of 1)" rel="nofollow" >Topic: Example of Inserting and Retrieving data from xml file <span class="small">(Page 1 of 1)</span>\

 
hanusoft
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Oct 2007

IP logged posted posted 10-03-2007 10:34 Edit Quote

This is an example of Inserting and Retrieving data from xml file.

http://www.hanusoftware.com


private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here

if(!IsPostBack)
{
BindGrid();
}
}


private void BindGrid()
{
ds = new DataSet();
try
{
ds.ReadXml(@"c:\inetpub\wwwroot\WebApplication10\XMLFile1.xml");
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
}
catch(Exception ex)
{
throw ex;
}
}




private void Button1_Click(object sender, System.EventArgs e)
{
ds = new DataSet();
try
{
ds.ReadXml(@"c:\inetpub\wwwroot\WebApplication10\XMLFile1.xml");
DataRow row = ds.Tables[0].NewRow();
row["name"]=txtName.Text;
row["fathersname"]=txtFName.Text;
row["address"]=txtAddress.Text;
ds.Tables[0].Rows.Add(row);
ds.WriteXml(@"c:\inetpub\wwwroot\WebApplication10\XMLFile1.xml");
txtAddress.Text="";
txtFName.Text="";
txtName.Text ="";
BindGrid();
}
catch(Exception ex)
{
throw ex;
}



Software Development Company

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 10-03-2007 11:31 Edit Quote

smells like spam.

If it's not, would mind explaining what's the purpose of this thread and what language it is

flazza
Paranoid (IV) Inmate

From:
Insane since: Jan 2005

IP logged posted posted 10-03-2007 15:14 Edit Quote

looks like c# to me (i stick to vb.net :P)

databinding in code to a dataview

(Edited by flazza on 10-03-2007 15:15)

flazza
Paranoid (IV) Inmate

From:
Insane since: Jan 2005

IP logged posted posted 10-03-2007 15:47 Edit Quote

most probably an attempt to boost their search engine ranking...

post an easy tutorial on databinding and then include 2 links, one with just the url and the other with specific link text with keywords that you want to increase your ranking for

I am guessing they are going after 'Software Development Company' keywords :P

White Hawk
Maniac (V) Inmate

From: zero divided.
Insane since: May 2004

IP logged posted posted 10-04-2007 10:01 Edit Quote

*cough* SPAM! *cough*

janebush08
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2008

IP logged posted posted 07-16-2008 14:46 Edit Quote

flazza r u a seo...?? you have good knowledge about it

janebush08
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2008

IP logged posted posted 07-16-2008 14:48 Edit Quote

This guy should provide some useful code that people requires... not the one he want to give..

Offshore software development expertise in custom software development & outsourced product development



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu