Author: zahidzia | Posted on: 12/4/2010 3:41:28 PM | Views : 461

I have a gridview and template field (textbox) control. on GridView_RowDataBound I want to find the control and pass the control id to a javascript which will set datepicker on that textbox here is how I am doing but its not working...can u please help.
Code behind
----------------
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
// string strParams;
/// string id;

if (e.Row.RowType == DataControlRowType.DataRow)
{
//Get Instanse of all the objects
DropDownList dd1 = (DropDownList)e.Row.FindControl("DDBillingMonths");
TextBox tb1 = (TextBox)e.Row.FindControl("txtCurrBillUnits");
TextBox tb2 = (TextBox)e.Row.FindControl("txtAmountBDueDate");
TextBox tb3 = (TextBox)e.Row.FindControl(& ...

Go to the complete details ...