In this blog i'm posting some Asp.net,Sql Server,Jquery,HTML-5,sqlite,C#,JavaScript scripts and sample codes that i found and created by me or my friends with a mind that it Save/ Help our ass some ways...
Thursday, March 13, 2014
Monday, March 3, 2014
upcoming feature in c#
1.Add "?." operator to C#
2.Allow "default" values on automatic properties
These are some of the upcoming feature expecting in c# by there next update.http://visualstudio.uservoice.com/ visual studio admin team announced these stuff.
more info:
http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3990187-add-operator-to-c-
http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2163145-allow-default-values-on-automatic-properties
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Tuesday, January 28, 2014
Restore data after browser crash
Restore data after browser crash
Its a client requirement and we implemented by using html 5 localstorage feature. Here i'm providing a sample of that.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Local storage</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
</head>
<body>
<div>
<div>
<div>
<label>Name:</label>
</div>
<div>
<input type="text" id="name" />
</div>
<div>
<input type="button" id="btnSave" value="Save" />
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
function init() {
if (localStorage["name"]) {
$("#name").val(localStorage["name"]);
}
}
init();
});
$('input').change(function () {
localStorage[$(this).attr("id")] = $(this).val();
});
$("#btnSave").click(function() {
localStorage.clear();
});
</script>
</body>
</html>
DEMO
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Its a client requirement and we implemented by using html 5 localstorage feature. Here i'm providing a sample of that.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Local storage</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
</head>
<body>
<div>
<div>
<div>
<label>Name:</label>
</div>
<div>
<input type="text" id="name" />
</div>
<div>
<input type="button" id="btnSave" value="Save" />
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
function init() {
if (localStorage["name"]) {
$("#name").val(localStorage["name"]);
}
}
init();
});
$('input').change(function () {
localStorage[$(this).attr("id")] = $(this).val();
});
$("#btnSave").click(function() {
localStorage.clear();
});
</script>
</body>
</html>
If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)
Subscribe to:
Posts (Atom)