For DNN crossarticle module bug modification, encountered 2 small problems, here to record a bit.

Source: Internet
Author: User
Tags abstract dnn

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 ">
&LT;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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.