Click here to Skip to main content
14,387,650 members
Rate this:
Please Sign up or sign in to vote.
See more:
when clicking reserved for ladies it turns to selected seat., the same happens
when i clicking back the green button... now i want., how do i write code for it and is any way to get the last action's value


please visit: redbus.in
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

public partial class BusSelectionForm : System.Web.UI.Page
{
    string test;
    static int temp;
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ImageButton3.Visible = true;
        ImageButton2.Visible = false;
        ImageButton4.Visible = false;
        ImageButton1.Visible = false;

    }

    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {

            ImageButton3.Visible = true;
            ImageButton2.Visible = false;
            ImageButton4.Visible = false;
            ImageButton1.Visible = false;
            temp = 1;
            //Session["polo"] = ImageButton2.ID;


    }
    protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
    {
        if (temp == 1)
        {
            ImageButton2.Visible = true;
            ImageButton3.Visible = false;
            ImageButton4.Visible = false;
            ImageButton1.Visible = false;
        }
        else
        {
            ImageButton1.Visible = true;
            //test = ImageButton3.ID;
            //Response.Write(test);
            ImageButton2.Visible = false;
            ImageButton3.Visible = false;
            ImageButton4.Visible = false;
        }
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100