my design
style="font-weight: 700; font-style: italic; font-family: Arial, Helvetica, sans-serif"> | |
AutoPostBack="True"> | |
my code is
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=SELVI-PC\\SQLEXPRESS;Initial Catalog=bramandam;Persist Security Info=True;Integrated Security=True");
string sq = "select min(numbr) from noo where numbr=numbr";
ds = mvl.GETDS(sq);
foreach (DataRow dr in ds.Tables[0].Rows)
{
TextBox2.Text = dr["numbr"].ToString();
}
}
my error is
Server Error in '/Birmandam' Application.
Column 'numbr' does not belong to table Table.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: Column 'numbr' does not belong to table Table.
Source Error:
|

Bhabani PrasadPosted May 23, 2014, 8:02 AM
Jignesh TrivediPosted May 15, 2014, 8:26 AM
hi,
try with the code
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=SELVI-PC\\SQLEXPRESS;Initial Catalog=bramandam;Persist Security Info=True;Integrated Security=True");
string sq = "select min(numbr) as numbr from noo where numbr=numbr";
ds = mvl.GETDS(sq);
foreach (DataRow dr in ds.Tables[0].Rows)
{
TextBox2.Text = dr["numbr"].ToString();
}
}
hope this will help you.
Anupam SinghPosted May 15, 2014, 6:31 AM