.net - How to use Resource File for html parameters? -
in project using resource files , calling resource file following syntax:
@httpcontext.getglobalresourceobject(customersresource, "t_gobackcustomer")
where customersresource resource file name , t_gobackcustomer key name. value of key "go previous page". whole value rendering labels , other places without problem.
but when use <a title=@httpcontext.getglobalresourceobject(customersresource, "t_gobackcustomer")>
first word coming title. i.e while pressing f12 can see
`<a title="go" previous page></a>'
only "go" coming title. words after space not considered title. same case placeholder. can mistake doing here?
i have found solution problem. have use following syntax words spaces.
<a title='@httpcontext.getglobalresourceobject(customersresource, "t_gobackcustomer")'>
the single quotes did magic. labels , controls no need use single quotes. while using html parameters title , placeholder must need use quotes.
Comments
Post a Comment