I designed my page with an htmlinputtext as follows
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblTrialPeriodEnds" runat="server" Text='<%# Eval("trialPeriodEnds","{0:dd/MM/yyyy}") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
TrialPeriodEnds
</HeaderTemplate>
<EditItemTemplate>
<input type="text" name="testinput" class="textbox" value='<%# Eval("trialPeriodEnds") %>'
id="txtEffectiveDate" runat="server" />
<a onclick="showCalendarControl('txtEffectiveDate')" href="#">
<img alt="cal" src="calendar.gif" style="width: 20px; height: 20px" border="0" /></a>
</EditItemTemplate>
</asp:TemplateField>
My code in rowupdating is as follows
HtmlInputText htmInput = (HtmlInputText)GridView1.Rows[e.RowIndex].FindControl("Daily");
strExpiry = htmInput.Value;
I am getting an error as Object reference not set to an instance of an object.
Why it is displaying can any on tell