Hi suncheita,
your code
[e.RowIndex].FindControl("txtApplnm");
My Sugg.
[e.RowIndex].FindControl("pagename_txtApplnm");
Bye
On Tue, May 19, 2009 at 9:16 AM, ASP_NET <[email protected]> wrote:
>
> i am trying to access the value entered in the textbox in gridview.
> TextBox ApplicationName = (TextBox)ctlGridView.Rows
> [e.RowIndex].FindControl("txtApplnm");
> above is the code.
> Is it correct? becoz i am still getting value as null.
>
> On May 18, 10:37 pm, Cerebrus <[email protected]> wrote:
> > Oh, really ? You forgot to ask a question !
> >
> > On May 18, 4:12 pm, ASP_NET <[email protected]> wrote:
> >
> >
> >
> > > i get null when i try to access the textbox value in the grid.
> > > TextBox ApplicationName = (TextBox)ctlGridView.Rows
> > > [e.RowIndex].FindControl("txtApplnm");
> >
> > > ApplicationName.text returns null even though value is added after
> > > gridview edit click.- Hide quoted text -
> >
> > - Show quoted text -
>
--
Thanks & Regards
Dnyaneshwar Bhamare
Mob:9420495604