I am creating an ASP.NET web page using Visual Web Developer and using C# as my script. Can anybody give me a code in C# that will load another aspx web page? The situation is like this: a page is loaded automatically when a user pressed a button and satisfied a certain condition.

Your reply is appreciated a lot. Thanks.

Recommended Answers

All 4 Replies

like a response.redirect or server.transfer("~/page.aspx", true)

Thanks a lot. It's working....

Thanks a lot. It's working....

Hey, have been trying to work this but I just need to know where the server is derived from, as in which assembly do i need to inherit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.