Your Sites with Google Search Engine !!


Google Search Engine In Your Site

hi friends here i come with new thing for new web devlopers.

we are see the generly google browser in most of the sites.

The question is come in our mind is how we can put it on our sites.

Friends its to easy to put google browser to in our sites.

now i have to put code for new user which can help for it.

friend you have to just copy and past the below code in your sites where you want.

If any change in to the code that not work properly.

so keep in mind.







<form action="http://www.google.co.in/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-3833135406126933:egq1279qy85" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.co.in/cse/brand?form=cse-search-box&lang=en"></script>





Regards::

Pal(Parthiv) Patel

Computer Tips & Tricks

Asp.net Tips & Tricks


Comments

Author: Biju26 Aug 2010 Member Level: Gold   Points : 2

CountryBL

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Interlace.VKSRETANIUM.DTO;
using Interlace.VKSRETANIUM.DataAccess;
using Interlace.Operator;
using Interlace.Utils;
namespace Interlace.VKSRETANIUM.Business
{
public partial class CountryBL : CountryDTO , IDisposable
{
StringBuilder strCondition = new StringBuilder();
StringBuilder strSorting = new StringBuilder();
public CountryBL(){}
public CountryBL(int ID)
{
this.AddCriteria(ClsCountry.Id, ClsOperator.EQUALTO, ID.ToString());
DataTable dtCountry = this.Search();
if(dtCountry.Rows.Count>0)
{
this.Id=new ConvertType(dtCountry.Rows[0]["Id"]);
this.Name=new ConvertType(dtCountry.Rows[0]["Name"]);
this.CreatedBy=new ConvertType(dtCountry.Rows[0]["CreatedBy"]);
this.CreatedDate=new ConvertType(dtCountry.Rows[0]["CreatedDate"]);
this.ModifiedBy=new ConvertType(dtCountry.Rows[0]["ModifiedBy"]);
this.ModifiedDate=new ConvertType(dtCountry.Rows[0]["ModifiedDate"]);
this.ActiveStatus=new ConvertType(dtCountry.Rows[0]["ActiveStatus"]);
this.StoreId=new ConvertType(dtCountry.Rows[0]["StoreId"]);
this.SyncServerId=new ConvertType(dtCountry.Rows[0]["SyncServerId"]);
}
}
public int Save()
{
int result = 0;
CountryDA objCountryDA = new CountryDA();
try
{
result = objCountryDA.Save(this);
}
catch (Exception ex)
{
throw ex;
}
return result;
}
public int HardDeleteCountry()
{
CountryDA objCountryDA = new CountryDA();
return objCountryDA.HardDeleteCountry(this);
}
public DataTable Search()
{
strCondition.Append("0=0");
CountryDA objCountryDA = new CountryDA();
if (strSorting.ToString() != string.Empty)
{
strCondition.Append(strSorting.ToString());
}
string condString = strCondition.ToString();
strCondition.Remove(0, strCondition.Length);
return objCountryDA.Search(condString);
}
public void AddCriteria(ClsCountry eObject, ClsOperator eOperator, string strValue)
{
AddCriteria(eObject, eOperator, strValue, ClsOperator.AND);
}
public void AddCriteria(ClsCountry eObject, ClsOperator eOperator, string strValue, ClsOperator eCondition)
{
strCondition.Append("[" + eObject.ToString() + "]");
switch (eOperator.ToString())
{
case "EQUALTO":
strCondition.Append(" = ");
break;
case "AND":
strCondition.Append(" AND ");
break;
case "OR":
strCondition.Append(" OR ");
break;
case "BETWEEN":
strCondition.Append(" BETWEEN ");
break;
case "GREATERTHAN":
strCondition.Append(" > ");
break;
case "LESSTHAN":
strCondition.Append(" < ");
break;
case "GREATERTHANOREQUALTO":
strCondition.Append(" >= ");
break;
case "LESSTHANOREQUALTO":
strCondition.Append(" <= ");
break;
case "LIKE":
strCondition.Append(" LIKE ");
break;
case "IN":
strCondition.Append(" IN ");
break;
case "NOTEQUALTO":
strCondition.Append(" <> ");
break;
case "NOTIN":
strCondition.Append(" NOT IN ");
break;
case "IS":
strCondition.Append(" IS ");
break;
case "ISNOT":
strCondition.Append(" IS NOT ");
break;
}
if(!string.IsNullOrEmpty(strValue))
{
strValue = strValue.Replace("'", "''");
}
if (eOperator.ToString() != "IN" && eOperator.ToString() != "NOTIN" && eOperator.ToString().ToUpper() != "IS" && eOperator.ToString().ToUpper() != "ISNOT")
{
strCondition.Append(" '");
strCondition.Append(strValue);
strCondition.Append("' ");
}
else if (eOperator.ToString() == "IN" || eOperator.ToString() == "NOTIN")
{
strValue = strValue.Replace("''","'");
strCondition.Append(" ( ");
strCondition.Append(strValue);
strCondition.Append(" ) ");
}
if (eOperator.ToString() == "IS" || eOperator.ToString() == "ISNOT")
{
strCondition.Append(" NULL ");
}
strCondition.Append(eCondition.ToString()+ " ");
}
public void SortCriteria(ClsCountry eObject, Operator.Sorting eSorting)
{
if (strSorting.ToString() == string.Empty)
{
strSorting.Append(" Order By ");
strSorting.Append(" ");
strSorting.Append("[" + eObject.ToString() + "]");
strSorting.Append(" ");
strSorting.Append(eSorting.ToString());
}
else
{
strSorting.Append(" , ");
strSorting.Append("[" + eObject.ToString() + "]");
strSorting.Append(" ");
strSorting.Append(eSorting.ToString());
}
}
public enum ClsCountry
{
Id,Name,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,ActiveStatus,StoreId,SyncServerId
}
public void Dispose()
{
GC.SuppressFinalize(this);
}
}
}



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: