.rounded-corners {
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;
}
http://jonraasch.com/blog/css-rounded-corners-in-all-browsers
Tuesday, January 17, 2012
What is NoSQL
NoSQL databases aim to save Business Entities directly to a persistence store without O-R Mapping.
NoSQL stands for ‘Not only SQL’. Martin Fowler recently posted on his blog that calling NoSQL as ‘Not only SQL’ is unnecessarily polite. It should mean ‘NO-SQL’.
Reference:
http://www.devcurry.com/2012/01/hello-ravendb-introducing-ravendb-for.html
NoSQL stands for ‘Not only SQL’. Martin Fowler recently posted on his blog that calling NoSQL as ‘Not only SQL’ is unnecessarily polite. It should mean ‘NO-SQL’.
Reference:
http://www.devcurry.com/2012/01/hello-ravendb-introducing-ravendb-for.html
Monday, January 16, 2012
How to recursively disable all of elements inside a div by Javascript?
<script type="text/javascript">
$('#readonlydiv').ready(function
() {
RecursiveDisable(document.getElementById("readonlydiv"));
});
function RecursiveDisable(element) {
try {
element.disabled = element.disabled ? false
: true;
}
catch (E) {
}
if (element.childNodes &&
element.childNodes.length > 0) {
for (var x = 0; x
< element.childNodes.length; x++) {
RecursiveDisable(element.childNodes[x]);
}
}
}
How to handle multiple buttons in one form in ASP.NET MVC?
1.
Razor view:
@using (Html.BeginForm())
{
<fieldset>
<legend>Edit </legend>
<div class="editor-label">
@Html.LabelFor(model
=> model.ID)
</div>
<p>
<input name ="button"
type="submit"
value="Save"
/>
<input name ="button"
type="submit"
value="Reject"
/>
<input name ="button"
type="submit"
value="Accept"
/>
<input name ="button"
type="submit"
value="Complete"
/>
</p>
</fieldset>
}
2. Controller
[HttpPost]
public ActionResult
Edit(string button)
{
switch (button)
{
case "Save":
break;
}
return RedirectToAction("Index");
}
Subscribe to:
Posts (Atom)