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 3429000
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:01:43+00:00 2026-05-18T07:01:43+00:00

I have a pretty simple questions that had stumped me so far .. I

  • 0

I have a pretty simple questions that had stumped me so far ..
I am trying to do a one-level cascading drop down in ASP.NET.

So, I have two drop down boxes (among other text boxes), after ddlOne is selected, then ddlTwo will be populated.

here’s my code in aspx

<asp:UpdatePanel ID="comboBoxWorkFlowPanel" runat="server">
<ContentTemplate>
        <asp:DropDownList ID="ddlPendingUserGroup" runat="server" 
        DataTextField="groupName" DataValueField="groupId" OnSelectedIndexChanged="ddlPendingUserGroup_SelectedIndexChanged" AutoPostBack="true">                                                                                        
         </asp:DropDownList>
        <asp:DropDownList ID="ddlUserGroupUsers" runat="server" Enabled="false"DataTextField="userName" DataValueField="userID"></asp:DropDownList>
</ContentTemplate>
<asp:UpdatePanel>

and pretty much in the code behind page,
the event handler will read from the drop down and then populate the second drop down.

my question is, after the selection is made in the first drop down,
why am i getting a warning message (“you’re about to navigate away from this page”)

If i click ok on the warning message, the dropdown box will be loaded correctly, and other values that were previously on the page will be preserved.
If i click cancel, i get a script error instead.

any thoughts on this?

  • 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-18T07:01:44+00:00Added an answer on May 18, 2026 at 7:01 am

    Actually, that seems quite odd. There must be something more than what you’ve put here going on… more code please? Is it Javascript that you’re using to create that warning?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty simple ASP.NET Web Form that looks a bit like the
These are probably are pretty simple YES|NO type questions. I have some NSDictionaries containing
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
I have a pretty simple problem. Basically I have an array called $list that
I have a pretty simple user control that I want to bind a ScaleTransform
I have a table that tracks emails sent. It is pretty simple. ID |
i have pretty simple simple question (i hope so). How do i change the
I have a pretty simple question which perhaps someone familiar with Server/Client design &
hopefully a pretty simple question this time. I have a Select method in a
I have a pretty simple Linq to XML query: var q = from c

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.