C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

open a page from click even of a button


Posted Date: 15 Oct 2008      Posted By: amitkumar      Member Level: Gold     Points: 1   Responses: 4



Hi,

i want to open a form from click event of Button in ASP.net web appli.
Please send me the code..

Thanks





Responses

Author: bharat kumar    15 Oct 2008Member Level: GoldRating: 1 out of 5     Points: 1

response.redirect("pagename");


Author: Ashutosh Kumar    15 Oct 2008Member Level: GoldRating: 3 out of 53 out of 53 out of 5     Points: 3

On the click event write the code to move another page:

Response.Redirect("seconpage.aspx");



Author: Miss Meetu Choudhary    15 Oct 2008Member Level: DiamondRating: 3 out of 53 out of 53 out of 5     Points: 3

you can use asp.net and javascript both for this purpose

in ASP.NET c#
you can do like this

Response.Redirect("PageURL");

and in javascript

window.open("PageURL");

note--
in the above example i have given the javascript will open a new window while the response.redirect will open the page in the same window

==
Thanks and Regards
Meetu Choudhary

Thanks and Regards
Miss Meetu Choudhary (Site Coordinator)
Go Green Save Green
My Profile on Google



Author: puneet malviya    12 Dec 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi.....
Response.Redirect("Second.aspx");
Responce.Transfer("Second.aspx");

both are working well...
Response.Redirect
it's send the request to browser
Responce.Transfer
it's not send any request to browser
....



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Gridview Radio button postback
Previous : Show Html data by link
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use