Click here to Skip to main content
15,895,740 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to Store Session Variable(UserName) in a table with MySQL.... Pin
R. Giskard Reventlov5-Feb-10 3:46
R. Giskard Reventlov5-Feb-10 3:46 
QuestionError with script manager Pin
nainakarri4-Feb-10 23:56
nainakarri4-Feb-10 23:56 
AnswerRe: Error with script manager Pin
Anurag Gandhi5-Feb-10 2:04
professionalAnurag Gandhi5-Feb-10 2:04 
AnswerRe: Error with script manager Pin
Vimalsoft(Pty) Ltd5-Feb-10 3:39
professionalVimalsoft(Pty) Ltd5-Feb-10 3:39 
GeneralRe: Error with script manager Pin
nainakarri7-Feb-10 19:55
nainakarri7-Feb-10 19:55 
GeneralRe: Error with script manager Pin
Vimalsoft(Pty) Ltd7-Feb-10 20:01
professionalVimalsoft(Pty) Ltd7-Feb-10 20:01 
QuestionFormat DataTextField in dropdown in asp.net Pin
nainakarri4-Feb-10 22:05
nainakarri4-Feb-10 22:05 
AnswerRe: Format DataTextField in dropdown in asp.net Pin
Anurag Gandhi4-Feb-10 22:21
professionalAnurag Gandhi4-Feb-10 22:21 
There are many ways of doing so.

1. You can populate your drop down something list like this:

foreach(DataRow row in myDataTable.Rows)
{
    string text = row["FirstName"].ToString() + " " + row["LastName"].ToString() + " [" + row["Id"].ToString() + "]";
    DropDownList1.Items.Add(new ListItem(text, row["Id"].ToString()));
}


2. You can use linq projection on the dataTable and use teh linq query result as your DropDownList datasource.

Hope this will help.

Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.

GeneralRe: Format DataTextField in dropdown in asp.net Pin
nainakarri4-Feb-10 22:32
nainakarri4-Feb-10 22:32 
GeneralRe: Format DataTextField in dropdown in asp.net Pin
nainakarri4-Feb-10 22:52
nainakarri4-Feb-10 22:52 
GeneralRe: Format DataTextField in dropdown in asp.net Pin
nagendrathecoder4-Feb-10 23:20
nagendrathecoder4-Feb-10 23:20 
GeneralRe: Format DataTextField in dropdown in asp.net Pin
Rhys Jacob4-Feb-10 23:21
Rhys Jacob4-Feb-10 23:21 
GeneralRe: Format DataTextField in dropdown in asp.net Pin
Anurag Gandhi5-Feb-10 1:55
professionalAnurag Gandhi5-Feb-10 1:55 
QuestionLink Button on User Control not firing? Pin
AndyASPVB4-Feb-10 22:03
AndyASPVB4-Feb-10 22:03 
AnswerRe: Link Button on User Control not firing? Pin
Rhys Jacob4-Feb-10 22:26
Rhys Jacob4-Feb-10 22:26 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB4-Feb-10 22:41
AndyASPVB4-Feb-10 22:41 
GeneralRe: Link Button on User Control not firing? Pin
Rhys Jacob4-Feb-10 22:45
Rhys Jacob4-Feb-10 22:45 
GeneralRe: Link Button on User Control not firing? Pin
Ravindra Nidhonkar5-Feb-10 0:37
Ravindra Nidhonkar5-Feb-10 0:37 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB5-Feb-10 0:53
AndyASPVB5-Feb-10 0:53 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB5-Feb-10 0:52
AndyASPVB5-Feb-10 0:52 
GeneralRe: Link Button on User Control not firing? Pin
Ravindra Nidhonkar5-Feb-10 1:04
Ravindra Nidhonkar5-Feb-10 1:04 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB5-Feb-10 1:31
AndyASPVB5-Feb-10 1:31 
GeneralRe: Link Button on User Control not firing? Pin
Rhys Jacob5-Feb-10 1:57
Rhys Jacob5-Feb-10 1:57 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB5-Feb-10 2:30
AndyASPVB5-Feb-10 2:30 
GeneralRe: Link Button on User Control not firing? Pin
AndyASPVB5-Feb-10 3:33
AndyASPVB5-Feb-10 3:33 

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.