Hi,
This seems like this would be easy, but I am not getting what I thought I should.
I have a GridView_RowCom mand where inside I am doing a comparison of a couple of things...if one of them is true, then I want to open a separate page that I have already written code for.
So to avoid the cut and paste...how do I call this page?
I thought I could do something like:
UpdateClusterSt atus ucr = new UpdateClusterSt atus();
then call ucr.pageload or something like that...but it doesn't work.
Here is my page I want to open:
Seems like I am making this harder than it needs to be..but not sure how to make it work...anyone help?
I should add: I don't need to pass any data to this page, I just need it to open.
Thanks!
This seems like this would be easy, but I am not getting what I thought I should.
I have a GridView_RowCom mand where inside I am doing a comparison of a couple of things...if one of them is true, then I want to open a separate page that I have already written code for.
So to avoid the cut and paste...how do I call this page?
I thought I could do something like:
UpdateClusterSt atus ucr = new UpdateClusterSt atus();
then call ucr.pageload or something like that...but it doesn't work.
Here is my page I want to open:
Code:
public partial class UpdateClusterStatus : System.Web.UI.Page
{
/// <summary>
/// Fires every time the page is loaded
/// </summary>
protected void Page_Load(object sender, EventArgs e)
{
rest of code here...
}
I should add: I don't need to pass any data to this page, I just need it to open.
Thanks!
Comment