Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4024602
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:44:30+00:00 2026-05-20T10:44:30+00:00

Hi I have a drop down box that is in the edit template of

  • 0

Hi
I have a drop down box that is in the edit template of a formview. I want to be able to add a parrameter to the querystring when the drop down selected index is changed.

I tried

     Request.QueryString.Add("tabindex", (sender as WebControl).TabIndex.ToString());

But I got an exception saying the collection is readonly.

Here is my markup

  <icms_ref:ReferenceDropDownList ReferenceDataManagerProviderName="ROCSQLReferenceDataProvider"
                    ID="ddlEnquirerHearType" TabIndex="2" runat="server" ReferenceSetName="EnquiryHearType"
                    AutoPostBack="true" OnSelectedIndexChanged="EnquirerHearType_SelectedIndexChanged"
                    DataTextField="ShortName" DataValueField="ReferenceId" />

and here is my code behind.

 protected void EnquirerHearType_SelectedIndexChanged(object sender, EventArgs e)
    {
        var pnlEnquiryHearTypeOther = fvEnquiryInformation.FindControl("pnlEnquiryHearTypeOther") as Panel;
        pnlEnquiryHearTypeOther.Visible = DdlEnquirerHearType.SelectedValue == ((int)EnquiryHearType.Other).ToString();

        ResetTextBox("txtEnquiryHearTypeOther", fvEnquiryInformation);

        Request.QueryString.Add("tabindex", (sender as WebControl).TabIndex.ToString());

    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:44:31+00:00Added an answer on May 20, 2026 at 10:44 am

    You can’t directly add to the QueryString collection, you have to Response.Redirect to the new Url (modifying the URL to add in the query parameter yourself).

     string url = HttpContext.Current.Request.Url.AbsoluteUri + "?tabindex=blah";
    Response.Redirect(url, true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drop down box for each row inside a table <table> <tr>
I have a drop down box and some text input fields below it. Based
On my page I have a drop-down select box, with a default value of
I have this simple Select box that is suppose to store the selected value
In my application I'd like to have a drop-down box to choose a table
I have a drop-down list box and two text fields of id values namely
I have an RMA form that I've been able to add fields dynamically, but
EDIT: The drop down menus have the following listed in them: Typing Course Daily
I have a PHP registration that calls a mysql db for a dropdown box.
I have a drop down like this on my page: <p> <%= f.label :episode_id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.