RSSCategory: .NET

Image in TextBox & RichTextBox

| December 25, 2010 | 0 Comments

This article deals with how to show Image in TextBox and RichTextBox control. I googled for same but found little or was too complex to implement as per my understanding. Well! The noteworthy point is that in either of methods shared here uses alternative solution. There is no such direct way to do. Second thing is […]

Continue Reading

Update database from DataGridView

| December 21, 2010 | 0 Comments

Most of time developer want their users to be able to update database from DataGridView in Window Forms. So this article deals with concept of how to update tables in database from DataGridView. The main task of updating database is done with the help of System.Data.SqlClient.SqlDataAdapter.Update() method.  System.Data.SqlClient.SqlCommandBuilder generates required command for SqlDataAdapter when Select […]

Continue Reading

Print integers in reverse order using LinkedLists

| December 15, 2010 | 0 Comments

Scenario: You need to make program in C that can accept numbers from user and print integers in reverse order using LinkedLists. Solution: There are three functions: Insert – Insert each number or integer into LinkedList from user. Reverse – Reverse each number in linkedlist starting from first number in linkedlist. PrintList – Print each […]

Continue Reading

Add first ten odd numbers in C

| December 15, 2010 | 0 Comments

This article demonstrates how to add first ten odd numbers in C starting from 1. I am writing this article as I was preparing assignment of SMU MCA First Semester August 2010 MC0061. So I too faced problem for that. Well … this is solution for those students.

Continue Reading

Relative path to file in Solution Explorer

| September 30, 2010 | 0 Comments

You have solution created in C# or in WPF. To this solution you have added a new folder named Images or something else. And to this folder you have added a file named car.jpg. Now you want to access same file in your application. In the following article we are going to share how to […]

Continue Reading

Missing JavaScript Intellisense Items in VS IDE

| August 30, 2010 | 0 Comments

As a developer you might have noticed some of the javascript intellisense items missing while developing website with Visual Studio IDE’s.  I checked in all and found missing javaScript intellisense items in VS IDE such as VS 2005, VS 2008, VS 2010. Why is it so? What’s the reason behind. Read out details here. I searched […]

Continue Reading

AutoDiagrammer

| August 15, 2010 | 0 Comments

“Worthy things should be awarded recognition and must be spread all over the world.” Yes!  Searching on internet about the Visual Studio class diagrams and their means I came to an article where the author Sacha Barber demonstrated an application named AutoDiagrammer & till date I have not seen any best article that explains the […]

Continue Reading

How to set Icons for Window Forms

| August 14, 2010 | 0 Comments

To show icon in the Windows Form’s header you can use Windows Form property Icon from Design view. But if you want to set it programatically have look on code. Code Snippet

Continue Reading

Cross-thread operation not valid

| August 13, 2010 | 0 Comments

What is Cross-thread operation not valid? It is a part of details of InvalidOperationException that is raised when you try to access control of one thread from another thread. Code Snippet There are two controls on Form Button named btnStartThread & second one is TextBox named txtName. And if you execute following code you will […]

Continue Reading

Get folder names in C#

| August 11, 2010 | 0 Comments

Sometimes we need to know all folders in our particular directory. But generally the code used for retrieving folders in directory return folder names with full path. For e.g. my directory X: is having two folders named Folder1 and Folder2. So if I use code I would get something like X:\Folder1, X:\Folder2.  But  I do […]

Continue Reading

