I want to do it in a buttonclick at my first page
Button Click Event:
If (ddlistX.SelectedItem = “1” And Some Hober button is selected)
Navigate to page p1, p3 (restrict p2)
If (ddlistX.SelectedItem = “2” And Some Hober button is selected)
Navigate to page p1 and p2
else
message “Your selection is missing “
Any help would be highly appreciatable
(This is a modification of Ashwin’s Answer)
//condition 1
//condition 2
//I used postbackurl to navigate to p3 from p2
In your p2 codebehind Page_Load, do this