Solved

Binding dropdownlist

Posted on 2013-05-23
2
278 Views
Last Modified: 2013-05-24
I am just courious on when populating US states in Dropdownlist should I populating it from aspx page <asp: dropdownlist   id="ddlusstates" runat="server> <asp:Listitem value etc..." Or should bind it from sql data everytime? Which one is more efficient?
0
Comment
Question by:VBdotnet2005
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 250 total points
ID: 39193168
This decision is up to you.
If you are good with SQL data then go with that as it is more maintainable and secured and if again somewhere else you need to use same data.

Otherwise included in aspx is also fine, as ultimately it is rendering same in both the cases.

Hope you  get what you want.
0
 
LVL 29

Assisted Solution

by:Kumaraswamy R
Kumaraswamy R earned 250 total points
ID: 39193607
bind it from sql data any events
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now