afranklin
02-19-2008, 12:10 PM
Hi,
I am trying to make an aspx page with a form to display a datagrid and also have a small usercontrol dropdownlist in the header to change to different pages.
I scratched my head for a while over not being able to have multiple forms on a page but finally decided a standard html form in the usercontrol would be fine.
I have a simple html dropdownlist in the usercontrol which when submitted runs a javascript function which changes the page... or is supposed to, but I can't get it to work!
I've tried changing the action location of the html form and tried using location.href and window.location to change the page but it just isn't shifting!
I am also getting a whole heap of viewstate info in the final source which makes me think I am being a doughnut for missing something obviously...
Any suggestions much appreciated...
Especially if they relate to the problem above!
Thanks,
a.
I am trying to make an aspx page with a form to display a datagrid and also have a small usercontrol dropdownlist in the header to change to different pages.
I scratched my head for a while over not being able to have multiple forms on a page but finally decided a standard html form in the usercontrol would be fine.
I have a simple html dropdownlist in the usercontrol which when submitted runs a javascript function which changes the page... or is supposed to, but I can't get it to work!
I've tried changing the action location of the html form and tried using location.href and window.location to change the page but it just isn't shifting!
I am also getting a whole heap of viewstate info in the final source which makes me think I am being a doughnut for missing something obviously...
Any suggestions much appreciated...
Especially if they relate to the problem above!
Thanks,
a.