Click here to Skip to main content
15,895,084 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: coding for search Pin
Vimalsoft(Pty) Ltd2-Dec-09 19:52
professionalVimalsoft(Pty) Ltd2-Dec-09 19:52 
AnswerRe: coding for search Pin
Dinesh Mani2-Dec-09 19:53
Dinesh Mani2-Dec-09 19:53 
GeneralRe: coding for search Pin
Amit Spadez2-Dec-09 20:09
professionalAmit Spadez2-Dec-09 20:09 
GeneralRe: coding for search Pin
Dinesh Mani2-Dec-09 20:19
Dinesh Mani2-Dec-09 20:19 
GeneralRe: coding for search Pin
Amit Spadez2-Dec-09 20:30
professionalAmit Spadez2-Dec-09 20:30 
GeneralRe: coding for search Pin
Dinesh Mani2-Dec-09 20:45
Dinesh Mani2-Dec-09 20:45 
AnswerRe: coding for search Pin
Abhijit Jana2-Dec-09 20:00
professionalAbhijit Jana2-Dec-09 20:00 
GeneralRe: coding for search Pin
Amit Spadez2-Dec-09 20:10
professionalAmit Spadez2-Dec-09 20:10 
I want to retrieve the text from the search text box to the new browser window which is google.com.
I tried "www.google.com/search?..." but it doesn't work .is there any alternative or can u understand the code below::

protected void Button1_Click(object sender, EventArgs e)
{
if (tbMainSearch.Text != null || tbMainSearch.Text != "")
{
Response.Redirect("http://www.google.com");
}
else
{
tbMainSearch.Focus();

}
}

The above code is done on clicking the "search" button.


The script is :
<asp:content id="Content2" runat="server"
="" contentplaceholderid="ContentPlaceHolder1">

<asp:textbox id="tbMainSearch" runat="server" style="margin-left: 0px" width="170px" &amp;gt;&amp;lt;="" asp:textbox="" &amp;gt;
="" &amp;amp;nbsp;&amp;lt;asp:button="" text="SEARCH" borderstyle="None"
="" font-bold="True" onclick="Button1_Click">





Understand and reply back
QuestionDatagridview with scroll bar. Pin
Member 47041432-Dec-09 16:32
Member 47041432-Dec-09 16:32 
AnswerRe: Datagridview with scroll bar. Pin
sashidhar2-Dec-09 17:49
sashidhar2-Dec-09 17:49 
AnswerRe: Datagridview with scroll bar. Pin
Anurag Gandhi2-Dec-09 19:43
professionalAnurag Gandhi2-Dec-09 19:43 
AnswerRe: Datagridview with scroll bar. Pin
Dinesh Mani2-Dec-09 19:44
Dinesh Mani2-Dec-09 19:44 
AnswerRe: Datagridview with scroll bar. Pin
Abhijit Jana2-Dec-09 19:52
professionalAbhijit Jana2-Dec-09 19:52 
QuestionDynamic Controls... Pin
Illegal Operation2-Dec-09 12:45
Illegal Operation2-Dec-09 12:45 
AnswerRe: Dynamic Controls... Pin
dan!sh 2-Dec-09 15:41
professional dan!sh 2-Dec-09 15:41 
GeneralRe: Dynamic Controls... Pin
Illegal Operation2-Dec-09 15:50
Illegal Operation2-Dec-09 15:50 
GeneralRe: Dynamic Controls... Pin
saini arun2-Dec-09 19:09
saini arun2-Dec-09 19:09 
GeneralRe: Dynamic Controls... Pin
Dinesh Mani2-Dec-09 19:35
Dinesh Mani2-Dec-09 19:35 
Questionaspx page in iframe reloading issues Pin
robustm2-Dec-09 3:56
robustm2-Dec-09 3:56 
AnswerRe: aspx page in iframe reloading issues Pin
Abhishek Sur2-Dec-09 4:45
professionalAbhishek Sur2-Dec-09 4:45 
GeneralRe: aspx page in iframe reloading issues Pin
robustm2-Dec-09 5:08
robustm2-Dec-09 5:08 
QuestionHow to open URL in new browser window Pin
Nekkantidivya2-Dec-09 1:08
Nekkantidivya2-Dec-09 1:08 
AnswerRe: How to open URL in new browser window Pin
Dinesh Mani2-Dec-09 1:25
Dinesh Mani2-Dec-09 1:25 
AnswerRe: How to open URL in new browser window Pin
sumit70342-Dec-09 1:43
sumit70342-Dec-09 1:43 
AnswerRe: How to open URL in new browser window Pin
Abhishek Sur2-Dec-09 1:48
professionalAbhishek Sur2-Dec-09 1:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.