vikalp
unread,May 11, 2008, 2:37:58 PM5/11/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
hi,
well i downloaded that ajax toolkit control..but the problem
persists..and 1 more thing iam trying to insert a record in database
table by using various textboxes.but iam not getting the desired
output.iam mean table in the database is not populating.here is the
code.
string s3="";
string s4="";
string s5="";
string s6="";
string s7="";
string s8="";
s3=this.TextBox1.Text;
s4=this.TextBox2.Text;
s5=this.TextBox3.Text;
s6=this.TextBox4.Text;
s7=this.TextBox5.Text;
s8=this.TextBox6.Text;
string select2 = "insert into
passenger_reservation(passenger_name,age,sex,from_station,to_station)
values('"+s3+"'.'"+s4+"','"+s5+"','"+s6+"','"+s7+"','"+s8+"')";
OR
string select2 = "Insert into
passenger_reservation(passenger_name,age,sex,from_station,to_station)
Values('" + TextBox1.Text + "','" + TextBox2.Text + "','" +
TextBox3.Text +"','" + TextBox4.Text + "','" + TextBox5.Text + "')";
SqlCommand cmd = new SqlCommand(select2,conn);
cmd.ExecuteNonQuery();
i dont understand where iam getting wrong...when i build and run it
doesn't show any error..but data is not populating..also when i check
the values of s3,s4 etc by putting a breakpoint there values are very
well coming...but only thing is they are not getting into table...plz
help
thanx regards
vikalp