linkbutton and 2 webforms

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In WebForm1 I have Linkbutton1, what I want to do is I click the Linkbutton1
then the WebForm2 will be opened.
I am not sure using the linkbutton is the right way, but if I am on right
track, would someone tell me how to do it?
Any help will be appreciated.

Jason
 
Use the following code
In Winform1.aspx
<asp:linkbutton id="Linkbutton1" OnClick="Edit" runat="server"
Width="90px" Text='EditData'
</asp:linkbutton>

In Winform1.aspx.cs

public void Edit( object sender, EventArgs e )
{
Response.Redirect("Winform2.aspx");
}


Regards,
Amal
 
Back
Top