Custom paging with Entity Framework
When we want to implement custom paging we use page number and page size. Sample code below: [crayon-6767ce9be74be976857409/]
Read moreWhen we want to implement custom paging we use page number and page size. Sample code below: [crayon-6767ce9be74be976857409/]
Read moreThis example shows how you can use C# to encrypt and decrypt strings using a salt key to protect the data. This type of encryption is called symmetric-key encryption, which means that the string can only be decrypted if the other party has the correct key. [crayon-6767ce9be7894370688319/]
Read moreI have one Url of website(for downloading file), I don’t want to show this url. When downloading, I can call window.location.href = “full link file path”). After some time, I have called redirect to another page of the web site/application: [crayon-6767ce9be79b0018674645/] Enjoy..
Read moreDemo: PinOnMap Here is the source code to show pin on Google map using JavaScript: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> [crayon-6767ce9be7ae0688606118/] </script> // html code <body onload="initialize(new google.maps.LatLng(18.5203,73.8567))" style="font-family: Arial; border: 0 none;"> <input type="text" size="52" name="address" id="Address" />
Read moreDemo: ImagePreview Here is the source code for image preview before upload using jQuery: <script src="http://mundrisoft.com/js/jquery.min.js"></script> <script type="text/javascript"> [crayon-6767ce9be7c33321118626/] </script> [crayon-6767ce9be7c38395476235/] Please drop comment if you have any question :)
Read moreScript code: <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript" > </script> <script type="text/javascript"> [crayon-6767ce9be7d70420674025/] </script> Html code: [crayon-6767ce9be7d76227385010/] Demo: GetFileSize If you have any query then drop a comment :)
Read moreThe following is an example that demonstrates how I was able to successfully schedule jobs. Start by implementing the IJob interface to create a job that can be managed by Quartz.Net. [crayon-6767ce9be7ef2531708747/] Then in the RoleEntryPoint OnStart() method create and configure the scheduler with a trigger and the daily job. This is the part that was greatly lacking in
Read moreIf you have data in excel and you want to add data in you database using C# this is useful example. Follow below steps: Step 1: Create database tables to import data [crayon-6767ce9be80a8559342147/] Step 2: Add below namespaces in your project [crayon-6767ce9be80ad903994735/] Step 3: Add below method and send file path to this method as parameters. [crayon-6767ce9be80b1750943780/] This method get file path
Read more