On CBS.com: Six show girls attacked
3 Resources for

hanuseo@...

  • Subscribe to this listing via:
  • RSS
  • Email

TechRepublic Resources

example of Inserting and Retrieving data from xml file
This is an example of Inserting and Retrieving data from xml file. http://www.hanusoftware.comprivate 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:inetpubwwwrootWebApplication10XMLFile1.xml"); DataGrid1.DataSource = ds; DataGrid1.DataBind; } catchException ex { throw ex; } } private void Button1_Click(object sender, System.EventArgs e) { ds = new DataSet; try { ds.ReadXml(@"c:inetpubwwwrootWebApplication10XMLFile1.xml"); DataRow row = ds.Tables[0].NewRow; row["name"]=txtName.Text; row["fathersname"]=txtFName.Text; row["address"]=txtAddress.Text; ds.Tables[0].Rows.Addrow; ds.WriteXml(@"c:inetpubwwwrootWebApplication10XMLFile1.xml"); txtAddress.Text=""; txtFName.Text=""; txtName.Text =""; BindGrid; } catchException ex { throw ex; }[url=http://www.hanusoftware.com]Software Development...
Tags: hanuseo@..., BindGrid, c:inetpubwwwrootWebApplication10XMLFile1.xml, XML file, XML
Discussion threads 2007-09-26
Example of Image Upload
Here we are uploading images in File System and storing path in the database. http://www.hanusoftware.comCode (ImageUpload.aspx.cs) :-private void Button1_Click(object sender, System.EventArgs e) { // Here I am uploading images in Images folder of C drive.int intResult=0;string strPath = @"c:Images"+Path.GetFileName(File1.PostedFile.FileName);SqlConnection con = new SqlConnection("server=.;uid=sa;database=pubs;pwd=");SqlCommand com = new SqlCommand("Insert into Category(name,imagepath) values(@name,@imagepath)",con); com.Parameters.Add("@name",TextBox1.Text); com.Parameters.Add("@imagepath",strPath); con.Open; intResult = Convert.ToInt32(com.ExecuteNonQuery); if(intResult...
Tags: hanuseo@..., strPath, SqlConnection, SqlCommand
Discussion threads 2007-09-20
example of Server.Transfer and Context Handler
This is an example of Server.Transfer and Context Handler.Through this we can get the multiple values of previous form.http://www.hanusoftware.comIn this page we are displaying data from previous form. We can use this technique for multiple form registration form.Code (ContextParent.aspx.cs): -private void Button1_Click(object sender,System.EventArgs e) { Server.Transfer("ContextChild.aspx"); } internal Hashtable Value { get { Hashtable objHT = new Hashtable; objHT["Name"]=TextBox1.Text; objHT["FathersName"]=...
Tags: hanuseo@..., Hashtable objHT, Server.Transfer, Response.Write
Discussion threads 2007-09-07
  • << Previous
  • page 1 of 1
  • Next >>


TechRepublic's E-mail Usage Policy
Numerous studies indicate that personal e-mail use at work is a leading cause of lost productivity. In addition, personal e-mail use can introduce vir ...
Buy Now
Windows XP vs. Mac OS X
This presentation, entitled Standardizing on Windows XP Instead of MAC OS X, provides a pre-packaged option for defending Windows XP against MAC OS X. ...
Buy Now