Developing User Control with SQL Server data binding

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/11/2010 10:52:55 PM
Gravatar
Total Posts 13

Developing User Control with SQL Server data binding

I created the module, but to create my user control I have the following problem. The user control has two DropDownList, each linked to their respective SQLDataSource to choose a country which shows their respective cities, this user control now works perfectly in a project but when integrated into a mojoportal module i have problems because the page loads and displays the countries, but when I choose one of the items do not carry the cities, but added the same countries and if they spike again in another country recently loaded cities but again the same problem I doubled countries by selecting the items, please let me know I'm doing wrong but I reiterate that this user control works correctly on another project

        protected void ddlCountry_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlUTP.Items.Clear();
            ddlUTP.Items.Insert(0, new ListItem("[Seleccione]", "0"));
        }

        protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
        {
            UTPID = Convert.ToInt32(ddlUTP.SelectedValue);
        }

You must sign in to post in the forums. This thread is closed to new posts.