web stats analysis

How to get Indian Rupee Symbol in C#.Net?

How to change the background color for an MDI parent form in Visual C#?

Follow below Steps:

Step:1-Create a new Visual C# Windows application.By default Form1 is created.
Step:2-Click the form -> on the View menu -> select Properties Window to view the properties for the form.
Step:3-Set BackColor property to the color that you want.
Step:4-Set the IsMDIContainer property to True.
Step:5-Set the WindowState property to Maximized.
Step:6-Then Double-click the form to view its code window.
Step:7-Copy the below code and paste into form’s load event.

MdiClient ctlMDI;

// Loop through all of the form's controls looking
// for the control of type MdiClient.
foreach (Control ctl in this.Controls)
{
   try
   {
      // Attempt to cast the control to type MdiClient.
      ctlMDI = (MdiClient) ctl;

      // Set the BackColor of the MdiClient control.
      ctlMDI.BackColor = this.BackColor;
   }
   catch (InvalidCastException exc)
   {
      // Catch and ignore the error if casting failed.
   }
}

// Display a child form to show this is still an MDI application.
Form2 frm = new Form2();
frm.MdiParent = this;
frm.Show();
Step:8-On the Project menu -> Add Windows Form.
Step:9-Accept the default name Form2.cs, and then click Open.
Step:10-Finally press F5 to run the application.
Note:-That the background color of the form changes to the color that the Application
Background color is set to in Control Panel.

Error:A potentially dangerous Request.Form value was detected from the client

Add below tag in your web.config file:-


<httpRuntime requestValidationMode="2.0" />

How to Display Recent Posts From A Specific Category In WordPress?

Follow below code:-

Below code could be added where you want to display recent post in your theme.


<?php if ( have_posts() ) : ?>

<?php $catquery = new WP_Query( 'cat=18&posts_per_page=1' ); ?>

<?php while ($catquery->have_posts() ) : $catquery->the_post(); ?>

<?php the_content(); ?>

<?php endwhile; ?>

<?php endif; // end have_posts() check ?>

For more Reference click here.

How to install nuget packages in visual studio?

Follow the below steps:-

Step:1-Open your visual studio.
Step:2-Now click on Tools Menu.
Step:3-And select Package Manager Console inside Library Package Manager
Step:4-After your Package Manager Console will open.
Step:5-Below is a example for install nuget package here I am installing MvcPaging nuget
package.

Example :-

PM> Install-Package MvcPaging
Now press Enter

How to use paging in asp.net MVC 4?

What is the maximum character for the nvarchar maximum in sql server?

Below little description about it.

The maximum size for a column of type NVARCHAR(MAX) is 2 GByte of storage.NVARCHAR use per character 2 bytes, that’s approx. 1 billion characters.

How to use XML?

What is XML?

XML stands for eXtensible Markup Language.
XML is designed to transport and store data.
XML is important to know, and very easy to learn.

Below, there is an example of xml for your better understanding.


<?xml version="1.0"?>
<note>
<to>Bhavesh</to>
<from>Prakash</from>
<heading>Little information</heading>
<body>Give respect take respect(code.top10idea)</body>
</note>

In which area you want to display your post?

Where you want to display your post?

First you create your category.
Go to wp-admin panel -> create new category.

Use the below code where you want to display your post.


<?php if ( have_posts() ) : ?>

<?php query_posts('category_name=Your category name&showposts=1'); while ( have_posts() ) :

the_post(); ?>

<?php the_content(); ?>

<?php endwhile; ?>

<?php endif; // end have_posts() check ?>

Here I create principalmessage category like below.


<?php if ( have_posts() ) : ?>

<?php query_posts('category_name=principalsmessage&showposts=1'); while ( have_posts() ) :

the_post(); ?>

<?php the_content(); ?>

<?php endwhile; ?>

<?php endif; // end have_posts() check ?>

Error: phone is too short or empty in ebs payment gateway

Follow below solution:

EBS Phone parameter is one of the mandatory parameters and it take only minimum 5 digits.if your phone text empty or less than 5 digits than you get this error.