[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

User Control

Posted on 2011-10-10
5
Medium Priority
?
183 Views
Last Modified: 2013-12-16
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
Comment
Question by:samprg
  • 3
  • 2
5 Comments
 

Author Comment

by:samprg
ID: 36946574
I need to change data source at runtime
0
 
LVL 9

Expert Comment

by:dexterrajesh
ID: 36946826
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
 

Author Comment

by:samprg
ID: 36949797
Good,
Can I do that with  ajax?
0
 
LVL 9

Accepted Solution

by:
dexterrajesh earned 2000 total points
ID: 36954720
yes you can...
place those user controls inside a updatepanel control...
0
 

Author Closing Comment

by:samprg
ID: 36956536
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month20 days, 2 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question