asp.net - How to dynamically set text on a label inside an EditForm template? -


i've got devexpress 11 aspxgridview in .net 3.5 asp.net web forms application. i'm trying header in edit form, , doing currently:

<templates>   <editform>     <h3>edit item details</h3>     <dx:aspxgridviewtemplatereplacement runat="server" id="tr" replacementtype="editformcontent"/>   </editform> </templates> 

this working fine. however, want localize text in <h3>edit item details</hr>, can't seem figure out way so.

i've googled around bit haven't found solution. i've tried changing asp:label specific id, , inside htmleditformcreated event called:

gridvieweditformeventargs.editform.findcontrol("myheaderid") 

however, returns null.

i should note i've got custom localization going on, i'm looking way dynamically set text inside editform using code behind. there way this?

try use

label lbl = gridview.findeditformtemplatecontrol("myheaderid") label; 

method instead.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -