• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

User Control

Hello,

I have 2 user controls , and I hve 2 tables for (Male,Fmale)
I need when I change the gender , it will be change in second user control for names
Note : I connect with sql jun in load event.
1- Gender (Male,Female)
2-Name                                
0
samprg
Asked:
samprg
  • 3
  • 2
1 Solution
 
samprgAuthor Commented:
I need to change data source at runtime
0
 
dexterrajeshCommented:
I am not very clear with your explanation.. I believe you want to load your user control 2 with names based on the gender change in another user control 1.. if so then,

set AutoPostBack for the gender dropdown control as true
OnChange, based on the gender selected select the names from the respective tables(Male, Female) and bind it to the UserControl2 where you want to display the names

Hope this helps
0
 
samprgAuthor Commented:
Good,
Can I do that with  ajax?
0
 
dexterrajeshCommented:
yes you can...
place those user controls inside a updatepanel control...
0
 
samprgAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now