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

ASP.NET

 
QuestionHelp provider+win Form Pin
Ramkumar_S2-Dec-09 20:00
Ramkumar_S2-Dec-09 20:00 
AnswerRe: Help provider+win Form Pin
Abhijit Jana2-Dec-09 20:03
professionalAbhijit Jana2-Dec-09 20:03 
QuestionMenu tab not woriking In safari Pin
Sudhanshu Mani Tripathi2-Dec-09 19:54
Sudhanshu Mani Tripathi2-Dec-09 19:54 
AnswerRe: Menu tab not woriking In safari Pin
sashidhar2-Dec-09 21:36
sashidhar2-Dec-09 21:36 
Questioncoding for search Pin
Amit Spadez2-Dec-09 19:46
professionalAmit Spadez2-Dec-09 19:46 
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 
I want to do the first one i.e. retrieve the text from the search text box to the new browser window which is google.com.
I tried it "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" &gt;&lt;="" asp:textbox="" &gt;
="" &amp;nbsp;&lt;asp:button="" text="SEARCH" borderstyle="None"
="" font-bold="True" onclick="Button1_Click">






inderstand and reply back
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 
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 

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.