Click here to Skip to main content
15,886,799 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Issue on DataGrid! Pin
N a v a n e e t h15-Feb-07 18:48
N a v a n e e t h15-Feb-07 18:48 
GeneralRe: Issue on DataGrid! Pin
Deepasubramanian15-Feb-07 18:56
Deepasubramanian15-Feb-07 18:56 
Questioncopying projects [modified] Pin
TheEagle15-Feb-07 6:43
TheEagle15-Feb-07 6:43 
QuestionIE window resize on Page.Load event Pin
Jaguas15-Feb-07 6:38
Jaguas15-Feb-07 6:38 
AnswerRe: IE window resize on Page.Load event Pin
Guffa15-Feb-07 9:38
Guffa15-Feb-07 9:38 
QuestionC# & DataBinder.Eval Pin
digsy_15-Feb-07 6:03
digsy_15-Feb-07 6:03 
AnswerRe: C# & DataBinder.Eval Pin
DavidNohejl15-Feb-07 9:17
DavidNohejl15-Feb-07 9:17 
QuestionHow do I set a Dropdown list item Programatically? Pin
Quecumber25615-Feb-07 6:01
Quecumber25615-Feb-07 6:01 
I have the following database table. This is a list of department names.
DeptID Department
1 Administration
2 Information Technology
3 Product Development
4 Sales
5 Marketing
6 Partnerships
7 Contractor

From the Employees table I read in this record:

1001 7 4 Doe Jane M 12/24/2005 12:00:00 AM False

My problem is this: I’m using a web page to edit employee information. On this web form there are four drop down boxes, one each for Departments, Titles, Address Types and States. After I initialize the web page and populate the above mentioned drop down list with the necessary data. I want to take the employee record and set the drop down list to the right item in the list.


How can I make ASP.NET populate the dropdown lists based on the foreign ID number contained in the employee record?

I have a screen shot of what I want the data to look like in the web page, but I can't show it in this message.

Thank you,

Quecumber256
AnswerRe: How do I set a Dropdown list item Programatically? Pin
-Dr_X-15-Feb-07 9:35
-Dr_X-15-Feb-07 9:35 
QuestionGridView and ajax postback Pin
tmiku15-Feb-07 4:48
tmiku15-Feb-07 4:48 
QuestionImage title attribute as ToolTip!?!? Pin
badgrs15-Feb-07 3:53
badgrs15-Feb-07 3:53 
QuestionServer Error Pin
Sarfaraj Ahmed15-Feb-07 3:30
Sarfaraj Ahmed15-Feb-07 3:30 
AnswerRe: Server Error Pin
Not Active15-Feb-07 4:19
mentorNot Active15-Feb-07 4:19 
GeneralRe: Server Error Pin
Sarfaraj Ahmed15-Feb-07 5:24
Sarfaraj Ahmed15-Feb-07 5:24 
GeneralRe: Server Error Pin
Not Active15-Feb-07 5:47
mentorNot Active15-Feb-07 5:47 
GeneralRe: Server Error Pin
Sarfaraj Ahmed15-Feb-07 6:14
Sarfaraj Ahmed15-Feb-07 6:14 
QuestionIncrease Upload File size Pin
R.Palanivel15-Feb-07 3:26
R.Palanivel15-Feb-07 3:26 
AnswerRe: Increase Upload File size Pin
BINOVAR15-Feb-07 17:33
BINOVAR15-Feb-07 17:33 
GeneralRe: Increase Upload File size Pin
R.Palanivel15-Feb-07 22:00
R.Palanivel15-Feb-07 22:00 
GeneralRe: Increase Upload File size Pin
BINOVAR15-Feb-07 22:09
BINOVAR15-Feb-07 22:09 
QuestionInserting date Pin
Kunal P15-Feb-07 3:13
Kunal P15-Feb-07 3:13 
AnswerRe: Inserting date Pin
R.Palanivel15-Feb-07 3:33
R.Palanivel15-Feb-07 3:33 
QuestionRe: Inserting date Pin
Kunal P15-Feb-07 3:45
Kunal P15-Feb-07 3:45 
AnswerRe: Inserting date Pin
badgrs15-Feb-07 3:51
badgrs15-Feb-07 3:51 
AnswerRe: Inserting date Pin
R.Palanivel15-Feb-07 4:14
R.Palanivel15-Feb-07 4:14 

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.