Redirect to google search page in

Here we will discuss how we can redirect the user to google search page in Normally there will be a search box and a button on it. Whenever the user clicks on the button, the user should be redirected to the google page with the search parameter.

New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features

Also you can read:
How to return multiple values from a function in sql server 2012?

Steps to create wcf service and host wcf service as windows service in C#.Net

SharePoint 2016 new features

Find the below code:

.Aspx Code:

<asp:TextBox ID=”txtSearch” runat=”server” Height=”30px” Width=”280px” ></asp:TextBox>
<asp:Button ID=”btnSearch” OnClick=”btnSearch_Click” Text=”Search” runat=”server” />

Code Behind Code:

protected void btnSearch_Click(object sender, EventArgs e)
string search = txtSearch.Text.Trim()+””;

Response.Redirect(“” + search);

This will open the google search results page in the same page in your web site. If you want to open in a new tab, then follow: response.redirect in in new tab.

Hope this post will be helpful.

Check out Best Alternative to InfoPath -> Try Now


(Installation & Features)

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →