TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Durga Velusamy
NA
318
114k
how to convert list to array or how to do this below code
Jul 10 2015 6:35 AM
public class Emptab
{
public string rnumber;
public string sname;
public string depart;
public string active;
public string dsexecstatus;
public string dsmsg = "";
}
OdbcConnection odcon;
OdbcCommand comm;
DataTable dt = new DataTable();
string con = "Dsn=VD;uid=dba;password=sql";
public List<Emptab> insert(string[] as_connstring, List<Emptab> value)
{
List<Emptab> tDataList = new List<Emptab>();
Emptab tdata = new Emptab();
try
{
List<Emptab> arr = new List<Emptab>();
tdata.rnumber = arr[0].rnumber;
tdata.sname = arr[1].sname;
tdata.depart = arr[2].depart;
tdata.active = arr[3].active;
string ls_query="";
if (as_connstring[0] == "GET")
{
ls_query = @"insert into student values('" + arr[0] + "','" + arr[1] + "','" + arr[2] + "','" + arr[3] + "') ";
odcon = new OdbcConnection(con);
odcon.Open();
comm = new OdbcCommand(ls_query, odcon);
comm.ExecuteNonQuery();
Reply
Answers (
1
)
web service,java script
Regarding Telerik Kendo UI