c# - When using IIS Express through Visual Studio 2012, resx changes are not recognized -


in html code of c# web application have resx references as:

ul class="inlinelist" li fmt:message key="scrollabletable.footer" / span data-bind="text: firstdisplayedrownumber() + '-' + lastdisplayedrownumber()" /span fmt:message key="scrollabletable.pager" / span data-bind="text: itemcount">

the resx code:

<data name="scrollabletable.footer" xml:space="preserve">     <value> showing </value> </data>  <data name="scrollabletable.pager" xml:space="preserve">     <value> of </value> </data> 

when view website through asp.net vs server, can see strings resx displayed. when use iis express, ("showing", "of") don't displayed.

any idea why?

about last comment on post:

it looks you're using namespace fmt on attribute of li element. assuming have following:

<!doctype html> <html> <head>     <!-- stuff here --> </head> <body>     <!-- stuff here -->     <ul class="inlinelist">         <li fmt:message key="scrollabletable.footer" />         <span data-bind="text: firstdisplayedrownumber() + '-' + lastdisplayedrownumber()" />     <span fmt:message key="scrollabletable.pager" />     <span data-bind="text: itemcount">      <!-- other stuff below --> 

the problem not resx. it's fmt namespace on message attribute. fmt unrecognized namespace in html since html has no concept of namespaces. xhtml, on otherhand, has concept of namespaces. when using xhtml, there's nothing stopping having other namespaces declared, either. suggest trying following:

<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fmt="urn:fmt-namespace-here" xml:lang="en"> <head>     <!-- stuff here --> </head> <body>     <!-- stuff here -->     <ul class="inlinelist">         <li fmt:message key="scrollabletable.footer" />         <!-- note: instead of specifying namespace in html element,                    following:         <li fmt:message key="scrollabletable.footer" xmlns:fmt="urn:fmt-namespace-here" />         -->         <span data-bind="text: firstdisplayedrownumber() + '-' + lastdisplayedrownumber()" />     <span fmt:message key="scrollabletable.pager" />     <span data-bind="text: itemcount">      <!-- other stuff below --> 

in example above, you've declared namespace fmt , document processor know , recognize it.

note: since didn't include spaces before sample html in op, sort of had guess @ wrote since < , > disappeared, , possibly other content following characters.

hth.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -