If you have the value of the DropDownList set to the ID, then you could do
something like the below for the SelectedIndexChanged event:
 protected void DropDownList_SelectedIndexChanged(object sender, EventArgs
e)
{
 int id;
 DropDownList ddl = (DropDownList)sender;
  id = int.Parse(ddl.SelectedItem.Value);
  Response.Redirect("somepage.aspx?id=" + id);
}
 /ryan

 On 11/17/05, AHMET GULBAS <[EMAIL PROTECTED]> wrote:
>
> hi..is this possible from codebehind :
> when user selects an item from a dropdownlist,the page posts back and
> SelectedIndexChanged event fires..in SelectedIndexChanged method I want to
>
> add the some query like "?id=5" to the response.when page reloads ,the
> address will be like "somepage.aspx?id=5" which was just "somepage.aspx"
> when page first loads..
> I think I should use something from Response class like
> Response.AppendHeader or something...
>
> I hope you can understand..thanks...
>
>
>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    - Visit your group 
> "AspNetAnyQuestionIsOk<http://groups.yahoo.com/group/AspNetAnyQuestionIsOk>"
>    on the web.
>     - To unsubscribe from this group, send an email to:
>    [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>     - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>



--
Thank you,
Ryan Olshan
Rolog - http://blogs.dirteam.com/blogs/ryan/


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to