Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
how to open new webpage using c#.net
March 18, 2011
i have one web page in asp.net done in c# want to open new webpage onclick event of button keeping existing web page open
Posted Date: March 18, 2011 Points: 20
Add the following code in ur Page_Load()
string strSearchText = txtSearch.Text.Trim(); //text from your TextBox
In ur HTML add the following script
var url = "http://www.google.com/search?q="
Thanks And Regards.
Posted Date: March 19, 2011 Points: 20
use Server.Transfer Method
* we want to transfer current page request to another .aspx page on the same server
* we want to preserve server resources and avoid the unnecessary roundtrips to the server
* we want to preserve Query String and Form Variables (optionally)
* we don't need to show the real URL where we redirected the request in the users Web Browser
Posted Date: March 21, 2011 Points: 20
btnOpen.attributes.add("onclick","openenew()") on the page load
To post reply
Related Questions Related Questions
How to open New WebPage from c#.net Code
Have to open and set the range in excel sheet through C#.NET codings
Need to open popup window from the GridView
How to open one .chm help file in c# windows application menu bar....
How to open pop up in separate browser
how to open pop up in different window
How to call WebPage 1 method in WebPage 2
How to add media player to my asp.net webpage
How to read the text from index of webpage
how can i checked if form is already open in c#
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend