Click here to Skip to main content
15,917,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem with my windows service Pin
Herman<T>.Instance18-Mar-09 7:57
Herman<T>.Instance18-Mar-09 7:57 
QuestionListening for database updates in asp .net Pin
hardboy11118-Mar-09 5:00
hardboy11118-Mar-09 5:00 
AnswerRe: Listening for database updates in asp .net Pin
Abhijit Jana18-Mar-09 5:16
professionalAbhijit Jana18-Mar-09 5:16 
AnswerRe: Listening for database updates in asp .net Pin
Yusuf18-Mar-09 6:15
Yusuf18-Mar-09 6:15 
GeneralRe: Listening for database updates in asp .net Pin
hardboy11118-Mar-09 7:06
hardboy11118-Mar-09 7:06 
QuestionGeneral Webparts Related Question. Pin
mr_muskurahat18-Mar-09 4:21
mr_muskurahat18-Mar-09 4:21 
AnswerRe: General Webparts Related Question. Pin
Abhishek Sur18-Mar-09 5:20
professionalAbhishek Sur18-Mar-09 5:20 
QuestionDropdownlist problem Pin
khuzwayom18-Mar-09 4:19
khuzwayom18-Mar-09 4:19 
Hi All

Please help, here us the scenario.

I get Source and Source code from the database.
I assign Source to the Text property of the DropDownlist and I assign SourceCode to the Value property of the same DropDownList.

What I want to do is that when you select an item from the DropDownlist, I want take the Value for that Item and do some calculations and keep the selected item shown on the dropDownList.

The problem is that..if the selected item has something eg 2 for the Value the application works fine, but if the Value property for that item in null the dropdown display the first item in the list.
It should display the selected item..it only do this if there is something in the value property.

Here is my code, that populates the dropdownlis.

drpDepot.DataSource = ds;
drpDepot.DataTextField = "SourceName";
drpDepot.DataValueField = "SourceCode";
drpDepot.DataBind();
drpDepot.Items.Insert(0, new ListItem(string.Empty, string.Empty));

Please help, I don’t know what is the problem. Please help.

Thank you in advanced

MP

AnswerRe: Dropdownlist problem Pin
Abhijit Jana18-Mar-09 4:35
professionalAbhijit Jana18-Mar-09 4:35 
GeneralRe: Dropdownlist problem Pin
khuzwayom18-Mar-09 4:43
khuzwayom18-Mar-09 4:43 
GeneralRe: Dropdownlist problem Pin
Abhijit Jana18-Mar-09 5:04
professionalAbhijit Jana18-Mar-09 5:04 
GeneralRe: Dropdownlist problem Pin
khuzwayom18-Mar-09 5:09
khuzwayom18-Mar-09 5:09 
GeneralRe: Dropdownlist problem Pin
Abhijit Jana18-Mar-09 5:13
professionalAbhijit Jana18-Mar-09 5:13 
GeneralRe: Dropdownlist problem Pin
khuzwayom18-Mar-09 5:16
khuzwayom18-Mar-09 5:16 
AnswerRe: Dropdownlist problem Pin
Abhijit Jana18-Mar-09 5:43
professionalAbhijit Jana18-Mar-09 5:43 
QuestionUsing URL to link to a page, and load from a database using values in the URL Pin
Ragonastick18-Mar-09 3:48
Ragonastick18-Mar-09 3:48 
AnswerRe: Using URL to link to a page, and load from a database using values in the URL Pin
Yusuf18-Mar-09 4:14
Yusuf18-Mar-09 4:14 
AnswerUse a query parameter in the URL Pin
David Mujica18-Mar-09 4:16
David Mujica18-Mar-09 4:16 
GeneralRe: Use a query parameter in the URL Pin
Ragonastick23-Mar-09 9:42
Ragonastick23-Mar-09 9:42 
QuestionRadioButton in GridView Pin
.NET- India 18-Mar-09 2:14
.NET- India 18-Mar-09 2:14 
AnswerRe: RadioButton in GridView Pin
Abhijit Jana18-Mar-09 2:47
professionalAbhijit Jana18-Mar-09 2:47 
AnswerRe: RadioButton in GridView Pin
kumar_k50818-Mar-09 2:50
kumar_k50818-Mar-09 2:50 
AnswerRe: RadioButton in GridView Pin
Ravindra Bisen18-Mar-09 21:37
Ravindra Bisen18-Mar-09 21:37 
QuestionTree View Pin
sunil.n.cs18-Mar-09 1:08
sunil.n.cs18-Mar-09 1:08 
GeneralRe: Tree View Pin
hisrikanthreddy18-Mar-09 1:28
hisrikanthreddy18-Mar-09 1:28 

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.