@Html.ActionLink("buttontext", "actionName", "controllerName", null, new { @class="alinkimage" })
CSS definition:
a.classname
{
background: url(../Images/image.gif) no-repeat top left;
display: block;
width: 150px;
height: 150px;
}
Monday, April 29, 2013
Saturday, April 27, 2013
Thursday, April 25, 2013
How to create an event into Google Calendar by url?
Goto google page:
http://support.google.com/calendar/answer/3033039
Fill related information, then get following link:
http://www.google.com/calendar/event?action=TEMPLATE&text=Event%20Title&dates=20140426T040000Z/20140426T050000Z&details=Event_detail&location=Event_location&trp=false&sprop=&sprop=name
http://support.google.com/calendar/answer/3033039
Fill related information, then get following link:
http://www.google.com/calendar/event?action=TEMPLATE&text=Event%20Title&dates=20140426T040000Z/20140426T050000Z&details=Event_detail&location=Event_location&trp=false&sprop=&sprop=name
Wednesday, April 24, 2013
How to validate Canada postal code by regular expression?
^[ABCEGHJKLMNPRSTVXY]\d[A-Z]\d[A-Z]\d$
Code example for ASP.NET webform RegularExpression validator
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBoxPostalCode" ValidationExpression="^[ABCEGHJKLMNPRSTVXY]\d[A-Z]\d[A-Z]\d$"></asp:RegularExpressionValidator>
Basic Concept
http://en.wikipedia.org/wiki/Regular_expression
Online Regular Expression tester
http://www.regular-expressions.info/javascriptexample.html
Code example for ASP.NET webform RegularExpression validator
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBoxPostalCode" ValidationExpression="^[ABCEGHJKLMNPRSTVXY]\d[A-Z]\d[A-Z]\d$"></asp:RegularExpressionValidator>
Basic Concept
http://en.wikipedia.org/wiki/Regular_expression
Online Regular Expression tester
http://www.regular-expressions.info/javascriptexample.html
Subscribe to:
Posts (Atom)