[RESOLVED] Assign a value to a html control from Public Function
Hi everyone,
Recently, I filled up a datagrid using column templates. Each column pointed to Public Function in the code behind.
Can I use this on html controls also?
Example....
<input type="button" onclick="btnEmail('check')" name="buttonEmail" value='<%# TestAddTextToButton() %>'>
It does not seem to work, and I'm wondering if either...
1-I'm using the wrong syntax
2-It's not possible to do this.
Note: I can't use response.write because that will place my control on top of the page.
Any help is greatly appreciated. :afrog:
Re: Assign a value to a html control from Public Function
No, but all you have to do is convert it to a Server Control and you can :)
Re: Assign a value to a html control from Public Function
Quote:
Originally Posted by plenderj
No, but all you have to do is convert it to a Server Control and you can :)
thank you. that worked :thumb: