Click here to Skip to main content
15,908,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Multiple use of one SqlDataSource Control Pin
aransiola5-Jan-07 5:53
aransiola5-Jan-07 5:53 
Questionaccount validation in asp.net Pin
Guy Harwood5-Jan-07 3:03
Guy Harwood5-Jan-07 3:03 
AnswerRe: account validation in asp.net Pin
Mark J. Miller5-Jan-07 3:30
Mark J. Miller5-Jan-07 3:30 
GeneralRe: account validation in asp.net Pin
Guy Harwood5-Jan-07 3:33
Guy Harwood5-Jan-07 3:33 
QuestionDatabinding a ListBox to List Pin
JambeDuSinge5-Jan-07 2:22
JambeDuSinge5-Jan-07 2:22 
AnswerRe: Databinding a ListBox to List Pin
minhpc_bk5-Jan-07 16:26
minhpc_bk5-Jan-07 16:26 
GeneralRe: Databinding a ListBox to List Pin
JambeDuSinge5-Jan-07 20:36
JambeDuSinge5-Jan-07 20:36 
GeneralRe: Databinding a ListBox to List Pin
minhpc_bk5-Jan-07 21:14
minhpc_bk5-Jan-07 21:14 
Basically, the ListBox control inherits from the base class ListControl, when data is bound to the control the PerformDataBinding gets executed internally. And this method contains the default logic to build the items collection from the specified data source with the settings like DataTextField, DataValueField and DataTextFormatString. Fortunately, this method is overridable, so you're not happy with the default behavior, you can change it the way you want by overriding this method in your custom control.

In addition, you may consider using the generic Dictionary as you discovered only when you bind data to the control. By this I mean, you can sort data with the List generic collection, you then copy it to the Dictionary and bind it to the control. However, this step is unnecessary to me. Adding a public property like Me is also an option, but it's not really a good choice IMHO as it requires you to change your object design.




GeneralRe: Databinding a ListBox to List Pin
JambeDuSinge5-Jan-07 22:56
JambeDuSinge5-Jan-07 22:56 
QuestionPassword Encryption function Pin
Arindam Tewary5-Jan-07 1:13
professionalArindam Tewary5-Jan-07 1:13 
AnswerRe: Password Encryption function Pin
Imran Khan Pathan5-Jan-07 1:57
Imran Khan Pathan5-Jan-07 1:57 
AnswerRe: Password Encryption function Pin
enjoycrack5-Jan-07 15:51
enjoycrack5-Jan-07 15:51 
AnswerRe: Password Encryption function Pin
Vasudevan Deepak Kumar5-Jan-07 22:07
Vasudevan Deepak Kumar5-Jan-07 22:07 
QuestionSubmit the form when Hits ENTER key Pin
Jay_se5-Jan-07 0:08
Jay_se5-Jan-07 0:08 
AnswerRe: Submit the form when Hits ENTER key Pin
enjoycrack5-Jan-07 0:11
enjoycrack5-Jan-07 0:11 
GeneralRe: Submit the form when Hits ENTER key Pin
Jay_se5-Jan-07 0:45
Jay_se5-Jan-07 0:45 
GeneralRe: Submit the form when Hits ENTER key Pin
Marcus J. Smith5-Jan-07 2:28
professionalMarcus J. Smith5-Jan-07 2:28 
GeneralRe: Submit the form when Hits ENTER key Pin
Jay_se5-Jan-07 2:54
Jay_se5-Jan-07 2:54 
GeneralRe: Submit the form when Hits ENTER key Pin
Marcus J. Smith5-Jan-07 4:04
professionalMarcus J. Smith5-Jan-07 4:04 
GeneralRe: Submit the form when Hits ENTER key Pin
Jay_se5-Jan-07 19:34
Jay_se5-Jan-07 19:34 
Questionexecute an .exe file Pin
suveenmohan4-Jan-07 23:47
suveenmohan4-Jan-07 23:47 
AnswerRe: execute an .exe file Pin
enjoycrack4-Jan-07 23:52
enjoycrack4-Jan-07 23:52 
GeneralRe: execute an .exe file Pin
suveenmohan4-Jan-07 23:56
suveenmohan4-Jan-07 23:56 
GeneralRe: execute an .exe file Pin
enjoycrack5-Jan-07 0:09
enjoycrack5-Jan-07 0:09 
AnswerRe: execute an .exe file Pin
Colin Angus Mackay4-Jan-07 23:52
Colin Angus Mackay4-Jan-07 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.