2014年7月13日 星期日

[RESOLVED] Calendar control in templates


In a grid, I'm having name, date of birth...To edit date of birth, i need a date control with text box and image button. So, when click on edit , DOB value should display in the textbox, calendar control should hide. when click on image button, make calendar
control visisble. 


The problem is on click event of image button, I don't know how to access calendar control and make it visible. Please give me some idea. 



Check these link:


http://www.codeproject.com/Tips/407460/How-to-use-ASP-NET-AJAX-Calender-Extender


http://carlosrivero.com/node/41


May be their is some mistake in your code. just verify it.



In the above they are using ajax controls. But I want to use asp calendar control. is it possible or we can use only ajax control for this. 



http://forums.asp.net/t/1516969.aspx/1



Hi,




albasith1000


The problem is on click event of image button, I don't know how to access calendar control and make it visible.


You can first access gridview control and then using findcontrol like this


GridView1.Rows[GridView1.EditIndex-1].FindControl("CalendarID")

And refer the resolved thread


http://objectmix.com/dotnet/300846-cant-find-control-within-edit-row-gridview-please-halp.html


Hope it can help you.


沒有留言:

張貼留言