web stats analysis

The type or namespace name ‘StringBuilder’ could not be found (are you missing a using directive or an assembly reference?)

Solution of The type or namespace name ‘StringBuilder’ could not be found (are you
missing a using directive or an assembly reference?)

Add the following namespace.

using System.Text;

The type or namespace name ‘MD5′ could not be found (are you missing a using directive or an assembly reference?).

Solution of The type or namespace name ‘MD5′ could not be found (are you missing a using directive or an assembly reference?)

Add the following namespace.

using System.Security.Cryptography;

How to add ASP.NET Web Pages to a Web Site?

 

Add ASP.NET Web Pages to a Web Site

Add an existing ASP.NET Web page to a Web site project

Changing the Name of ASP.NET Web Pages

Follow below solution:

If you want to add new and existing webpages to a website so you can.Some information about creating an asp.net website.

To add new asp.net webpage to a website:

Step:1-See in right side solution explorer.

Step:2-Right click on project name -> Add new item.

Step:3-In the Add New Item dialog box, under Visual Studio installed templates, click Web Form.

Step:4-Look like this below:Click below image

Step:5-See in language list and select programming language what you want.

Step:6-Give your webpage name.

Step:7-If you want the code for the page to be in a separate file,be sure that the Place code in separate file check box is selected.

Step:8-Click Add button.

Step:9-The new ASP.NET Web page is created and displayed in the Visual Web Developer.

Note:-You can create pages with different programming languages in the same Web site.

To add an existing asp.net web page to a web site project

Step:1-See in right side solution explorer.

Step:2-Right click on project name -> Add Existing Item.

Step:3-Then select your webpage and click Add.

Step:4-The ASP.NET Web page is added to the Web site project.

Note:-When you add an existing file to a Web site, the file is copied to your project not
added by reference.if you change the file in your project, the original file is left unchanged.

Changing the name of asp.net web Pages.

After creating a new ASP.NET Web page or adding an existing page to a Web site project,
you might want to change the name of the page file. You can easily rename pages in Solution Explorer.
Step:1-In Solution Explorer, right-click the file that you want to change and then click Rename.

Step:2-Type the new file name what you want and then press ENTER.

 

I got error “No payment methods added to this account”.

Solution: I got error “No payment methods added to this account”

I try and get solution is like below:

Your merchant account “Your account name” is in TEST mode,the following message“No paymentmethod added to thisaccount” is displayed at your end.On the completion of documentation and Website compliance process,your merchant account will be activated to LIVE mode (payment options will be enabled).Thereafter you will be able to view payment options in EBS payment page.For further clarification on documentation and website compliance process,please contact our process team at “process@ebs.in”.

How to use the native WordPress custom post type for easy of use and fast processing?

How to visually create your fields?

How to use the native WordPress metadata for easy of use and fast processing?

wordpress advance custom field.

Follow below steps:

Step:1-Download Advanced Custom Fields by Click here
Step:2-Go to your admin panel.
Step:3-Click on Plugin -> Add New.
Step:4-Upload the Advanced Custom Fields plugin.
Step:5-Install and active your plugsin.
Step:6-Then Click on the new menu item “Custom Fields” and create your first Custom Field Group!
Srep:7-Your custom field group will display on the page / post / template you specified in the field group’s location rules!
Step:8-Read the documentation to display your data:
Step:9- To insert the slideshow into your theme, write the following code to the appropriate theme file:

Your plugin has been work.

Below little description aboute Advanced Custom Fields

Advanced Custom Fields is very useful plugin.
It needs more flexible data like other Content Management Systems.
Advance custom field Visually create your Fields.
Select from multiple input types(like..textbox,textarea etc..).
Advance custom field Easily load data through a simple and friendly API.
Advance custom field use the native WordPress custom post type for easy of use and fast processing.
Advance custom field use the native WordPress metadata for easy of use and fast processing

wordpress advanced custom fields tutorial,

advanced custom fields wordpress image,

wordpress custom fields tutorial,

wordpress custom post type ui,

wordpress acf,visually create your fields.

How to redirect all the post URL?

To redirect all the post URL.

Then write the below code intp header.php page:

            

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new_site.com");
?>

            
            

Your pagee has been redirect

How to Clear browser cookies, cache and history – Internet Explorer 8.0?

Clear browser cookies, cache and history – Internet Explorer 8.0.

Then follow the below steps:

Step:1-Open Internet Explorer.
Step:2-Click the Tools -> Internet Options.
Step:3-Click the General tab, under the Browser history section, click Delete.
Step:4-Check the Temporary Internet files, Cookies, and History check boxes, and then click Delete.

Your browser has been clear:

How to find distance between two places using google api?

How to find distance between two places using google api?

I try and get the solution:

Follow by below step:

Step:1-Open your ms visual studio.
Step:2-Go to file -> new -> website.
Step:3-Open your Default.aspx page.
Step:4-Write the below code between head tag after title tag.


<style type="text/css">
.style1
{
height: 30px;
}
</style>

