Click here to Skip to main content
16,004,587 members

Comments by Coder_one (Top 8 by date)

Coder_one 29-Aug-13 3:26am View    
I appreciate your suggestion,but due to some requirements i can't add link button. I figured out that problem and adjusted it accordingly. Thanks for the consideration.
Coder_one 27-Aug-13 6:30am View    
Thanks alot. Murali. It works like a charm..! Thanks again.
Coder_one 27-Aug-13 5:12am View    
What is 'row' here?
Coder_one 27-Aug-13 4:43am View    
It shows same error because e.RowIndex can't be accessed inside txtbx_TextChanged. That is the main problem.
Coder_one 12-Aug-13 3:10am View    
Thanks Maciej.Its just just amazing. I am trying to do this since almost 13 days. This worked exactly what i wanted. But there are last two problems remaining.

1) I am calling this stored procedure like below:

SqlConnection con = new SqlConnection();
con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings[connection name].ConnectionString;
con.Open();
SqlCommand cmd = new SqlCommand("SQLQuery1",con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
This is giving me error that,SQLQuery1 doesnt exist?

2) You have mentioned data with names etc.
INSERT INTO #EmpInput (EmpName, DaTi)
SELECT 'Xing Zuber', '2013-07-13 09:10 PM'....
What if i have two columns named ename and datetime_?

You have mentioned data to be displayed in query itself.Can you help me modify this query something that fits for any data with the above mentioned two columns?