Blog

My blog serves as a way for me to post solutions to problems I solve at work or during the long hours of freelance work.


String.Format

by Ezekiel 12. August 2014 03:56

 

Currency "{0:c}"

Date "{0:MM/dd/yyyy}"

Tags: ,

C# | General | Javascript | MVC | Razor Views

Remove Text from Textbox during OnClick using Razor View

by Ezekiel 7. January 2014 10:49

 

            <div class="editor-field">
                @Html.TextAreaFor(model => model.Product.Description, new
                                {
                                    onfocus="(this.value == 'enter description') && (this.value = '')",
                                    onblur="(this.value == '') && (this.value = 'enter description')"
                                })
                @Html.ValidationMessageFor(model => model.Product.Description)
            </div> 

 

Tags: , ,

Javascript | MVC | Razor Views

RecentPosts