ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
I am trying to redirect another site on button click.
 Question Submitted By :: Ragsngh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I am trying to redirect another site on button click.
Answer
# 1
Response.Redirect("http://yahoo.com");
 
Is This Answer Correct ?    6 Yes 1 No
Sunil Kumar Singh
 
  Re: I am trying to redirect another site on button click.
Answer
# 2
You can also use PostbackUrl property associated with  
button control in ASP.NET,
such as : <asp:button id = "b1" PostBackUrl = "www.sify.com"
            runat = "server" Text = "redirect"/>
 
Is This Answer Correct ?    3 Yes 0 No
Guest
 
 
 
  Re: I am trying to redirect another site on button click.
Answer
# 3
you can use the link button control in that control there is a property c/d NavigateUrl in which u specify either the URL of any site or any page of the application...
 
Is This Answer Correct ?    1 Yes 0 No
Anjani
 
  Re: I am trying to redirect another site on button click.
Answer
# 4
Hi Anjani, there is a mistake in answer is that the link button control doesn't contain the NavigateUrl property but we do this task by doing this in the linkbutton control source view is:

   <asp:LinkButton ID="lnkbtn" runat="server"      OnClick="lnkbtn_Click" OnCommand="link"><a href="http://www.google.com">Link</a></asp:LinkButton>
  </div>
 
Is This Answer Correct ?    1 Yes 1 No
Anju
 
  Re: I am trying to redirect another site on button click.
Answer
# 5
responce.redirect(http//:gmail.com)
 
Is This Answer Correct ?    0 Yes 0 No
Kiran
 
  Re: I am trying to redirect another site on button click.
Answer
# 6
Response.Redirect("link name");

http://www.interview-questions.maxmice.com
 
Is This Answer Correct ?    0 Yes 0 No
Usha
 
  Re: I am trying to redirect another site on button click.
Answer
# 7
There is a mistake in answer is that the link button 
control doesn't contain the NavigateUrl property but we do 
this task by doing this in the linkbutton control source 
view is:

   <asp:LinkButton ID="lnkbtn" runat="server"      
OnClick="lnkbtn_Click"><a 
href="http://www.google.com">Link</a></asp:LinkButton>
  </div>

The OnCommand="link" is not needed.

<asp:LinkButton ID="lnkbtn" OnClick="lnkbtn_Click" 
runat="server" >
        <a href="http://www.google.com">Link</a>
    </asp:LinkButton>
 
Is This Answer Correct ?    1 Yes 0 No
Gopakumar
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What is SQL injection?  1
Dategrid filtering and sorting How can we sort all the fields at once? Satyam3
difference between <connectionstring> <Appsetting>  6
version information is mentioned in which file AG-Technologies3
What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version DELL2
hi everyone. can anyone send me wipro interview questions on .net. plz its urgent Wipro1
can we call webservice in Html form? Microsoft1
can we store textbox and com components in viewstate? Microsoft2
How to write unmanaged code and how to identify whether the code is managed /unmanaged? Accenture4
ASP.NET uses event driven programming model.Justify.  1
how to update data using store procedure  1
What is the main difference between grid layout and flow layout?  1
How to remove themes from certain controls?  2
What are various authentication mechanisms in ASP.NET ? TCS3
If i have a page where i create an instance of a dll and without invoking any method can I send values to next page ? Satyam1
Usage of web.config? Microsoft1
Explain autherization levels in .net ?  2
How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)? rocsearch1
what is SAP fullform SAP-Labs24
Can two different programming languages be mixed in a single ASMX file? Patni1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com