Answer Posted /

Is This Answer Correct ?    Yes No




Post New Answer   View All Answers


Please Help Members By Posting Answers For Below Questions

why in uv calibration in Limt of absorbance parameter specific absorbance is calculated only for selected wavelength

1174


what is basic difference betmeen normal & flame proof motor??

538


What is the intermediate language between asp and asp.net1.0?

674


"Gates of the dams are generally designed of curved shape". Why?

445


what do you consider to be your most important achievement &biggest regret of the past year

2305


accounting & audit system of film production enterprises

1030


WHY U HAVE CHOOSE ICWA WHY NOT CA

939


why java does not support unsigned keyword?

2748


fridge was capital or revenue?

762


What is public-key cryptography ?

713


how ITIL process occurs in weblogic?

135


what is user specific parameter?

746


How do large trees, such as redwoods, get water from their roots to the leaves?

875


I have written the code as below. here problem is that dt remain null. how to solve thst please tell me. public partial class Form1 : Form { private DataTable DTable; private DataRow drow; public Form1() { InitializeComponent(); } private OleDbConnection getConnection() { OleDbConnection con=new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\winApp for Student\winApp for Student\App_Data\SchooMgnSystem.mdb;Persist Security Info=True"); return con; } private void button1_Click(object sender, EventArgs e) { InsertData(); } private void InsertData() { if (DTable==null) { DTable = new DataTable(); DTable.Columns.Add("StudID", typeof(string)); DTable.Columns.Add("StudName", typeof (string)); DTable.Columns.Add("Address", typeof(string)); drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } else { drow = DTable.NewRow(); drow[0] = txtStudID.Text; drow[1] = txtSTudName.Text; drow[2] = txtAddress.Text; DTable.Rows.Add(drow); grdStudent.DataSource = DTable; } } private void button2_Click(object sender, EventArgs e) { string cmdstr; OleDbCommand cmd; OleDbConnection con = getConnection(); foreach (DataRow Drow in DTable.Rows) { cmdstr = "Insert into Student values('" + drow[0].ToString() + "','" + drow[1].ToString() + "','"+drow [2].ToString()+"')"; cmd = new OleDbCommand(cmdstr,con); try { con.Open(); cmd.ExecuteNonQuery(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { con.Close(); } } }

1303


how can u calculate efficiency of one welder in piping work.if we give support staff for his work.

695