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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:12:33+00:00 2026-06-18T07:12:33+00:00

I have successfully created user control for address so that we can implant in

  • 0

I have successfully created user control for address so that we can implant in student add view page, staff add view page.

And we can successfully taken the Actionresult of the page

 [HttpPost]
    public ActionResult Add(StudentModel StudentModel , AddressModel AddressModel)
    {

//code for executiom
}

But I am stuck in the case when , for student we have to enter Communication address, parent office address etc…. . For that we have to call the address model Multiple times in the add view page of student by

       <%

           Html.RenderPartial("Addaddress", Model.CommunicationAddress);%>
         <%

      Html.RenderPartial("Addaddress", Model.ParentAddress);%>

Here How can we fill dropdown of country, then based on country -state then based on state -city.

When I tried, only dropdown of country is filling in both cases and for for communication address state is filling based on country. but its not happening for parent address.

1.How it can be done?
2. After that , in httppost , how can we retrieve both addresses?

Thanks in advance .

Please help.

  • 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-06-18T07:12:34+00:00Added an answer on June 18, 2026 at 7:12 am

    In MVC , user controls calling multiple times in same page have same control Ids. this is a Default Bug in MVC See this link

    To over come this you have to add div with Id and in model add a divid and for each new instance assign new values for divid, then in populating Json, if you are using that you have to call that field for eg: $('#<%=Model.divid %> #CountryId').change, to get corresponding values .

    For geting Model Values, only way i found is using Json to collect values from each div since, in actionresult finally you will get only one model.

    I hope you got what you need.

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

Sidebar

Related Questions

I have created one user control and need to convert that user control into
I have successfully created my own virtual path provider to load a user control
I have created successfully a wpf user control inheritance like this: <base:BaseUserControl x:Class=wpfcontrolinheritance.InheritedUserControl xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
I have created a FocusVisualStyle for my user control and have successfully implemented the
I have successfully created a feature in sharepoint that modifies the existing edit dialog
I have successfully created an app that reads from a bundled .plist file and
I have successfully created an app to login user and post the tweet using
I have written a control and successfully created a storyboard to cause an animation
I have successfully created a disabled user in Active Directory via JNDI, but I
I have successfully created EditTexts depending on the user input in Android, and also

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.