how to get the Footer Template's TextBox id at Client Side
Reply
![]() |
|
From:
![]() s_hashim
|
I have a footer template with Textbox id="txtQ_StartDate_ft" in the data grid
i have one _javascript_ for calendar popup which accepts textbox id to return the date.
but at run time the text box id will be changed for the datagrid
at server side i can acces the text box like e.Item.FindControl("txtQ_StartDate_ft")
at run tine when i saw the view source for the page the id for Textbox was id="dgSubPeriods__ctl3_txtQ_StartDate_ft"
how to get this ("dgSubPeriods__ctl3_txtQ_StartDate_ft") at client so that i can pass that to _javascript_ below
<FooterTemplate> <asp:TextBox ID="txtQ_StartDate_ft" Width="75px" CssClass="txtBox" Runat="Server" MaxLength="10" /> <a href="" src="">width="16" height="16" border="0" alt="Click Here to Pick up the date"></a> </FooterTemplate>
<script language="_javascript_"> var Q1cal1 = new calendar1(document.frmAdmin.txtQ_StartDate_ft); Q1cal1.year_scroll = true; Q1cal1.time_comp = false; </Script>
********** Keep Smiling, Regards.
Sayad Hashim Ali Kazi Microsoft India Community Star.
SQL Star International Ltd. SQL House, #13,Infocity,Madhapur, Hyderabad 500 081. Tel: +91-40-2310 1625(Off) +91-98491-29500(Cell) www.mugh.net
|
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|