DataPicker in GridView

Posted by Moloy73 under ASP.NET on 9/10/2008 | Views : 3102 | Status : [Member] | Replies : 2
Hi,
I am facing a painful problem using DatePicker in DataGrid. The problem is the when I am clicking the date in the popped up calender, the date is getting greyed but the date value is not getting into the datagrid textbox. The code is given below:

<EditItemTemplate>
<Asp:TextBox ID="txtHelpDeskRequestDate" Text='<%# DataBinder.Eval(Container.DataItem, "HelpDeskCallDate" ) %>' runat="server" Width="70px" ReadOnly="false">
</Asp:TextBox>&nbsp;&nbsp;
<a href="javascript:;" onclick="calendarPicker('form1.txtHelpDeskRequestD ate');" title="Pick Date from Calendar"><img src="/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp" align = "left">
</a>
</EditItemTemplate>


The function is like this:
function calendarPicker(strField)
{
window.open('/DatePicker.aspx?field=' + strField,'calendarPopup','width=250,height=190,res izable=yes');
}

Please Help




Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

put txtHelpDeskRequestD .Text or receieve strField.value

Mark as Answer if its helpful to you

Moloy73, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 12/10/2008 [Member] Starter

Up
0
Down
I think you don't have proper vlaue in the field querystring, check for it.

Thanks

Regards,
Raja, USA

Moloy73, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response