Hi Justnew,
If you are using ASP.NET, it sounds like you want to attach to the OnClick
event of the button. If you are using VS.NET, you can do this easily by
going go the design view, click on your button, go to the properties view
and select events. Then dobule click the blank to the right of the "Click"
action.
Alternatively, you can add this code in your code-behind...
In InitializeComponent():
this.<Button Variable Name>.Click += new
System.EvenHandler(this.<functionToBeFiredWhenButt onIsClicked>);
private void <functionToBeFiredWhenButtonIsClicked>(object sender,
System.EventArgs e)
{
// you can do anything you want in here, including navigate the user to
other places using Response.Redirect.
}
Also, if you just want a "Back" button, then you can use client-side HTML
and JScript to achieve the same thing. Here's a link on it:
http://www.cyfi.com/support/websuppo...ack_button.htm
HTH,
Mark Jen [MSFT]
--
Please reply in newsgroup.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Justnew" <Ju************@mail.mcse.ms> wrote in message
news:Ju************@mail.mcse.ms...
I have a button in my webform.aspx
And I have a htm document or page. What I want is that when I click on
the button I want to display the htm page. In other words it is just a
back button
Need help
thanks in advance
Justnew
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message347224.html