Hello everyone,
I am building a composite control that contains 4 dropdownlist. Each dropdown contains options that the user will select to browse to a certain page. Depending on which one they pick,a url is created with the selecteditem as part of the querystring. I want to be able to redirect from the control and not from the page, so first question is, is it even possible because I keep trying and it doesnt seem to work. 2nd if it truly is impossible then how can i get it work at the page level, because when i put my control in the Page_Load sub like this
Sub Page_Load(S as Object, E as EventArgs)
if not IsPostBack then
mydropdownmenu.selectedIndex = 1 'this errors out
end if
if isPostBack then
response.redirect(mydropdownmenu.selectedItem)
'this does nothing, but it wont error
end if
End Sub
and also Im using codebehind for my page, but It seems the only way i can get it to work is by using inline asp tags
so if i do this on the actual page
<%response.redirect(mydropdownMenu.selectedItem)%>
this will actually work. so then my other question is,
in which event are <%%> tags processed.
I thank you for your time reading this and your help.