<script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"
type="text/javascript"></script>

<script type="text/javascript">
function AutoComplete() {
try {
var txtinput = document.getElementById('TextBox1');
var complete = new google.maps.places.Autocomplete(txtinput);
complete.setTypes('changetype-geocode');
}
catch (err) {
// alert(err);
}
}

function distance() {
try {
var txtinput = document.getElementById('TextBox2');
var complete = new google.maps.places.Autocomplete(txtinput);
complete.setTypes('changetype-geocode');
}
catch (err) {
// alert(err);
}
}

google.maps.event.addDomListener(window, 'load', AutoComplete);
google.maps.event.addDomListener(window, 'load', distance);
</script>

Step:5-Then write below code between body tag.


<form id="form1" runat="server">
<div>
<table cellpadding="0" cellspacing="0" align="center" width="700">
<tr>
<td colspan="2" height="40">
<b>Distance calculation using Google API</b>
</td>
</tr>
<tr>
<td>
Enter Origin Place
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Width="300"></asp:TextBox>
</td>
</tr>
<tr>
<td height="30">
Enter Destination Place
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Width="300"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" align="center" height="60">
<asp:Button ID="btnSearch" runat="server" Text="Calculate" OnClick="search_Click" />
</td>
</tr>
<tr>
<td colspan="2" align="center" height="40">
<br />
<br />
<asp:Label ID="lblfinal" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
<br />
</div>
</form>

Step:6-Right click on Default.aspx page and select view code.
Step:7-Add the below namespace.

• Using System.Net
• Using System.Xml
• Using System.IO
• Using System.Xml.XPath

Step:8-Write the below code into your page_load event.



protected void Page_Load(object sender, EventArgs e)
{
lblfinal.Text = "";
}

Step:8-Write the below code into your button click event.


protected void search_Click(object sender, EventArgs e)
{
//Declare variable to store XML result
string xmlResult = null;

//Pass request to google api with orgin and destination details
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://maps.googleapis.com/maps/api/distancematrix/xml?origins=" + TextBox1.Text + "&destinations=" + TextBox2.Text + "&mode=Car&language=us-en&sensor=false");

HttpWebResponse response = (HttpWebResponse)request.GetResponse();

//Get response as stream from httpwebresponse
StreamReader stream = new StreamReader(response.GetResponseStream());

//Create instance for xml document
XmlDocument doc = new XmlDocument();

//Load response stream in to xml result
xmlResult = stream.ReadToEnd();

//Load xmlResult variable value into xml documnet
doc.LoadXml(xmlResult);

string output = "";

try
{
//Get specified element value using select single node method and verify it return OK (success ) or failed
if (doc.DocumentElement.SelectSingleNode("/DistanceMatrixResponse/row/element/status").InnerText.ToString().ToUpper() != "OK")
{
lblfinal.Text = "Enter valid city name";
return;
}

//Get DistanceMatrixResponse element and its values
XmlNodeList xnList = doc.SelectNodes("/DistanceMatrixResponse");
foreach (XmlNode xn in xnList)
{
if (xn["status"].InnerText.ToString() == "OK")
{
//Form a table and bind it orgin, destination place and return distance value, approximate duration
output = "<table align='center' width='600' cellpadding='0' cellspacing='0'>";
output += "<tr><td height='60' colspan='2' align='center'><b>Travel Details</b></td>";
output += "<tr><td height='40' width='30%' align='left'>Orgin Place</td><td align='left'>" + xn["origin_address"].InnerText.ToString() + "</td></tr>";
output += "<tr><td height='40' align='left'>Destination Place</td><td align='left'>" + xn["destination_address"].InnerText.ToString() + "</td></tr>";
output += "<tr><td height='40' align='left'>Travel Duration (apprx.)</td><td align='left'>" + doc.DocumentElement.SelectSingleNode("/DistanceMatrixResponse/row/element/duration/text").InnerText + "</td></tr>";
output += "<tr><td height='40' align='left'>Distance</td><td align='left'>" + doc.DocumentElement.SelectSingleNode("/DistanceMatrixResponse/row/element/distance/text").InnerText + "</td></tr>";
output += "</table>";

//finally bind it in the result label control
lblfinal.Text = output;
}
}
}
catch (Exception ex)
{
lblfinal.Text = "Error processing";
return;
}
}

Your code has been successfully work

How to get creation date of a file in c#?

Get creation date of a file in c#.

If you want to get creation date of file in c#
So,you can easily do it by follow below code:



DateTime creationTime = File.GetCreationTime(@"C:\demo.txt");
label1.Text = creationTime.ToString();

Get File Creation Time in C#,
Get File Time using c#,
How to get the correct file time in C#,
c# – How to get the datetime of a file located inside a file?

How to open existing website in asp.net?

Open existing website in asp.net

Follow below steps:

Step:1-Open your microsoft visual studio.
Step:2-Go to file -> open -> website.
Step:3-Your website has been open in asp.net.

open existing website in your asp.net,
Existing website open in your asp.net.