Site

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.
6/17/2010 11:31:11 AM
Gravatar
Total Posts 156

mp:SiteLabel Rendering

I decided to use mp:SiteLabel  control in order to localize all the labels within the form.  However, it looks like all the final labels, don't have a for="" attribute added to them.  As a result, the user can't click on the label associated with a form control (checkbox or radio button for ex.) in order to change their state.  I took a look at SiteLabel.cs and it looks like there is a "forString" declared for the very purpose of adding "for=<control_name>" to the final mark-up, but it's not being added.

Here's an example of  of a label I have in my ascx:

<mp:SiteLabel ID="lblNeededMost" runat="server" ForControl="rdbNeededMost" ConfigKey="lblNeededMost"
                                                    ResourceFile="OnlineGivingResources" />


The rendered mark-up just ends up being:
<label>where needed most</label>

6/17/2010 11:50:27 AM
Gravatar
Total Posts 18439

Re: Site

It means it can't find the control rdbNeededMost

6/17/2010 11:53:50 AM
Gravatar
Total Posts 156

Re: Site

Ah, well that would make sense.   Because I was looking at the code and I see that if statement (c != null), but I totally disregarded the fact that I have not converted all of my html into asp controls.

Thanks.

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