Strings from resources

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/4/2006 4:22:45 AM
Gravatar
Total Posts 488

Strings from resources

I just noticed that you do not use classes that are generated for resources by asp.net runtime.

For example, you write

lnkAllUsers.Text = GetGlobalResourceObject("Resource", "MemberListAllUsersLink").ToString();

istead of

lnkAllUsers.Text = Resources.Resource.MemberListAllUsersLink


The second variant seems much better for me because of no "magic strings" in code. Why don't you use it? Is it supported on Mono?
12/4/2006 12:52:27 PM
Gravatar
Total Posts 18439

Re: Strings from resources

Good point, I will use the cleaner syntax going forward and I have cleaned up most of them in svn.

Thanks,

Joe
12/4/2006 11:15:12 PM
Gravatar
Total Posts 488

Re: Strings from resources

Some more are available in the following locations:

/ClientScript/ibox.js.aspx
/NeatUpload/Progress.aspx


P.S. If this is supported on Mono, you can even use

                title='<%$ Resources:Resource, StopRefreshAltText %>'

instead of

                title='<%# GetGlobalResourceObject("Resource", "StopRefreshAltText").ToString() %>'
12/5/2006 9:55:00 AM
Gravatar
Total Posts 18439

Re: Strings from resources

fixed in svn/branches/joesandbox2

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.