Coding is Fun, Coding is Boring, Coding is Love!
Tutorials and Snippets for easy life.
-
List logins on SQL Server instance
Following sql query returns the list of logins in a sql server
-
Generate C# Class from Table using SQL
This is a wonderful snippet that generates C# Class from a Table inside SQL Management Studio, just change the table name Source: https://stackoverflow.com/questions/5873170/generate-class-from-database-table
-
Search text in all stored procedures in SQL Server
You may use your particular database name like
-
Find total Number of columns in a Table in SQL Database
SQL Query to find total number of columns in a Table in SQL Database,
-
Owin Google Logout in Asp.net Identity
In our asp.net application we can use Owin to login and/or register with Gmail. After creating a successful login to your asp.net application using gmail. You can still see that the gmail is logged in eventhough you are redirected to your application. The following snippet…
-
Remove index.php from wordpress URL in IIS
Recently, I installed a WordPress website in the IIS web server and did all the standard settings in the wordpress admin, like general, reading, permalinks. And when running the site all the URL were with index.php eg. site.com/index.php/about-us/. so to remove the index.php from the…
-
Prevent Cross Site Scripting – Disable Form Submission if HTML tags detected using Custom Validator Javascript in ASP.NET Webform
Still there are applications developed using asp.net webform. In your application when a user enters html tags for cross site scripting or load malicious script to inject into your site in your forms and submit you will get the following error A potentially dangerous Request.Form…
-
List of Spam Emails and Email Servers in India
hi I am going to update this post, with list of emails and email servers that are sending spam emails to all the users in india for business prospects, All the emails advertise different products and services from Tata, ICICI Bank, HDFC Bank, Reliance, Naaptol,…
-
Find recently Added Stored Procedures in Sql Server
Here is a small snippet, to find the recently added stored procedure that you created in your sql server, this can be useful when did not keep track of the stored procedures in your project.
-
Using Date Format in Eval
Hi this is a very simple tip, when you want to Date Format and Use Date Format in Eval, here is the snippet. You all know that Eval or Bind can only be used inside DataControls like Gridview, Repeater, Datalist Snippet for Using Date Format…