Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

asp.net, drop down

how can I make the drop down using get method in code behind?

like i have a asp.net dropdown and when someone select something inside, it will use get method and show on url like default.aspx?id=selectedvalue

by the way, I also use ajax toolkit with update panel.
0
CoolDev2014
Asked:
CoolDev2014
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
you could just add an onchange attribute to the dropdown and set the url there:

<asp:DropDownList ID="ddl" runat="server"
  onchange="document.location.href = 'default.asp?id=this.value;" >
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now