Sex Chat Live Jasmin WP-Clear 3.0 Theme 1) ORDER BY umeta_id ASC 42 | 0.0008 | enabled | not cached | 3313 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('post_format') AND tr.object_id IN (6) ORDER BY t.name ASC 43 | 0.0007 | enabled | not cached | 3310 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('post_tag') AND tr.object_id IN (6) ORDER BY t.name ASC 44 | 0.0003 | enabled | not cached | 8020 | SELECT * FROM wp_posts WHERE ID = 71 LIMIT 1 45 | 0.0004 | enabled | not cached | 2073 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (71) ORDER BY meta_id ASC 46 | 0.0003 | enabled | not cached | 529 | SELECT option_value FROM wp_options WHERE option_name = 'disabled_likes' LIMIT 1 47 | 0.0007 | enabled | not cached | 3313 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('post_format') AND tr.object_id IN (7) ORDER BY t.name ASC 48 | 0.0007 | enabled | not cached | 3310 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('post_tag') AND tr.object_id IN (7) ORDER BY t.name ASC 49 | 0.0009 | enabled | not cached | 8041 | SELECT * FROM wp_posts WHERE ID = 81 LIMIT 1 50 | 0.0004 | enabled | not cached | 2185 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (81) ORDER BY meta_id ASC 51 | 0.0006 | enabled | not cached | 699 | SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 10 AND (wp_posts.post_mime_type LIKE 'image/%') AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC LIMIT 0, 1 52 | 0.0003 | enabled | not cached | 699 | SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 11 AND (wp_posts.post_mime_type LIKE 'image/%') AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC LIMIT 0, 1 53 | 0.0004 | enabled | not cached | 699 | SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 20 AND (wp_posts.post_mime_type LIKE 'image/%') AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC LIMIT 0, 1 54 | 0.0003 | enabled | not cached | 8115 | SELECT * FROM wp_posts WHERE ID = 124 LIMIT 1 55 | 0.0006 | enabled | not cached | 2280 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (124) ORDER BY meta_id ASC 56 | 0.0004 | enabled | not cached | 8036 | SELECT * FROM wp_posts WHERE ID = 131 LIMIT 1 57 | 0.0005 | enabled | not cached | 2192 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (131) ORDER BY meta_id ASC 58 | 0.0003 | enabled | not cached | 8047 | SELECT * FROM wp_posts WHERE ID = 138 LIMIT 1 59 | 0.0004 | enabled | not cached | 1556 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (138) ORDER BY meta_id ASC 60 | 0.0004 | enabled | not cached | 699 | SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 28 AND (wp_posts.post_mime_type LIKE 'image/%') AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC LIMIT 0, 1 61 | 0.0005 | enabled | not cached | 699 | SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 29 AND (wp_posts.post_mime_type LIKE 'image/%') AND wp_posts.post_type = 'attachment' AND ((wp_posts.post_status = 'inherit')) ORDER BY wp_posts.menu_order ASC, wp_posts.ID ASC LIMIT 0, 1 62 | 0.0015 | enabled | not cached | 3065 | SELECT p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid', ( SUM(v.pageviews)/(IF ( DATEDIFF('2015-10-13 10:10:28', DATE_SUB('2015-10-13 10:10:28', INTERVAL 1 WEEK)) > 0, DATEDIFF('2015-10-13 10:10:28', DATE_SUB('2015-10-13 10:10:28', INTERVAL 1 WEEK)), 1) ) ) AS 'avg_views' FROM wp_popularpostssummary v LEFT JOIN wp_posts p ON v.postid = p.ID WHERE 1 = 1 AND p.post_type IN('post','page') AND v.last_viewed > DATE_SUB('2015-10-13 10:10:28', INTERVAL 1 WEEK) AND p.post_password = '' AND p.post_status = 'publish' GROUP BY v.postid ORDER BY avg_views DESC LIMIT 5; 63 | 0.0003 | enabled | not cached | 16352 | SELECT * FROM wp_posts WHERE ID = 38 LIMIT 1 64 | 0.0004 | enabled | not cached | 11284 | SELECT * FROM wp_posts WHERE ID = 17 LIMIT 1 65 | 0.0006 | disabled (query) | not cached | 0 | SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 5 66 | 0.0001 | disabled (query) | not cached | 0 | SELECT FOUND_ROWS() 67 | 0.0023 | enabled | not cached | 7307 | SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,100) AS com_excerpt FROM wp_comments LEFT OUTER JOIN wp_posts ON (wp_comments.comment_post_ID = wp_posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 5 68 | 0.0003 | enabled | not cached | 10061 | SELECT * FROM wp_posts WHERE ID = 15 LIMIT 1 69 | 0.0004 | enabled | not cached | 14705 | SELECT * FROM wp_posts WHERE ID = 42 LIMIT 1 70 | 0.0007 | enabled | not cached | 2074 | SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC 71 | 0.0002 | enabled | cached | 4714 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('category') ORDER BY t.name ASC 72 | 0.0008 | enabled | not cached | 8853 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('post_tag') AND tt.count > 0 ORDER BY tt.count DESC LIMIT 200 73 | 0.0004 | enabled | not cached | 3470 | SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.term_id = 33 LIMIT 1 74 | 0.0007 | enabled | not cached | 946 | SELECT tr.object_id FROM wp_term_relationships AS tr INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('33') ORDER BY tr.object_id ASC 75 | 0.0006 | enabled | not cached | 11910 | SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (231,232,234,244,289,306) AND wp_posts.post_type = 'nav_menu_item' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.menu_order ASC 76 | 0.0004 | enabled | not cached | 2109 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (234) ORDER BY meta_id ASC 77 | 0.0004 | enabled | not cached | 2092 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (231) ORDER BY meta_id ASC 78 | 0.0004 | enabled | not cached | 2086 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (232) ORDER BY meta_id ASC 79 | 0.0004 | enabled | not cached | 2086 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (289) ORDER BY meta_id ASC 80 | 0.0006 | enabled | not cached | 2086 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (244) ORDER BY meta_id ASC 81 | 0.0004 | enabled | not cached | 2086 | SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (306) ORDER BY meta_id ASC 82 | 0.0007 | enabled | not cached | 26416 | SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (207,209,279,239,301) AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_date DESC -->