"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Friday, May 2, 2014

Introducing MathCap for Asp.Net [ Math Captcha Plugin ]

MathCap is a plugin for .net application and its a 100% effective and easy to use.the more you understand on a deep look.

Here i shared is the base version of Mathcap 1.0.0. More feature are coming on a newer versions.

How it use?

add mathcapp dll reference

invoke the namespace on the webpage using MathCapcha;

Add the below code
                var bitmapImage = new Capcha();
                var properties = new MathCapchaProperties();
now customise the properties


now get the response and point to image control, using below code.

               var imgur = bitmapImage.CreateThumbnail(properties);
 
               img.Src = imgur.bmpImageSource; 
               Response.Write(imgur.answer);

Output














NOTE: In near by future itself 'm planning to make it a control but before that i need to add some cool feature that by i made it like this :)

DOWNLOAD dll From here

If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)

Wednesday, April 2, 2014

GET SET in C#

Get:
The get { } implementation must include a return statement. It can access any member on the class.

Set:
The set { } implementation receives the implicit argument 'value', which is the value to which the property is assigned.

Thursday, March 13, 2014

keep the sessionID on url

keep the sessionID on url

Recently i found an intersting stuff around axisbank url.


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 :)

Wednesday, January 15, 2014

Quick walk over most used JavaScript function

Quick walk over most used JavaScript function

Again a url :). This one helps to make a quick walk over the stuff we done previously.

https://code.google.com/p/jslibs/wiki/JavascriptTips

If u had any trouble just ask, Happy to help u :)
Stay Tune... Have a nice day... 'N happy Coding :)

Tuesday, January 14, 2014

everything (almost) about ViewState

Recently i had read an article about the view state management in c# and its go through much deeply also.
 http://aspnetresources.com/articles/ViewState

Thanks to the author for sharing such a good articles :)


If u had any trouble just ask, Happy to help u :)
Stay Tune...
Have a nice day... 'N happy Coding :)