Home > .NET > Free .NET Weather & Rounded Div Container Controls

Free .NET Weather & Rounded Div Container Controls

August 20th, 2009 Leave a comment Go to comments

I used to run very small business on the side called “MJ Consulting”. I provided basic IT services to mom & pop shop businesses in my area; making sure that it did not conflict with any interests at my real job with Wachter. It was so small that I barely made enough to pay for the business license, domain name and a couple trips through the Wendy’s drive-thru. :-)

Well I haven’t done anything in that name for about a year, so I shut down the site. However, I had some .NET controls there. One was a Weather Channel control and another was a rounded corner “div” container. Typical “drag n drop” server controls. If you came here looking for those, you can find them using the links below. Shoot me an email if you have any questions or find a bug. Happy coding!

Download Rounded Div Control 3.2 Updated 02/27/2010
Download Weather Control 2.2 Updated 02/27/2010

Full source is now available on CodePlex.com for both controls.Visit http://WeatherForecast.Codeplex.com or http://RoundCorners.Codeplex.com for more details.


Like these free controls?  Please make a small donation.

  1. Hugo Martins
    October 6th, 2009 at 05:52 | #1

    I got an error Unknown server tag ‘MJC:MjcWeather’.

  2. October 13th, 2009 at 18:15 | #2

    @Hugo Martins
    Hmmm. I’ll take a sneak peak and see what the error might be.

  3. Johan
    October 18th, 2009 at 09:49 | #3

    How can I customise the colours. An example would be great!

  4. February 6th, 2010 at 12:17 | #4

    @Hugo Martins
    Did you register the control? < %@ Register Assembly="MjcWether" Namespace="Mjc.Web.UI" TagPrefix="MJC" %>

  5. February 6th, 2010 at 12:35 | #5

    @Johan
    Each theme has an embedded css file. An example of each is available in C:\Program Files\MJ Consulting\MJC Weather\Skins. So your first option would be to override the CSS in your own CSS file. If you name your css classes the same, you can override each using the !important tag after each property.

    Another option is to set the “EnableEmbeddedSkins” property to false and then set the “CustomSkin” property for your own skin. The control is going to look for the SAME css classes in your custom skin as it uses in the built in skins. For example, if you set the “EnableEmbeddedSkins” property to false and set the “CustomSkin” property to “MySkin”, the control will look for the “MySkin” name in your Css classes instead of “Blue” or “Green”, etc. So in the example below, you would replace “Blue” with “MySkin” in your own custom CSS file, register the CSS in your page or application and set the control properties accordingly.

    .BlueMjcWcLocation
    {
    font-size: 14px;
    color: Gray;
    font-family: Verdana;
    }
    .BlueMjcWcWeatherTable
    {
    padding:5px;
    background-color:white;
    border:solid 1px #c3c3c3;
    white-space: nowrap;
    width: 300px
    }
    .BlueMjcWcCurrentTemp
    {
    font-size: 32px;
    color: #1d76ca;
    font-family: Verdana;
    padding: 5px 0 5px 0
    }
    .BlueMjcWcCurrentDescription
    {
    font-size: 16px;
    color: #5eb1ff;
    font-family: Verdana;
    font-weight: bold
    }
    .BlueMjcWcCurrentProperties
    {
    font-size: 11px;
    font-family: Verdana;
    color: Gray
    }
    .BlueMjcWcForecastTable
    {
    background-color:white;
    text-align:center;
    border:solid 1px #c3c3c3;
    padding: 3px;
    width: 100%
    }
    .BlueMjcWcForecastRow0
    {
    background-color: #1d76ca;
    font-weight: bold;
    color: white
    }
    .BlueMjcWcForecastRow1{background-color: #5eb1ff;}
    .BlueMjcWcForecastRow2
    {
    background-color: #cbe6ff;
    font-weight: bold
    }
    .BlueMjcWcForecastRow3
    {
    background-color: #cbe6ff;
    font-weight: bold
    }
    .BlueMjcWcFooter{width: 100%}
    .BlueMjcWcTwcLogo
    {
    text-align: right;
    vertical-align: bottom
    }

  6. Mick
    February 13th, 2010 at 07:23 | #6

    Do we still need a commercial license for this? if so how much are they?
    Also could I use it on my companys intranet site?

    Thanks
    Mick

  7. February 13th, 2010 at 11:25 | #7

    @Mick
    No, it’s all free at this point. Although, I would appreciate a small donation. I may post the source to each of these on CodePlex.com in the coming weeks.

  8. Mick
    February 14th, 2010 at 03:24 | #8

    Thanks for that, donation has been made.

    Mick

  9. February 14th, 2010 at 06:53 | #9

    @***
    Cheers! I’ll post here when the items make it to CodePlex.com.

  10. Paul
    February 22nd, 2010 at 11:33 | #10

    MJ,

    I just submitted a donation. But it doesn’t give you the option to change the donation amount. $5 seems wayyy underpriced for a tool that’s this visually appealing. I would’ve liked to donate more.

    Moving on, can you help me get started with the Rounded Div? I’m relatively new to .Net, so let me apologize in advance if my questions seem basic; I’ve never used a tool created outside the .Net application aside from what’s in the Ajax Toolkit. I think the following questions should get me going, but please feel free to add anything else you feel may help:

    1) Can you show me some sample code depicting the rounded div you have displayed on this page with the green skin? This would give me a great jump start on utilizing the div.

    2) I’ve copied the CSS page into my project, but I don’t know what to do with the images you supplied or how to reference them. Am I supposed to add them to my project’s “Images” folder, or are the images already embedded inside the MjcRoundedDiv.dll file that I imported into .Net?

    3) When and how am I supposed to reference the CSS styling (I think if you show me the code for the green rounded div on this page, that would answer this question).

    Thanks in advance for your help.

    Regards,
    Paul

  11. February 23rd, 2010 at 12:47 | #11

    @Paul
    Hi Paul,

    Thanks for the donation! I’ve change the donation link so that you can enter the amount you wish to donate. The source is now available on http://roundcorners.codeplex.com and contains syntax examples. I hope this helps! I’ll try and get the CodePlex documentation up to date as soon as possible.

    Thanks,

    MJ

  12. JJ
    February 24th, 2010 at 22:31 | #12

    Hi MJ,

    I got this error too “Unknown server tag ‘MJC:MjcWeather’” and I did register this into my webform.

    Do I missing somthing on my webconfig or anything else?

    Thanks,

    JJ

  13. February 27th, 2010 at 20:32 | #13

    @Hugo Martins
    I identified the issue. I’ll be uploading a new version (2.2) later tonight.

  14. February 27th, 2010 at 20:32 | #14

    @JJ
    I identified the issue. I’ll be uploading a new version (2.2) later tonight. Typo’s are not my friend. :-)

  15. February 27th, 2010 at 20:52 | #15

    Alright, 2.2 is available. I had a typo in an attribute. :(

  16. Paul
    March 3rd, 2010 at 16:12 | #16

    Hey, MJ. Just donated $75 like I meant to several weeks ago.

    I finally got back to work on this .NET app after a few weeks away and I’ve had time to look further into your RoundedDiv control. I discovered this morning that it wasn’t working for me because I had it inside a formview. It works flawlessly (and is quite a nice-looking control, btw) outside the formview, but I need it inside the formview.

    Any ideas on how to make it work? All that shows up inside the formview is the header text, the plus image for expanding/contracting the contents, and the contents. Unfortunately, none of the nice graphics show up and the app crashes when I hit the plus sign. Can you offer some guidance.

    Regards,
    Paul

  17. March 3rd, 2010 at 16:19 | #17

    Hi Paul,

    Thanks a bunch for the support! I honestly haven’t tried it inside a FormView. Let me put a quick project together and see what I can come up with. In the meantime, is there anyway you can send me a sample project of the code you’re looking at?

    Thanks again,

    MJ

  18. Paul
    March 3rd, 2010 at 16:27 | #18

    No problem. Still pretty new to the .net thing; is it as simple as zipping the website folder and emailing it to you?

    Regards,
    Paul

  19. March 3rd, 2010 at 16:45 | #19

    That should work. I just setup a quick test web site and the round container worked fine in a FormView.

  20. Paul
    March 3rd, 2010 at 17:23 | #20

    Hm. Okay. I emailed it to you a few minutes ago. I should’ve mentioned the FormView sits inside a TabContainer. I’m not sure if that compounds the issue or not.

    Regards,
    Paul

  21. Paul
    March 3rd, 2010 at 17:24 | #21

    PS: I’ll poke around some more in my project. Maybe there’s something I overlooked.

    Regards,
    Paul

  22. March 4th, 2010 at 19:48 | #22

    It appears to be related to the TabContainer and works fine in a FormView.

  1. No trackbacks yet.