Help: Button

  • Thread starter Thread starter Progman
  • Start date Start date
Hi Progman,

You need use javascript code on client-side:

in page HTML code
<script>
function OpenNewWindow(url)
{
window.open(url);
}
</script>

In Page_Load event:

button.Attributes.Add("OnClick","OpenNewWindow('page2.aspx'); return false");


HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top