I've been having 2 minor problems recently, and I've got a record here.
This is the post I sent
The RESX problem encountered in the development of DNN module
Recently, a previous Crossarticle module was modified in which a resourkey in a Test.ascx file can always display only the text value directly given, not the value in the ResX file.
Other ascx files can use the text in their own resx.
Repeatedly check the n times, is going crazy. Using the Generate ResX under the VS2008 Tools menu does not solve the problem.
Please friends can give a hint, thank you.
Related Code snippet:
<?xml:namespace prefix = asp/> "resourcekey=" Hyplreadmore ">
<TD align= "left" nowrap>
<asp:hyperlink id= "Lnkreadmore" resourcekey= "Hyplreadmore" visible= ' <%# showreadmore%> ' class= ' Normal ' runat= "Server" text= "Details ..." ></asp:HyperLink>
</td>
Then a few friends answered, although did not solve the problem, but I still have a hint, after using "Getresourcefile (This," "as the keyword, google out the answer.)
= = = Below is the answer:
In private void InitializeComponent ()
Add "this. Localresourcefile =
DotNetNuke.Services.Localization.Localization.GetResourceFile (This, "Crossarticle.ascx"); "
Solve the problem.
URLs that are involved:
Http://anforen.5d6d.com/thread-294-1-1.html
Http://dnnme.cn/showtopic-557.aspx
Another problem is:
I was on the Ascx page, adding LinkButton, unable to handle the click event in the code behind file, double-clicking the button on the page, only in the ascx file in script code.
Just started checking the code everywhere.
Finally find the answer as follows:
When the public abstract class class, the button does not have a lightning event setting for the Properties window. Change abstract to partial to
To
= =
Two small problems, solved, here to remember, I wrote this style. The main is to allow me and everyone in the future when Google, to find clues is enough.