DatePickerControl: Reference Using Findcontrol

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.
8/11/2009 2:09:52 PM
Gravatar
Total Posts 131

DatePickerControl: Reference Using Findcontrol

Two questions on the datepickercontrol

I have a control inside of a loginview so I need to use Findcontrol.  What type of control do I cast the datepickercontrol to as a reference, as I can't find it in intellisense.

Also, my datepickercontrol, use in two different places in 2 different way is wrapping the '...' button.  It always shows on a different line, so it look poor.

Any ideas?

8/11/2009 11:12:25 PM
Gravatar
Total Posts 131

Re: DatePickerControl: Reference Using Findcontrol

I figured out how to reference the control using findcontrol.  the control just requires a fully qualified reference

mojoPortal.Web.Controls.SiteLabel controlName= (mojoPortal.Web.Controls.SiteLabel)outerControl.FindControl("controlName");
 

Still wrapping, however.

 

8/12/2009 6:26:54 AM
Gravatar
Total Posts 18439

Re: DatePickerControl: Reference Using Findcontrol

Looks like you are getting a reference to a SiteLabel control not a mojoPortal.Web.Controls.DatePickerControl.

To prevent wrapping put it in a div with a css class that has white-space: nowrap;

Hope it helps,

Joe

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